Class ExtendedBinding

java.lang.Object
org.exolab.castor.builder.binding.xml.Binding
org.exolab.castor.builder.binding.ExtendedBinding
All Implemented Interfaces:
Serializable

public final 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:

        <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.
Version:
$Revision$ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
Author:
Arnaud Blandin
See Also: