Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.diff.model.impl
Class DocumentDiffImpl

java.lang.Object
  extended by org.nuxeo.ecm.diff.model.impl.DocumentDiffImpl
All Implemented Interfaces:
Serializable, DocumentDiff

public class DocumentDiffImpl
extends Object
implements DocumentDiff

Implementation of DocumentDiff using a HashMap.

Author:
Antoine Taillefer
See Also:
Serialized Form

Constructor Summary
DocumentDiffImpl()
          Instantiates a new document diff impl.
 
Method Summary
 Map<String,SchemaDiff> getDocDiff()
          Gets the doc diff.
 int getSchemaCount()
          Gets the schema count.
 SchemaDiff getSchemaDiff(String schema)
          Gets the schema diff.
 List<String> getSchemaNames()
          Gets the schema names as a list.
 SchemaDiff initSchemaDiff(String schema)
          Inits schema diff.
 boolean isDocDiffEmpty()
          Checks if the doc diff is empty.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentDiffImpl

public DocumentDiffImpl()
Instantiates a new document diff impl.

Method Detail

getDocDiff

public Map<String,SchemaDiff> getDocDiff()
Description copied from interface: DocumentDiff
Gets the doc diff.

Specified by:
getDocDiff in interface DocumentDiff
Returns:
the doc diff

getSchemaCount

public int getSchemaCount()
Description copied from interface: DocumentDiff
Gets the schema count.

Specified by:
getSchemaCount in interface DocumentDiff
Returns:
the schema count

isDocDiffEmpty

public boolean isDocDiffEmpty()
Description copied from interface: DocumentDiff
Checks if the doc diff is empty.

Specified by:
isDocDiffEmpty in interface DocumentDiff
Returns:
true, if is empty

getSchemaNames

public List<String> getSchemaNames()
Description copied from interface: DocumentDiff
Gets the schema names as a list.

Specified by:
getSchemaNames in interface DocumentDiff
Returns:
the schema names

getSchemaDiff

public SchemaDiff getSchemaDiff(String schema)
Description copied from interface: DocumentDiff
Gets the schema diff.

Specified by:
getSchemaDiff in interface DocumentDiff
Parameters:
schema - the schema
Returns:
the schema diff

initSchemaDiff

public SchemaDiff initSchemaDiff(String schema)
Description copied from interface: DocumentDiff
Inits schema diff.

Specified by:
initSchemaDiff in interface DocumentDiff
Parameters:
schema - the schema
Returns:
the map

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.