public final 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/@barThe 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 String |
ATTRIBUTE_PREFIX
Prefix used to identify an attribute.
|
static String |
COMPLEXTYPE_ID
Prefix used to identify a complexType.
|
static String |
ENUMTYPE_ID
Prefix used to identify an enumeration.
|
static String |
GROUP_ID
Prefix used to identify a model group.
|
protected static String |
PATH_SEPARATOR
Constants needed to create the XPath.
|
static String |
SIMPLETYPE_ID
Prefix used to identity a simplyType.
|
Constructor and Description |
---|
ExtendedBinding()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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(String localName)
Returns the
Exclude instance for the element identified by the given local name. |
Set<String> |
getForces()
Returns all <force> elements defined in the binding file.
|
addAttributeBinding, addAttributeBinding, addComplexTypeBinding, addComplexTypeBinding, addComponentBinding, addComponentBinding, addElementBinding, addElementBinding, addEnumBinding, addEnumBinding, addGroupBinding, addGroupBinding, addInclude, addInclude, addPackage, addPackage, addSimpleTypeBinding, addSimpleTypeBinding, enumerateAttributeBinding, enumerateComplexTypeBinding, enumerateComponentBinding, enumerateElementBinding, enumerateEnumBinding, enumerateGroupBinding, enumerateInclude, enumeratePackage, enumerateSimpleTypeBinding, getAttributeBinding, getAttributeBinding, getAttributeBindingCount, getAutomaticNaming, getComplexTypeBinding, getComplexTypeBinding, getComplexTypeBindingCount, getComponentBinding, getComponentBinding, getComponentBindingCount, getDefaultBindingType, getElementBinding, getElementBinding, getElementBindingCount, getEnumBinding, getEnumBinding, getEnumBindingCount, getGroupBinding, getGroupBinding, getGroupBindingCount, getInclude, getInclude, getIncludeCount, getNamingXML, getPackage, getPackage, getPackageCount, getSimpleTypeBinding, getSimpleTypeBinding, getSimpleTypeBindingCount, isValid, iterateAttributeBinding, iterateComplexTypeBinding, iterateComponentBinding, iterateElementBinding, iterateEnumBinding, iterateGroupBinding, iterateInclude, iteratePackage, iterateSimpleTypeBinding, marshal, marshal, removeAllAttributeBinding, removeAllComplexTypeBinding, removeAllComponentBinding, removeAllElementBinding, removeAllEnumBinding, removeAllGroupBinding, removeAllInclude, removeAllPackage, removeAllSimpleTypeBinding, removeAttributeBinding, removeAttributeBindingAt, removeComplexTypeBinding, removeComplexTypeBindingAt, removeComponentBinding, removeComponentBindingAt, removeElementBinding, removeElementBindingAt, removeEnumBinding, removeEnumBindingAt, removeGroupBinding, removeGroupBindingAt, removeInclude, removeIncludeAt, removePackage, removePackageAt, removeSimpleTypeBinding, removeSimpleTypeBindingAt, setAttributeBinding, setAttributeBinding, setAutomaticNaming, setComplexTypeBinding, setComplexTypeBinding, setComponentBinding, setComponentBinding, setDefaultBindingType, setElementBinding, setElementBinding, setEnumBinding, setEnumBinding, setGroupBinding, setGroupBinding, setInclude, setInclude, setNamingXML, setPackage, setPackage, setSimpleTypeBinding, setSimpleTypeBinding, unmarshalBinding, validate
protected static final String PATH_SEPARATOR
protected static final String ATTRIBUTE_PREFIX
public static final String COMPLEXTYPE_ID
public static final String SIMPLETYPE_ID
public static final String ENUMTYPE_ID
public static final String GROUP_ID
public ExtendedBinding()
Object()
public ComponentBindingType getComponentBindingType(Annotated annotated)
annotated
- the XML Schema annotated structure for which to query
the Binding object for a ComponentBinding.public boolean existsExclusion(String localName)
localName
- 'local name' of an element definitionpublic Exclude getExclusion(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(String localName)
localName
- 'local name' of an element definitionCopyright © 2021. All rights reserved.