Package com.emc.documentum.rest.dfc
Class ObjectType
java.lang.Object
com.emc.documentum.rest.dfc.ObjectType
A persistent type utility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindTypeAncestors
(String rootAncestorType) Find all ancestor types younger than the specified rootAncestorTypegetType()
Get the type stringboolean
isDescendantTypeOf
(String ancestorType) Check if two types have parent-child relationship; If either of the type name is invalid, false will be returned.
-
Constructor Details
-
ObjectType
Constructor- Parameters:
type
- the type name
-
-
Method Details
-
getType
Get the type string- Returns:
- type string
-
isDescendantTypeOf
Check if two types have parent-child relationship; If either of the type name is invalid, false will be returned.- Parameters:
ancestorType
- The ancestor type ID- Returns:
- TRUE indicates that type is the descendant type of ancestorType.
-
findTypeAncestors
Find all ancestor types younger than the specified rootAncestorType- Parameters:
rootAncestorType
- the ancestor type up to for looking for; if the value is null or not a real ancestor type of the specified type, all ancestor types will be searched- Returns:
- the fieldOrder string list of ancestor types, the type of start index is the direct parent type, and the type of last index is the rootAncestorType
-