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/@bar
The keywords complexType and group are used to identify
respectively an XML Schema ComplexType and a Model Group definition.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ExtendedBinding()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addAttributeBinding, addAttributeBinding, addComplexTypeBinding, addComplexTypeBinding, addElementBinding, addElementBinding, addGroupBinding, addGroupBinding, addInclude, addInclude, addPackage, addPackage, enumerateAttributeBinding, enumerateComplexTypeBinding, enumerateElementBinding, enumerateGroupBinding, enumerateInclude, enumeratePackage, getAttributeBinding, getAttributeBinding, getAttributeBindingCount, getComplexTypeBinding, getComplexTypeBinding, getComplexTypeBindingCount, getDefaultBindingType, getElementBinding, getElementBinding, getElementBindingCount, getGroupBinding, getGroupBinding, getGroupBindingCount, getInclude, getInclude, getIncludeCount, getNamingXML, getPackage, getPackage, getPackageCount, isValid, marshal, marshal, removeAllAttributeBinding, removeAllComplexTypeBinding, removeAllElementBinding, removeAllGroupBinding, removeAllInclude, removeAllPackage, removeAttributeBinding, removeComplexTypeBinding, removeElementBinding, removeGroupBinding, removeInclude, removePackage, setAttributeBinding, setAttributeBinding, setComplexTypeBinding, setComplexTypeBinding, setDefaultBindingType, setElementBinding, setElementBinding, setGroupBinding, setGroupBinding, setInclude, setInclude, setNamingXML, setPackage, setPackage, unmarshalBinding, validateprotected 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
public ExtendedBinding()
Object.Object()public ComponentBindingType getComponentBindingType(Annotated annotated)
annotated - the XML Schema annotated structure for which to query the
Binding object for a ComponentBinding.public static java.lang.String getSchemaLocation(Structure structure)
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.Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com