|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.binding.xml.Binding
org.exolab.castor.builder.binding.ExtendedBinding
public final 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:
<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.
Field Summary | |
---|---|
protected static java.lang.String |
ATTRIBUTE_PREFIX
Prefix used to identify an attribute. |
static java.lang.String |
COMPLEXTYPE_ID
Prefix used to identify a complexType. |
static java.lang.String |
ENUMTYPE_ID
Prefix used to identify an enumeration. |
static java.lang.String |
GROUP_ID
Prefix used to identify a model group. |
protected static java.lang.String |
PATH_SEPARATOR
Constants needed to create the XPath. |
static java.lang.String |
SIMPLETYPE_ID
Prefix used to identity a simplyType. |
Constructor Summary | |
---|---|
ExtendedBinding()
Default constructor. |
Method Summary | |
---|---|
boolean |
existsExclusion(java.lang.String localName)
Indicates whether an <exclude> element has been specified in a binding file for the given 'local name' of an element definition. |
boolean |
existsForce(java.lang.String localName)
Indicates whether an <force> element has been specified in a binding file for the given 'local name' of an element definition. |
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. |
Exclude |
getExclusion(java.lang.String localName)
Returns the Exclude instance for the element identified by the given local name. |
java.util.Set |
getForces()
Returns all <force> elements defined in the binding file. |
(package private) void |
handleAutomaticNaming(AutomaticNamingType type)
Process automatic name conflict resolution section, and memorize definitions. |
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
public static final java.lang.String COMPLEXTYPE_ID
public static final java.lang.String SIMPLETYPE_ID
public static final java.lang.String ENUMTYPE_ID
public static final java.lang.String GROUP_ID
Constructor Detail |
---|
public ExtendedBinding()
Object.Object()
Method Detail |
---|
public ComponentBindingType getComponentBindingType(Annotated annotated)
annotated
- the XML Schema annotated structure for which to query
the Binding object for a ComponentBinding.
void handleAutomaticNaming(AutomaticNamingType type)
type
- AutomaticNamingType
instancepublic boolean existsExclusion(java.lang.String localName)
localName
- 'local name' of an element definition
public Exclude getExclusion(java.lang.String localName)
Exclude
instance for the element identified by the given local name.
localName
- Local name for an element (definition).
Exclude
instance.public boolean existsForce(java.lang.String localName)
localName
- 'local name' of an element definition
public java.util.Set getForces()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |