|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the TypeDefinition component described in the WSDL 2.0 component model (within the Description Component section of the W3C WSDL 2.0 spec). This component represents global data type definitions such as top-level, named type definitions in W3C XML Schema (e.g. <xs:simpleType> or <xs:complexType>).
However, it does not mandate W3C XML Schema as the type system. It defines behaviour to query the type system and the underlying content model or API being used to represent the type definitions, and to return a java.lang.Object representing the actual type definition object. Based on the type system and content model, the application must cast this Object to the appropriate type to manipulate its contents.
Note that while TypeDefinition is described along with the Component model in the W3C WSDL 2.0 specification, it is not a WSDL component itself. It simply provides a way of representing components from the underlying type system within the WSDL Component model.
Field Summary | |
static java.lang.String |
API_APACHE_WS_XS
A constant representing the Apache WS-Commons XmlSchema API. |
static java.lang.String |
API_W3C_DOM
A constant representing the DOM API. |
Method Summary | |
java.lang.Object |
getContent()
Returns the underlying type definition as a java.lang.Object, which should be cast to the appropriate type as indicated by the getContentModel()
method. |
java.lang.String |
getContentModel()
Indicates the type of object model or API which should be used to access the content of the underlying type definition. |
QName |
getName()
Representing the {name} property of the TypeDefinition component, this method returns the qualified name of this TypeDefinition. |
java.net.URI |
getSystem()
Representing the {system} property of the TypeDefinition component, this method indicates the type system from which this type definition is derived. |
Field Detail |
public static final java.lang.String API_W3C_DOM
public static final java.lang.String API_APACHE_WS_XS
Method Detail |
public QName getName()
public java.net.URI getSystem()
public java.lang.String getContentModel()
getContent()
method.
For example:
public java.lang.Object getContent()
getContentModel()
method.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |