org.exolab.castor.builder.binding
public class ExtendedBinding extends Binding
This class adds the necessary logic to a Binding Object to bring the gap between the XML Schema Object Model and the Binding File. It queries the Binding Object to retrieve the the associated ComponentBinding.
An "XPath like" representation of an XML Schema structure is built to lookup the component bindings in their storage structure. The algorithm used to build the "XPath like" representation is summarized in the following example: Given the XML schema declaration:
The path to identify the attribute 'bar' will be:<xsd:element name="foo"> <xsd:complextype> <xsd:attribute name="bar" type="xsd:string"/> </xsd:complextype> </xsd:element>>
The keywords complexType and group are used to identify respectively an XML Schema ComplexType and a Model Group definition./foo/@bar
Version: $Revision: 1.2 $ $Date: 2003/03/03 09:57:15 $
Field Summary | |
---|---|
protected static String | ATTRIBUTE_PREFIX |
protected static String | COMPLEXTYPE_ID |
protected static String | GROUP_ID |
protected static String | PATH_SEPARATOR
Constants needed to create the XPath |
Constructor Summary | |
---|---|
ExtendedBinding()
Default constructor. |
Method Summary | |
---|---|
ComponentBindingType | getComponentBindingType(Annotated annotated) Returns the ComponentBinding that corresponds to the given Annotated XML Schema structure An Schema location will be built for the given Annotated XML schema structure. |
See Also: java.lang.Object#Object()
Returns the ComponentBinding that corresponds to the given Annotated XML Schema structure An Schema location will be built for the given Annotated XML schema structure. .
Parameters: annotated the XML Schema annotated structure for which to query the Binding object for a ComponentBinding.
Returns: the ComponentBinding that corresponds to the given Annotated XML Schema structure.