Package com.ptc.windchill.esi.rnd
Class VdbGroup
java.lang.Object
com.ptc.windchill.esi.rnd.VdbGroup
- All Implemented Interfaces:
Serializable
Manages a collection of VdbElements and renderers the contents as an Info*Engine Group.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(Object key, VdbElement element) Adds a VdbElement to the collection at the location identified by key.com.infoengine.object.factory.GroupasGroup()Renders the VdbGroup as an Info*engine Group.booleanReturns a true if the input object is of type VdbGroup and its name attribute has a value equal to that of this object.getElement(Object key) Returns the element whose key is equal to the arrgument.Returns the values of the elements collection.getName()Gets the value of the attribute: name; The logical name of the VdbGroup.inthashCode()Returns the hash code associated with the name attribute.booleanLets the caller know if this object represents a group that holds unchanged objects in the ESI response (for e.g., "UnchangedParts").voidremoveElement(Object key) Removes an element from the elements collection if there is one with a key equal to the argument.
-
Method Details
-
getName
Gets the value of the attribute: name; The logical name of the VdbGroup.
Supported API: true- Returns:
- String
-
isUnchanged
public boolean isUnchanged()Lets the caller know if this object represents a group that holds unchanged objects in the ESI response (for e.g., "UnchangedParts").
Supported API: true- Returns:
- true or false, according as this object represents a group holding unchanged objects or otherwise, respectively.
-
getElement
Returns the element whose key is equal to the arrgument. If no matching key, returns null.
Supported API: true- Parameters:
key- The identifier of the object in the collection- Returns:
- VdbElement
-
getElements
Returns the values of the elements collection.
Supported API: true- Returns:
- Collection
-
addElement
Adds a VdbElement to the collection at the location identified by key. If there is already an element at that location, it is replaced.
Supported API: true- Parameters:
key- The location to store the VdbElement.element- The VdbElement that is to be added to the collection.
-
removeElement
Removes an element from the elements collection if there is one with a key equal to the argument.
Supported API: true- Parameters:
key- The key that identifies the element to be removed.
-
asGroup
public com.infoengine.object.factory.Group asGroup()Renders the VdbGroup as an Info*engine Group.
Supported API: true- Returns:
- Group
-
equals
Returns a true if the input object is of type VdbGroup and its name attribute has a value equal to that of this object. This method (along with the overridden version of hashCode()) ensures that lookups for VdbGroup objects from HashMaps behave as required by the VDB builder logic.
Supported API: true -
hashCode
public int hashCode()Returns the hash code associated with the name attribute. This method (along with the overridden version of equals()) ensures that lookups for VdbGroup objects from HashMaps behave as required by the VDB builder logic.
Supported API: true
-