Package com.emc.documentum.rest.dfc

# Class ObjectType

java.lang.Object
com.emc.documentum.rest.dfc.ObjectType

public class ObjectType extends Object
A persistent type utility.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ObjectType(String type)`
  Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<String>`
  `findTypeAncestors(String rootAncestorType)`
  Find all ancestor types younger than the specified rootAncestorType
  `String`
  `getType()`
  Get the type string
  `boolean`
  `isDescendantTypeOf(String ancestorType)`
  Check if two types have parent-child relationship; If either of the type name is invalid, false will be returned.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ObjectType

    public ObjectType(String type)
    Constructor
    Parameters:
      `type` - the type name

- ## Method Details

  - ### getType

    public String getType()
    Get the type string
    Returns:
      type string

  - ### isDescendantTypeOf

    public boolean isDescendantTypeOf(String ancestorType)
    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

    public List<String> findTypeAncestors(String rootAncestorType)
    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