org.exolab.castor.builder.binding
public class ExtendedBinding extends Binding
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:
<xsd:element name="foo"> <xsd:complextype> <xsd:attribute name="bar" type="xsd:string"/> </xsd:complextype> </xsd:element>The path to identify the attribute 'bar' will be:
/foo/@barThe keywords complexType and group are used to identify respectively an XML Schema ComplexType and a Model Group definition.
Version: $Revision: 6302 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
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.
|
static String | getSchemaLocation(Structure structure)
Returns a string representation of an XML Schema Component. |
See Also: java.lang.Object#Object()
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.
The location of a structure is composed of two parts:
The local location is defined by:
Parameters: structure the structure for which to return a representation.
Returns: a string representation of an XML Schema Component.