| |
|
| java.lang.Object org.exolab.castor.builder.binding.xml.Binding org.exolab.castor.builder.binding.ExtendedBinding
ExtendedBinding | final public class ExtendedBinding extends Binding (Code) | | 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/@bar
The keywords complexType and group are used to identify
respectively an XML Schema ComplexType and a Model Group definition.
author: Arnaud Blandin version: $Revision: 6936 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $ |
Method Summary | |
public boolean | existsExclusion(String localName) Indicates whether an <exclude> element has been specified in a binding
file for the given 'local name' of an element definition. | public boolean | existsForce(String localName) Indicates whether an <force> element has been specified in a binding
file for the given 'local name' of an element definition. | 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.
Parameters: annotated - the XML Schema annotated structure for which to querythe Binding object for a ComponentBinding. | public Exclude | getExclusion(String localName) Returns the
Exclude instance for the element identified by the given local name.
Parameters: localName - Local name for an element (definition). | public Set | getForces() Returns all <force> elements defined in the binding file. | void | handleAutomaticNaming(AutomaticNamingType type) Process automatic name conflict resolution section, and memorize definitions. |
ATTRIBUTE_PREFIX | final protected static String ATTRIBUTE_PREFIX(Code) | | Prefix used to identify an attribute.
|
COMPLEXTYPE_ID | final public static String COMPLEXTYPE_ID(Code) | | Prefix used to identify a complexType.
|
ENUMTYPE_ID | final public static String ENUMTYPE_ID(Code) | | Prefix used to identify an enumeration.
|
GROUP_ID | final public static String GROUP_ID(Code) | | Prefix used to identify a model group.
|
PATH_SEPARATOR | final protected static String PATH_SEPARATOR(Code) | | Constants needed to create the XPath.
|
SIMPLETYPE_ID | final public static String SIMPLETYPE_ID(Code) | | Prefix used to identity a simplyType.
|
existsExclusion | public boolean existsExclusion(String localName)(Code) | | Indicates whether an <exclude> element has been specified in a binding
file for the given 'local name' of an element definition.
Parameters: localName - 'local name' of an element definition True if an <exclude> element has been specified |
existsForce | public boolean existsForce(String localName)(Code) | | Indicates whether an <force> element has been specified in a binding
file for the given 'local name' of an element definition.
Parameters: localName - 'local name' of an element definition True if an <force> element has been specified |
getComponentBindingType | public ComponentBindingType getComponentBindingType(Annotated annotated)(Code) | | 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 querythe Binding object for a ComponentBinding. the ComponentBinding that corresponds to the given Annotated XMLSchema structure. |
getExclusion | public Exclude getExclusion(String localName)(Code) | | Returns the
Exclude instance for the element identified by the given local name.
Parameters: localName - Local name for an element (definition). The Exclude instance. |
getForces | public Set getForces()(Code) | | Returns all <force> elements defined in the binding file.
all <force> elements defined in the binding file |
Methods inherited from org.exolab.castor.builder.binding.xml.Binding | public void addAttributeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addAttributeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addComplexTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addComplexTypeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addComponentBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addComponentBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addElementBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addElementBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addEnumBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addEnumBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addGroupBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addGroupBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addInclude(org.exolab.castor.builder.binding.xml.IncludeType vInclude) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addInclude(int index, org.exolab.castor.builder.binding.xml.IncludeType vInclude) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addPackage(org.exolab.castor.builder.binding.xml.PackageType vPackage) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addPackage(int index, org.exolab.castor.builder.binding.xml.PackageType vPackage) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addSimpleTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void addSimpleTypeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public java.util.Enumeration enumerateAttributeBinding()(Code)(Java Doc) public java.util.Enumeration enumerateComplexTypeBinding()(Code)(Java Doc) public java.util.Enumeration enumerateComponentBinding()(Code)(Java Doc) public java.util.Enumeration enumerateElementBinding()(Code)(Java Doc) public java.util.Enumeration enumerateEnumBinding()(Code)(Java Doc) public java.util.Enumeration enumerateGroupBinding()(Code)(Java Doc) public java.util.Enumeration enumerateInclude()(Code)(Java Doc) public java.util.Enumeration enumeratePackage()(Code)(Java Doc) public java.util.Enumeration enumerateSimpleTypeBinding()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType getAttributeBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getAttributeBinding()(Code)(Java Doc) public int getAttributeBindingCount()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.AutomaticNamingType getAutomaticNaming()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType getComplexTypeBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getComplexTypeBinding()(Code)(Java Doc) public int getComplexTypeBindingCount()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType getComponentBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getComponentBinding()(Code)(Java Doc) public int getComponentBindingCount()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.types.BindingType getDefaultBindingType()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType getElementBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getElementBinding()(Code)(Java Doc) public int getElementBindingCount()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType getEnumBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getEnumBinding()(Code)(Java Doc) public int getEnumBindingCount()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType getGroupBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getGroupBinding()(Code)(Java Doc) public int getGroupBindingCount()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.IncludeType getInclude(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.IncludeType[] getInclude()(Code)(Java Doc) public int getIncludeCount()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.NamingXMLType getNamingXML()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.PackageType getPackage(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.PackageType[] getPackage()(Code)(Java Doc) public int getPackageCount()(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType getSimpleTypeBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getSimpleTypeBinding()(Code)(Java Doc) public int getSimpleTypeBindingCount()(Code)(Java Doc) public boolean isValid()(Code)(Java Doc) public java.util.Iterator iterateAttributeBinding()(Code)(Java Doc) public java.util.Iterator iterateComplexTypeBinding()(Code)(Java Doc) public java.util.Iterator iterateComponentBinding()(Code)(Java Doc) public java.util.Iterator iterateElementBinding()(Code)(Java Doc) public java.util.Iterator iterateEnumBinding()(Code)(Java Doc) public java.util.Iterator iterateGroupBinding()(Code)(Java Doc) public java.util.Iterator iterateInclude()(Code)(Java Doc) public java.util.Iterator iteratePackage()(Code)(Java Doc) public java.util.Iterator iterateSimpleTypeBinding()(Code)(Java Doc) public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException(Code)(Java Doc) public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException(Code)(Java Doc) public void removeAllAttributeBinding()(Code)(Java Doc) public void removeAllComplexTypeBinding()(Code)(Java Doc) public void removeAllComponentBinding()(Code)(Java Doc) public void removeAllElementBinding()(Code)(Java Doc) public void removeAllEnumBinding()(Code)(Java Doc) public void removeAllGroupBinding()(Code)(Java Doc) public void removeAllInclude()(Code)(Java Doc) public void removeAllPackage()(Code)(Java Doc) public void removeAllSimpleTypeBinding()(Code)(Java Doc) public boolean removeAttributeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding)(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType removeAttributeBindingAt(int index)(Code)(Java Doc) public boolean removeComplexTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding)(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType removeComplexTypeBindingAt(int index)(Code)(Java Doc) public boolean removeComponentBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding)(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType removeComponentBindingAt(int index)(Code)(Java Doc) public boolean removeElementBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding)(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType removeElementBindingAt(int index)(Code)(Java Doc) public boolean removeEnumBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding)(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType removeEnumBindingAt(int index)(Code)(Java Doc) public boolean removeGroupBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding)(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType removeGroupBindingAt(int index)(Code)(Java Doc) public boolean removeInclude(org.exolab.castor.builder.binding.xml.IncludeType vInclude)(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.IncludeType removeIncludeAt(int index)(Code)(Java Doc) public boolean removePackage(org.exolab.castor.builder.binding.xml.PackageType vPackage)(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.PackageType removePackageAt(int index)(Code)(Java Doc) public boolean removeSimpleTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding)(Code)(Java Doc) public org.exolab.castor.builder.binding.xml.ComponentBindingType removeSimpleTypeBindingAt(int index)(Code)(Java Doc) public void setAttributeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void setAttributeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vAttributeBindingArray)(Code)(Java Doc) public void setAutomaticNaming(org.exolab.castor.builder.binding.xml.AutomaticNamingType automaticNaming)(Code)(Java Doc) public void setComplexTypeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void setComplexTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComplexTypeBindingArray)(Code)(Java Doc) public void setComponentBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void setComponentBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComponentBindingArray)(Code)(Java Doc) public void setDefaultBindingType(org.exolab.castor.builder.binding.xml.types.BindingType defaultBindingType)(Code)(Java Doc) public void setElementBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void setElementBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vElementBindingArray)(Code)(Java Doc) public void setEnumBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void setEnumBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vEnumBindingArray)(Code)(Java Doc) public void setGroupBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void setGroupBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vGroupBindingArray)(Code)(Java Doc) public void setInclude(int index, org.exolab.castor.builder.binding.xml.IncludeType vInclude) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void setInclude(org.exolab.castor.builder.binding.xml.IncludeType[] vIncludeArray)(Code)(Java Doc) public void setNamingXML(org.exolab.castor.builder.binding.xml.NamingXMLType namingXML)(Code)(Java Doc) public void setPackage(int index, org.exolab.castor.builder.binding.xml.PackageType vPackage) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void setPackage(org.exolab.castor.builder.binding.xml.PackageType[] vPackageArray)(Code)(Java Doc) public void setSimpleTypeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc) public void setSimpleTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vSimpleTypeBindingArray)(Code)(Java Doc) public static org.exolab.castor.builder.binding.xml.Binding unmarshalBinding(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException(Code)(Java Doc) public void validate() throws org.exolab.castor.xml.ValidationException(Code)(Java Doc)
|
|
|
|