Class AncestorControl


public class AncestorControl extends HierarchyControl

Java class for AncestorControl complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="AncestorControl">
 <complexContent>
 <extension base="{http://www.ibm.com/websphere/wim}HierarchyControl">
 </extension>
 </complexContent>
 </complexType>
 

The AncestorControl object extends the HierarchyControl object.

AncestorControl is used in the input Root object of the get() API to request ancestors of the entity. If AncestorControl is added to the Root object in the get() operation, this means the ancestors of the entities under the Root object will be returned in the returning Root object.

Besides indicating whether or not to return ancestors, AncestorControl can also be used for specifying the properties returned for ancestors as well as the level of ancestor to be returned.

  • 0 - return all ancestors
  • 1 - return only the parent
  • 2 - return the parent and grandparent
  • Any level greater than 2 will return that specified number of ancestors

Since AncestorControl is also extended from SearchControl, it is possible to specify other search properties such as countLimit, and timeLimit in AncestorControl to only return the ancestors which satisfies the search criteria.

  • Constructor Details

    • AncestorControl

      public AncestorControl()
  • Method Details

    • get

      public Object get(String propName)
      Gets the value of the requested property.
      Overrides:
      get in class HierarchyControl
      Parameters:
      propName - allowed object is String
      Returns:
      returned object is Object
    • isSet

      public boolean isSet(String propName)
      Returns true if the requested property is set; false, otherwise.
      Overrides:
      isSet in class HierarchyControl
      Parameters:
      propName - allowed object is String
      Returns:
      returned object is boolean
    • set

      public void set(String propName, Object value)
      Sets the value of the provided property to the provided value.
      Overrides:
      set in class HierarchyControl
      Parameters:
      propName - allowed object is String
      value - allowed object is Object
    • unset

      public void unset(String propName)
      Sets the value of the provided property to null.
      Overrides:
      unset in class HierarchyControl
      Parameters:
      propName - allowed object is String
    • getTypeName

      public String getTypeName()
      Gets the name of this model object, AncestorControl
      Overrides:
      getTypeName in class HierarchyControl
      Returns:
      returned object is String
    • getPropertyNames

      public static List getPropertyNames(String entityTypeName)
      Gets a list of all supported properties for this model object, AncestorControl
      Parameters:
      entityTypeName - allowed object is String
      Returns:
      returned object is List
    • getDataType

      public String getDataType(String propName)
      Gets the Java type of the value of the provided property. For example: String, List
      Overrides:
      getDataType in class HierarchyControl
      Parameters:
      propName - allowed object is String
      Returns:
      returned object is String
    • getSuperTypes

      public ArrayList getSuperTypes()
      Gets a list of any model objects which this model object, AncestorControl, is an extension of.
      Overrides:
      getSuperTypes in class HierarchyControl
      Returns:
      returned object is ArrayList
    • isSubType

      public boolean isSubType(String superTypeName)
      Returns a true if the provided model object is one that this model object extends; false, otherwise.
      Overrides:
      isSubType in class HierarchyControl
      Parameters:
      superTypeName - allowed object is String
      Returns:
      returned object is boolean
    • getSubTypes

      public static HashSet getSubTypes()
      Gets a set of any model objects which extend this model object, AncestorControl
      Returns:
      returned object is HashSet
    • toString

      public String toString()
      Returns this model object, AncestorControl, and its contents as a String
      Overrides:
      toString in class HierarchyControl
      Returns:
      returned object is String