com.ibm.websphere.bo
Interface BOType
- public interface BOType
DataObjects are defined by the Service Data Object specification and represent a dynamically typed in memory object containing properties. The BOType service supports the creation of a Type object from a Business Object that can be modeled in several different forms, including the following:
- as an XML Schema complex type definition,
- as an XML Schema global element definition,
- as a Java interface,
- and as a WSDL message.
Field Summary
Modifier and Type | Field and Description |
---|---|
|
COPYRIGHT
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getType(java.lang.String targetNamespace,java.lang.String complexTypeName)
Returns the Type associated with the XML Schema complex type
definition.
|
|
getTypeByClass(java.lang.Class className)
Deprecated. This method is going to be removed.
|
|
getTypeByElement(java.lang.String targetNamespace,java.lang.String globalElementName)
Returns the Type associated with the XML Schema global element
definition.
|
|
getTypeByMessage(java.lang.String targetNamespace,java.lang.String messageName)
Returns the Type associated with the WSDL message definition.
|
|
isContainmentType(commonj.sdo.Type type)
Returns
true if the Type is a complex type or anyType,
or false if the Type is a simple type or an anySimpleType.
|
|
isDataTypeWrapper(commonj.sdo.DataObject dataObject)
Returns
true if the DataObject is a wrapper for a simple type
or false if the DataObject is not.
|
Field Detail
COPYRIGHT
- static final java.lang.String COPYRIGHT
Method Detail
getType
- commonj.sdo.Type getType(java.lang.String targetNamespace,
- java.lang.String complexTypeName)
targetNamespace
- The target namespace of the complex type definition. Can be
null to represent the null target namespace. complexTypeName
- The name of the complex type. getTypeByElement
- commonj.sdo.Type getTypeByElement( java.lang.String targetNamespace,
- java.lang.String globalElementName)
BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
Type customerType = boType.getTypeByElement("http://www.ibm.com/Customer", "customer");
targetNamespace
- The target namespace of the complex type definition. Can be
null to represent the null target namespace. globalElementName
- The name of the global element. getTypeByClass
- commonj.sdo.Type getTypeByClass( java.lang.Class className)
BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
DataObject customerType = boType.createTypeByClass(com.ibm.com.Customer.class);
getTypeByMessage
- commonj.sdo.Type getTypeByMessage( java.lang.String targetNamespace,
- java.lang.String messageName)
BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
Type customerType = boType.createTypeByMessage("http://www.ibm.com/Customer", "customer");
targetNamespace
- The target namespace of the message definition. Can be
null to represent the null target namespace. messageName
- The name of the WSDL message isContainmentType
- boolean isContainmentType(commonj.sdo.Type type)
true
if the Type is a complex type or anyType,
or false
if the Type is a simple type or an anySimpleType.
BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
boolean isContaimentType = boType.isContainmentType(myType);
isDataTypeWrapper
- boolean isDataTypeWrapper(commonj.sdo.DataObject dataObject)
true
if the DataObject is a wrapper for a simple type
or false
if the DataObject is not.
BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
boolean isDataTypeWrapper = boType.isDataTypeWrapper(myDataObject);
BOType boType = (BOType) new ServiceManager().locateService("com/ibm/websphere/bo/BOType");
Type customerType = boType.getType("http://www.ibm.com/Customer", "CustomerType");