|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.collation.platform.model.util.MigrationNamingUtility
public class MigrationNamingUtility
NamingUtility class is used to provide a mapping of Object pointers to unique Guids for the names of the objects
Field Summary | |
---|---|
protected NamingUtilityCache |
cache
|
protected static java.lang.String |
hexString_
|
protected static com.collation.platform.logger.Logger |
log_
|
protected static java.lang.String |
NAMESPACE
|
protected static byte[] |
NAMESPACE_GUID
|
protected java.lang.String |
preFix
|
Constructor Summary | |
---|---|
MigrationNamingUtility(java.util.List objectClassList)
Constructor accepts a list of ObjectClass objects and initializes the meta cache and the internal guid and name maps |
Method Summary | |
---|---|
java.util.HashMap |
computeGuids(ModelObject mo)
computeGuids is used to compute the Guids for a given object tree. |
protected static Guid |
getGUID(byte[] nameSpaceGuid,
java.lang.String name)
convert a name space GUID and a qualified name into a GUID that can be used as an instance identifier |
protected static java.lang.String |
transform(java.lang.String input)
transform changes URI reserved characters into their escaped equivalents. |
protected static java.lang.String |
transformChar(char ch)
transformChar converts a single character into its escaped
representation. |
protected void |
traverseAllRules(java.lang.String objCls,
ModelObject mo,
java.util.HashMap guidMap,
java.util.HashMap nameMap,
ModelObject parentPtr,
java.util.HashSet traversedList)
traverseAllRules traverses all the rules idenitified for this class and all the classes in its hierarchy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NamingUtilityCache cache
protected static com.collation.platform.logger.Logger log_
protected java.lang.String preFix
protected static final java.lang.String NAMESPACE
protected static final byte[] NAMESPACE_GUID
protected static final java.lang.String hexString_
Constructor Detail |
---|
public MigrationNamingUtility(java.util.List objectClassList)
objectClassList:ArrayList
- - An ArrayList of ObjectClass objectsname:String
- - Name of this instance of NamingUtilityMethod Detail |
---|
public java.util.HashMap computeGuids(ModelObject mo)
mo:ModelObject
- - ModelObject tree
protected void traverseAllRules(java.lang.String objCls, ModelObject mo, java.util.HashMap guidMap, java.util.HashMap nameMap, ModelObject parentPtr, java.util.HashSet traversedList)
objCls:String
- - Class name of the ModelObjectmo:ModelObject
- - The ModelObject for which we want to calculate GuidsguidMap:HashMap
- - Map of object pointer to Guid ListnameMap:HashMap
- - Map of object pointer to Names ListparentPtr:ModelObject
- - The parent of the ModelObject motraversedList:HashSet
- - Set containing object pointers for which traverseAllRules
has already been calledprotected static Guid getGUID(byte[] nameSpaceGuid, java.lang.String name)
nameSpaceGuid:byte[]
- - The IBM CDM name space GUID.name:String
- - Name
protected static java.lang.String transform(java.lang.String input)
input
- The name to be escaped.
protected static java.lang.String transformChar(char ch)
transformChar
converts a single character into its escaped
representation.
ch
- The character to be escaped.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |