|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.binding.Binding
org.exolab.castor.builder.binding.ExtendedBinding
public class ExtendedBinding
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
Field Summary | |
---|---|
protected static java.lang.String |
ATTRIBUTE_PREFIX
|
protected static java.lang.String |
COMPLEXTYPE_ID
|
protected static java.lang.String |
GROUP_ID
|
protected static java.lang.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 java.lang.String |
getSchemaLocation(Structure structure)
Returns a string representation of an XML Schema Component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String PATH_SEPARATOR
protected static final java.lang.String ATTRIBUTE_PREFIX
protected static final java.lang.String COMPLEXTYPE_ID
protected static final java.lang.String GROUP_ID
Constructor Detail |
---|
public ExtendedBinding()
Object.Object()
Method Detail |
---|
public 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. .
annotated
- the XML Schema annotated structure for which to query the Binding object
for a ComponentBinding.
public static java.lang.String getSchemaLocation(Structure structure)
Returns a string representation of an XML Schema Component. This representation is directly adapted from XPath and will used as a key to store the component bindings.
The location of a structure is composed of two parts:
The local location is defined by:
structure
- the structure for which to return a representation.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |