Package com.ptc.windchill.ws
Class GenericBusinessObject
java.lang.Object
com.ptc.windchill.ws.GenericBusinessObject
- All Implemented Interfaces:
com.infoengine.soap.Introspectable,com.infoengine.soap.SAXSOAPElementHandler,com.infoengine.soap.SOAPElementHandler,Serializable
public class GenericBusinessObject
extends Object
implements Serializable, com.infoengine.soap.Introspectable, com.infoengine.soap.SAXSOAPElementHandler
Java bean that defines a generic business object.
Supported API: true
Extendable: false
Important When being used in a client JVM (e.g. an Info*Engine JCA client) the system property named "com.ptc.windchill.ws.GenericBusinessObject.client" must be set to true before this class is loaded.
A generic business object has three properties
- typeIdentifier The name of this object's type.
- ufid The Unique Federation Identifier of this object.
- properties The list of properties associated with this object.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Supported API: true The name of the boolean System property to set to true when running in a client JVM. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(Property property) Adds a Property object to the list of this object's properties.voidaddProperty(String name, String value) Adds a Property object to the list with name and value.booleanTests this GenericBusinessObject object against another object for equality.Property[]Retrieves the entire list of Property objects.getProperties(int index) Retrieves a Property object by index.getPropertyObject(String name) Gets a Property object by name.Property[]getPropertyObjects(String name) Gets a list of Property objects by name.getPropertyValue(String name) Gets a property value by name.String[]getPropertyValues(String name) Gets a list of property values by name.Retrieves this business object's typeIdentifier.getUfid()Retrieves this business object's Unique Federation Identifier.voidsetProperties(int index, Property property) Sets a Property object by index.voidsetProperties(Property[] properties) Sets the entire list of Property objects.voidsetTypeIdentifier(String typeIdentifier) Sets this business object's typeIdentifier.voidSets this business object's Unique Federation Identifier.toString()
Supported API: true
-
Field Details
-
CLIENT_PROPERTY
Supported API: true The name of the boolean System property to set to true when running in a client JVM. Important This system property must be set before this class is loaded.- See Also:
-
-
Constructor Details
-
GenericBusinessObject
public GenericBusinessObject()Constructs a new empty GenericBusinessObject.
Supported API: true
-
-
Method Details
-
setTypeIdentifier
Sets this business object's typeIdentifier.
Supported API: true- Parameters:
typeIdentifier- The new typeIdentifier value.
-
getTypeIdentifier
Retrieves this business object's typeIdentifier.
Supported API: true- Returns:
- The typeIdentifier.
-
setUfid
Sets this business object's Unique Federation Identifier.
Supported API: true- Parameters:
ufid- The new ufid.
-
getUfid
Retrieves this business object's Unique Federation Identifier.
Supported API: true- Returns:
- The ufid.
-
setProperties
Sets a Property object by index.
Supported API: true- Parameters:
index- The index of the Property object to set.property- The property object to set.
-
getProperties
Retrieves a Property object by index.
Supported API: true- Parameters:
index- The index of the property object to get.- Returns:
- The Property object or null if invalid index.
-
setProperties
Sets the entire list of Property objects.
Supported API: true- Parameters:
properties- The new list of Property objects.
-
getProperties
Retrieves the entire list of Property objects.
Supported API: true- Returns:
- The list of Property objects or null if none..
-
toString
Supported API: true -
addProperty
Adds a Property object to the list of this object's properties.
Supported API: true- Parameters:
property- The property to add.
-
addProperty
Adds a Property object to the list with name and value.
Supported API: true- Parameters:
name- The name of the new property.value- The value of the new proprty.
-
getPropertyObject
Gets a Property object by name.
Supported API: true- Parameters:
name- The name of the Property object to retrieve.- Returns:
- The Property object or null if not found.
-
getPropertyObjects
Gets a list of Property objects by name.
Supported API: true- Parameters:
name- The name of the property objects to retrieve.- Returns:
- The Property objects or null if not found.
-
getPropertyValue
Gets a property value by name.
Supported API: true- Parameters:
name- The name of the property value to retrieve.- Returns:
- The value or null if not found.
-
getPropertyValues
Gets a list of property values by name.
Supported API: true- Parameters:
name- The name of the property values to retrieve.- Returns:
- The values or null if not found.
-
equals
Tests this GenericBusinessObject object against another object for equality.
Supported API: true
-