com.collation.platform.model.util
Class GeneralMigrationNamingUtility
java.lang.Object
com.collation.platform.model.util.NamingUtilityExternal
com.collation.platform.model.util.GeneralMigrationNamingUtility
- All Implemented Interfaces:
- NamingUtility
public class GeneralMigrationNamingUtility
- extends NamingUtilityExternal
- implements NamingUtility
NamingUtility class is used to provide a mapping of Object pointers to unique
Guids for the names of the objects
Field Summary |
protected static com.collation.platform.logger.Logger |
log_
|
Constructor Summary |
protected |
GeneralMigrationNamingUtility(java.util.List objectClassList,
java.lang.String name)
Constructor accepts a list of ObjectClass objects and initializes the
meta cache and the internal guid and name maps |
Method Summary |
java.util.List |
computeGuidResults(ModelObject mo,
java.util.HashMap dependencyMap)
computeGuidResults is used to compute the Guids for a given object tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log_
protected static com.collation.platform.logger.Logger log_
GeneralMigrationNamingUtility
protected GeneralMigrationNamingUtility(java.util.List objectClassList,
java.lang.String name)
- Constructor accepts a list of ObjectClass objects and initializes the
meta cache and the internal guid and name maps
- Parameters:
objectClassList:ArrayList
- - An ArrayList of ObjectClass objectsname:String
- - Name of this instance of NamingUtility
computeGuidResults
public java.util.List computeGuidResults(ModelObject mo,
java.util.HashMap dependencyMap)
- computeGuidResults is used to compute the Guids for a given object tree. The
function accepts the modelObject and a pointer to a HashMap that is used
to store the Guid to object pointers dependency list. The ModelObject may
be a single object or a tree of ModelObjects. The function traverses the
object looking for contained objects and stores the list of Guids per
object in a GuidResult object. As each Guid is formed, a dependency list
is also maintained which is then used by the caller to determine the objects
that were used to form this Guid
- Specified by:
computeGuidResults
in interface NamingUtility
- Overrides:
computeGuidResults
in class NamingUtilityExternal
- Parameters:
mo:ModelObject
- - ModelObject treedependencyMap:HashMap
- - Map of Guid to object pointers used
- Returns:
- List - List of GuidResult objects