public class ContentComparatorResult extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
_areEquals |
private List<ContentComparatorChange> |
_changes |
private Content |
_content1 |
private Content |
_content2 |
private MetadataSet |
_metadataSet |
private String |
_metadataSetName |
Constructor and Description |
---|
ContentComparatorResult(Content content1,
Content content2)
Create a new result from 2 contents
|
ContentComparatorResult(Content content1,
Content content2,
String metadataSetName,
MetadataSet metadataSet)
Create a new result from 2 contents and the name of a metadataSet
|
Modifier and Type | Method and Description |
---|---|
protected void |
addChange(ContentComparatorChange change)
add a change to the list
|
boolean |
areEquals()
are the contents equals ?
|
List<ContentComparatorChange> |
getChanges()
If contents are not equals, a list of
ContentComparatorChange is generated |
Content |
getContent1()
get the 1st content of the comparison
|
Content |
getContent2()
get the 1st content of the comparison
|
MetadataSet |
getMetadataSet()
get the metadataSet (generated from the metadataSet name, of from all metadatas)
|
String |
getMetadataSetName()
get the name of the MetadataSet
|
protected void |
setNotEquals()
declare that the 2 contents are not equals
|
private String _metadataSetName
private MetadataSet _metadataSet
private boolean _areEquals
private List<ContentComparatorChange> _changes
public ContentComparatorResult(Content content1, Content content2)
content1
- 1st contentcontent2
- 2nd contentpublic ContentComparatorResult(Content content1, Content content2, String metadataSetName, MetadataSet metadataSet)
content1
- 1st contentcontent2
- 2nd contentmetadataSetName
- name of the MetadataSetmetadataSet
- MetadataSetpublic boolean areEquals()
public List<ContentComparatorChange> getChanges()
ContentComparatorChange
is generatedContentComparatorChange
public Content getContent1()
public Content getContent2()
public String getMetadataSetName()
public MetadataSet getMetadataSet()
protected void addChange(ContentComparatorChange change)
change
- a new changeprotected void setNotEquals()