public class ContentComparator.Result extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
_areEquals |
private List<ContentComparator.Change> |
_changes |
private Content |
_content1 |
private Content |
_content2 |
private MetadataSet |
_metadataSet |
private String |
_metadataSetName |
Constructor and Description |
---|
Result(Content content1,
Content content2)
Create a new result from 2 contents
|
Result(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(ContentComparator.Change change)
add a change to the list
|
boolean |
areEquals()
are the contents equals ?
|
List<ContentComparator.Change> |
getChanges()
If contents are not equals, a list of
ContentComparator.Change 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<ContentComparator.Change> _changes
public Result(Content content1, Content content2)
content1
- 1st contentcontent2
- 2nd contentpublic Result(Content content1, Content content2, String metadataSetName, MetadataSet metadataSet)
content1
- 1st contentcontent2
- 2nd contentmetadataSetName
- name of the MetadataSetmetadataSet
- MetadataSetpublic boolean areEquals()
public List<ContentComparator.Change> getChanges()
ContentComparator.Change
is generatedContentComparator.Change
public Content getContent1()
public Content getContent2()
public String getMetadataSetName()
public MetadataSet getMetadataSet()
protected void addChange(ContentComparator.Change change)
change
- a new changeprotected void setNotEquals()