|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.ws.GenericBusinessObject
Java bean that defines a generic business object.
A generic business object has three properties
Property
,
Serialized FormNested Class Summary | |
private class |
GenericBusinessObject.PropertySAXHandler
|
Field Summary | |
private javax.xml.soap.Name |
_arrayTypeName
|
private javax.xml.soap.SOAPFactory |
_soapFactory
|
private javax.xml.soap.Name |
_typeName
|
private static String |
CLASS
|
private static boolean |
CLIENT
|
static String |
CLIENT_PROPERTY
The name of the boolean System property to set to true when running in a client JVM |
private StringBuffer |
currentElementValue
SAX implementation for server side des11n |
private boolean |
inPropertyArray
|
private static String |
ITEM_ELM
|
private static String |
NAME_ELM
|
private static String |
OBID
|
private List |
properties
|
private GenericBusinessObject.PropertySAXHandler |
propertyHandler
|
private static String |
PROPS_ELM
|
private static String |
QPROP_TYPE
|
private static String |
QSTRING_TYPE
|
private static String |
QTHIS_TYPE
|
private Element |
saxElement
|
private SAXObjectDeserializer |
saxHandler
|
private static String |
TYPEID_ELM
|
private String |
typeIdentifier
|
private String |
ufid
|
private static String |
UFID_ELM
|
private static String |
VALUE_ELM
|
Constructor Summary | |
GenericBusinessObject()
Constructs a new empty GenericBusinessObject. |
Method Summary | |
private void |
addProperty(Element elem,
javax.xml.soap.SOAPElement property)
Deserializes a property SOAP element and maps it to an I*E attribute. |
void |
addProperty(Property property)
Adds a Property object to the list of this object's properties. |
void |
addProperty(String name,
String value)
Adds a Property object to the list with name and value. |
void |
characters(char[] ch,
int start,
int length)
|
void |
childCharacters(char[] ch,
int start,
int length)
|
private Object |
clientElementToObject(javax.xml.soap.SOAPElement element,
javax.xml.soap.SOAPMessage message)
Generates a client side appropriate business object representation. |
private javax.xml.soap.SOAPElement |
clientObjectToElement(String elementName,
GenericBusinessObject object,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Translate a GenericBusinessObject to SOAPElement (client side). |
Object |
elementToObject(javax.xml.soap.SOAPElement element,
javax.xml.soap.SOAPMessage message)
Deserializes SOAP into business object representation. |
void |
endChildElement(String namespaceURI,
String localName,
String qName)
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
boolean |
equals(Object o)
Tests this GenericBusinessObject object against another object for equality. |
Property[] |
getProperties()
Retrieves the entire list of Property objects. |
Property |
getProperties(int index)
Retrieves a Property object by index. |
Property |
getPropertyObject(String name)
Gets a Property object by name. |
Property[] |
getPropertyObjects(String name)
Gets a list of Property objects by name. |
String |
getPropertyValue(String name)
Gets a property value by name. |
String[] |
getPropertyValues(String name)
Gets a list of property values by name. |
Object |
getSAXObject()
|
String |
getTypeIdentifier()
Retrieves this business object's typeIdentifier. |
String |
getUfid()
Retrieves this business object's Unique Federation Identifier. |
private void |
newPropertySOAPElement(javax.xml.soap.SOAPElement arry,
String name,
String value)
Constructs a property item for insertion into the properties array. |
private javax.xml.soap.SOAPElement |
newStringSOAPElement(String name,
javax.xml.soap.SOAPElement parent)
Constructs a new SOAPElement with a type of string. |
javax.xml.soap.SOAPElement |
objectToElement(String elementName,
Object object,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Serializes business object representation to SOAP. |
private Object |
serverElementToObject(javax.xml.soap.SOAPElement element,
javax.xml.soap.SOAPMessage message)
Generates a server side appropriate business object representation. |
private javax.xml.soap.SOAPElement |
serverObjectToElement(String elementName,
Element object,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPMessage message)
Translate an Element business object to SOAPElement (server side). |
void |
setProperties(int index,
Property property)
Sets a Property object by index. |
void |
setProperties(Property[] properties)
Sets the entire list of Property objects. |
void |
setTypeIdentifier(String typeIdentifier)
Sets this business object's typeIdentifier. |
void |
setUfid(String ufid)
Sets this business object's Unique Federation Identifier. |
void |
startChildElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String typeIdentifier
private String ufid
private List properties
public static final String CLIENT_PROPERTY
private static final boolean CLIENT
private static final String OBID
private static final String CLASS
private static final String UFID_ELM
private static final String TYPEID_ELM
private static final String PROPS_ELM
private static final String NAME_ELM
private static final String VALUE_ELM
private static final String ITEM_ELM
private static final String QTHIS_TYPE
private static final String QPROP_TYPE
private static final String QSTRING_TYPE
private javax.xml.soap.SOAPFactory _soapFactory
private javax.xml.soap.Name _typeName
private javax.xml.soap.Name _arrayTypeName
private StringBuffer currentElementValue
private SAXObjectDeserializer saxHandler
private Element saxElement
private GenericBusinessObject.PropertySAXHandler propertyHandler
private boolean inPropertyArray
Constructor Detail |
public GenericBusinessObject()
Method Detail |
public void setTypeIdentifier(String typeIdentifier)
typeIdentifier
- The new typeIdentifier value.public String getTypeIdentifier()
public void setUfid(String ufid)
ufid
- The new ufid.public String getUfid()
public void setProperties(int index, Property property)
index
- The index of the Property object to set.property
- The property object to set.public Property getProperties(int index)
index
- The index of the property object to get.
public void setProperties(Property[] properties)
properties
- The new list of Property objects.public Property[] getProperties()
public String toString()
public void addProperty(Property property)
property
- The property to add.public void addProperty(String name, String value)
name
- The name of the new property.value
- The value of the new proprty.public Property getPropertyObject(String name)
name
- The name of the Property object to retrieve.
public Property[] getPropertyObjects(String name)
name
- The name of the property objects to retrieve.
public String getPropertyValue(String name)
name
- The name of the property value to retrieve.
public String[] getPropertyValues(String name)
name
- The name of the property values to retrieve.
public Object elementToObject(javax.xml.soap.SOAPElement element, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException
Depending on environment may generate an I*E specific data structure (Element instance) or an instance of GenericBusinessObject if running in a client JVM.
elementToObject
in interface SOAPElementHandler
element
- The SOAPElement to deserialize.message
- The associated SOAPMessage object.
javax.xml.soap.SOAPException
- if element is malformed.CLIENT
public javax.xml.soap.SOAPElement objectToElement(String elementName, Object object, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException
object must be an instance of GenericBusinessObject or Element.
objectToElement
in interface SOAPElementHandler
elementName
- The name of the SOAP Element to be created.object
- The business object to serialize.message
- The associated SOAPMessage object.
javax.xml.soap.SOAPException
- if object is of the wrong type or there is an error during serialization.private Object clientElementToObject(javax.xml.soap.SOAPElement element, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException
element
- The SOAPElement to deserialize.message
- The associated SOAPMessage object.
javax.xml.soap.SOAPException
- if element is malformed.CLIENT
private Object serverElementToObject(javax.xml.soap.SOAPElement element, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException
element
- The SOAPElement to deserialize.message
- The associated SOAPMessage object.
javax.xml.soap.SOAPException
- if element is malformed.CLIENT
private void addProperty(Element elem, javax.xml.soap.SOAPElement property) throws javax.xml.soap.SOAPException
elem
- The Info*Engine Element object.property
- The SOAP property representation.
javax.xml.soap.SOAPException
- if the SOAP property representation is malformed.private javax.xml.soap.SOAPElement newStringSOAPElement(String name, javax.xml.soap.SOAPElement parent) throws javax.xml.soap.SOAPException
name
- The element name to createparent
- The element to add the new element to.
javax.xml.soap.SOAPException
private void newPropertySOAPElement(javax.xml.soap.SOAPElement arry, String name, String value) throws javax.xml.soap.SOAPException
arry
- The properties array.name
- The property name.
javax.xml.soap.SOAPException
private javax.xml.soap.SOAPElement clientObjectToElement(String elementName, GenericBusinessObject object, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException
elementName
- The name of the SOAP Element to be created.object
- The business object.message
- The associated SOAPMessage object.
javax.xml.soap.SOAPException
- if there is a problem during serialization.private javax.xml.soap.SOAPElement serverObjectToElement(String elementName, Element object, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException
elementName
- The name of the SOAP Element to be created.object
- The business object.message
- The associated SOAPMessage object.
javax.xml.soap.SOAPException
- if there is a problem during serialization.public boolean equals(Object o)
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface SAXSOAPElementHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface SAXSOAPElementHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface SAXSOAPElementHandler
SAXException
public Object getSAXObject()
getSAXObject
in interface SAXSOAPElementHandler
public void startChildElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startChildElement
in interface SAXSOAPElementHandler
SAXException
public void childCharacters(char[] ch, int start, int length) throws SAXException
childCharacters
in interface SAXSOAPElementHandler
SAXException
public void endChildElement(String namespaceURI, String localName, String qName) throws SAXException
endChildElement
in interface SAXSOAPElementHandler
SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |