public interface XSDConcreteComponent extends EObject
The following features are supported:
XSDPackage.getXSDConcreteComponent()
Modifier and Type | Method and Description |
---|---|
void |
clearDiagnostics()
Clears any
diagnostics associated with the component and all those it contains. |
XSDConcreteComponent |
cloneConcreteComponent(boolean deep,
boolean shareDOM)
Creates a clone of the component.
|
boolean |
contains(XSDConcreteComponent xsdConcreteComponent)
Returns whether the given component is contained by this component.
|
void |
elementAttributesChanged(org.w3c.dom.Element changedElement)
Called to indicate that the given element has changed attributes;
the element should typically be the same as the one returned
getElement() . |
void |
elementChanged(org.w3c.dom.Element changedElement)
Called to indicate that the given element has changed;
the element should typically be the same as the one returned
getElement() . |
void |
elementContentsChanged(org.w3c.dom.Element changedElement)
Called to indicate that the given element has changed contents;
the element should typically be the same as the one returned
getElement() . |
java.util.Collection<XSDConcreteComponent> |
getComponentsWithApplicationInformation(java.lang.String sourceURI)
Returns the collection of components that have an
annotation
containing an appinfo with given source URI. |
java.util.Collection<XSDConcreteComponent> |
getComponentsWithUserInformation(java.lang.String sourceURI)
Returns the collection of components that have an
annotation
containing a documentation with given source URI. |
XSDConcreteComponent |
getContainer()
Returns the value of the 'Container' reference.
|
EList<XSDDiagnostic> |
getDiagnostics()
Returns the value of the 'Diagnostics' containment reference list.
|
org.w3c.dom.Element |
getElement()
Returns the value of the 'Element' attribute.
|
XSDConcreteComponent |
getRootContainer()
Returns the value of the 'Root Container' reference.
|
XSDSchema |
getSchema()
Returns the value of the 'Schema' reference.
|
XSDAttributeDeclaration |
resolveAttributeDeclaration(java.lang.String localName)
|
XSDAttributeDeclaration |
resolveAttributeDeclaration(java.lang.String namespace,
java.lang.String localName)
|
XSDAttributeDeclaration |
resolveAttributeDeclarationURI(java.lang.String uri)
Returns the resolved attribute declaration of the given
URI . |
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinition(java.lang.String localName)
|
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinition(java.lang.String namespace,
java.lang.String localName)
|
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinitionURI(java.lang.String uri)
Returns the resolved attribute group definition of the given
URI . |
XSDComplexTypeDefinition |
resolveComplexTypeDefinition(java.lang.String localName)
|
XSDComplexTypeDefinition |
resolveComplexTypeDefinition(java.lang.String namespace,
java.lang.String localName)
|
XSDComplexTypeDefinition |
resolveComplexTypeDefinitionURI(java.lang.String uri)
Returns the resolved complex type definition of the given
URI . |
XSDElementDeclaration |
resolveElementDeclaration(java.lang.String localName)
|
XSDElementDeclaration |
resolveElementDeclaration(java.lang.String namespace,
java.lang.String localName)
|
XSDElementDeclaration |
resolveElementDeclarationURI(java.lang.String uri)
Returns the resolved element declaration of the given
URI . |
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinition(java.lang.String localName)
|
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinition(java.lang.String namespace,
java.lang.String localName)
|
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinitionURI(java.lang.String uri)
Returns the resolved identity constraint definition of the given
URI . |
XSDModelGroupDefinition |
resolveModelGroupDefinition(java.lang.String localName)
|
XSDModelGroupDefinition |
resolveModelGroupDefinition(java.lang.String namespace,
java.lang.String localName)
|
XSDModelGroupDefinition |
resolveModelGroupDefinitionURI(java.lang.String uri)
Returns the resolved model group definition of the given
URI . |
XSDNotationDeclaration |
resolveNotationDeclaration(java.lang.String localName)
|
XSDNotationDeclaration |
resolveNotationDeclaration(java.lang.String namespace,
java.lang.String localName)
|
XSDNotationDeclaration |
resolveNotationDeclarationURI(java.lang.String uri)
Returns the resolved notation declaration of the given
URI . |
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinition(java.lang.String localName)
|
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinition(java.lang.String namespace,
java.lang.String localName)
|
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinitionURI(java.lang.String uri)
Returns the resolved simple type definition of the given
URI . |
XSDTypeDefinition |
resolveTypeDefinition(java.lang.String localName)
|
XSDTypeDefinition |
resolveTypeDefinition(java.lang.String namespace,
java.lang.String localName)
|
XSDTypeDefinition |
resolveTypeDefinitionURI(java.lang.String uri)
Returns the resolved type definition of the given
URI . |
void |
setElement(org.w3c.dom.Element value)
Sets the value of the '
Element ' attribute. |
void |
updateElement()
Ensures that the underlying DOM
element both exists and is up-to-date with respect to the model,
i.e., it serializes the component and maintains an association with that serialization. |
void |
updateElement(boolean deep)
Ensures that the underlying DOM
element both exists and is up-to-date with respect to the model,
i.e., it serializes the component and maintains an association with that serialization. |
void |
validate()
Validates whether this component conforms to the constraints defined in the XML Schema standard.
|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
org.w3c.dom.Element getElement()
This is the underlying DOM element associated with this component,
i.e., the serialization
of this component.
setElement(Element)
,
XSDPackage.getXSDConcreteComponent_Element()
void setElement(org.w3c.dom.Element value)
Element
' attribute.
value
- the new value of the 'Element' attribute.getElement()
void updateElement()
element
both exists and is up-to-date with respect to the model,
i.e., it serializes the component and maintains an association with that serialization.updateElement(boolean)
,
getElement()
void updateElement(boolean deep)
element
both exists and is up-to-date with respect to the model,
i.e., it serializes the component and maintains an association with that serialization.
For deep == true
,
or when getElement()
== null
,
this does the same thing as updateElement()
;
otherwise, it updates just the DOM element associated with this component to reflect the current state.updateElement()
,
getElement()
XSDConcreteComponent getContainer()
This represents the concrete container of this component, i.e., the inverse of the black diamond relations in the UML model.
XSDPackage.getXSDConcreteComponent_Container()
XSDConcreteComponent getRootContainer()
This walks the containers
until it hits one that has no container.
XSDPackage.getXSDConcreteComponent_RootContainer()
XSDSchema getSchema()
This walks the containers
until it reaches a schema.
XSDPackage.getXSDConcreteComponent_Schema()
EList<XSDDiagnostic> getDiagnostics()
XSDDiagnostic
.
These diagnostics are produced by validation
.
XSDPackage.getXSDConcreteComponent_Diagnostics()
void elementChanged(org.w3c.dom.Element changedElement)
getElement()
.
It is expected that clients will not call this themselves
since the DOM event listeners attached to the underlying DOM will invoke these automatically.void elementAttributesChanged(org.w3c.dom.Element changedElement)
getElement()
.
It is expected that clients will not call this themselves
since the DOM event listeners attached to the underlying DOM will invoke these automatically.void elementContentsChanged(org.w3c.dom.Element changedElement)
getElement()
.
It is expected that clients will not call this themselves
since the DOM event listeners attached to the underlying DOM will invoke these automatically.XSDTypeDefinition resolveTypeDefinitionURI(java.lang.String uri)
URI
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.uri
- the URI to resolve.resolveTypeDefinition(java.lang.String, java.lang.String)
,
resolveTypeDefinition(java.lang.String)
,
XSDNamedComponent.getURI()
XSDTypeDefinition resolveTypeDefinition(java.lang.String namespace, java.lang.String localName)
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.namespace
- the namespace to resolve.localName
- the name to resolve.resolveTypeDefinitionURI(java.lang.String)
,
resolveTypeDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
XSDTypeDefinition resolveTypeDefinition(java.lang.String localName)
name
within the schema
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.localName
- the name to resolve.getSchema()
,
XSDSchema.getTargetNamespace()
,
resolveTypeDefinitionURI(java.lang.String)
,
resolveTypeDefinition(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
XSDSimpleTypeDefinition resolveSimpleTypeDefinitionURI(java.lang.String uri)
URI
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.uri
- the URI to resolve.resolveSimpleTypeDefinition(java.lang.String, java.lang.String)
,
resolveSimpleTypeDefinition(java.lang.String)
,
XSDNamedComponent.getURI()
XSDSimpleTypeDefinition resolveSimpleTypeDefinition(java.lang.String namespace, java.lang.String localName)
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.namespace
- the namespace to resolve.localName
- the name to resolve.resolveSimpleTypeDefinitionURI(java.lang.String)
,
resolveSimpleTypeDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
XSDSimpleTypeDefinition resolveSimpleTypeDefinition(java.lang.String localName)
name
within the schema
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.localName
- the name to resolve.getSchema()
,
XSDSchema.getTargetNamespace()
,
resolveSimpleTypeDefinitionURI(java.lang.String)
,
resolveSimpleTypeDefinition(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
XSDComplexTypeDefinition resolveComplexTypeDefinitionURI(java.lang.String uri)
URI
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.uri
- the URI to resolve.resolveComplexTypeDefinition(java.lang.String, java.lang.String)
,
resolveComplexTypeDefinition(java.lang.String)
,
XSDNamedComponent.getURI()
XSDComplexTypeDefinition resolveComplexTypeDefinition(java.lang.String namespace, java.lang.String localName)
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.namespace
- the namespace to resolve.localName
- the name to resolve.resolveComplexTypeDefinitionURI(java.lang.String)
,
resolveComplexTypeDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
XSDComplexTypeDefinition resolveComplexTypeDefinition(java.lang.String localName)
name
within the schema
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.localName
- the name to resolve.getSchema()
,
XSDSchema.getTargetNamespace()
,
resolveComplexTypeDefinitionURI(java.lang.String)
,
resolveComplexTypeDefinition(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
XSDAttributeDeclaration resolveAttributeDeclarationURI(java.lang.String uri)
URI
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.uri
- the URI to resolve.resolveAttributeDeclaration(java.lang.String, java.lang.String)
,
resolveAttributeDeclaration(java.lang.String)
,
XSDNamedComponent.getURI()
XSDAttributeDeclaration resolveAttributeDeclaration(java.lang.String namespace, java.lang.String localName)
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.namespace
- the namespace to resolve.localName
- the name to resolve.resolveAttributeDeclarationURI(java.lang.String)
,
resolveAttributeDeclaration(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
XSDAttributeDeclaration resolveAttributeDeclaration(java.lang.String localName)
name
within the schema
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.localName
- the name to resolve.getSchema()
,
XSDSchema.getTargetNamespace()
,
resolveAttributeDeclarationURI(java.lang.String)
,
resolveAttributeDeclaration(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
XSDElementDeclaration resolveElementDeclarationURI(java.lang.String uri)
URI
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.uri
- the URI to resolve.resolveElementDeclaration(java.lang.String, java.lang.String)
,
resolveElementDeclaration(java.lang.String)
,
XSDNamedComponent.getURI()
XSDElementDeclaration resolveElementDeclaration(java.lang.String namespace, java.lang.String localName)
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.namespace
- the namespace to resolve.localName
- the name to resolve.resolveElementDeclarationURI(java.lang.String)
,
resolveElementDeclaration(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
XSDElementDeclaration resolveElementDeclaration(java.lang.String localName)
name
within the schema
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.localName
- the name to resolve.getSchema()
,
XSDSchema.getTargetNamespace()
,
resolveElementDeclarationURI(java.lang.String)
,
resolveElementDeclaration(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
XSDAttributeGroupDefinition resolveAttributeGroupDefinitionURI(java.lang.String uri)
URI
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.uri
- the URI to resolve.resolveAttributeGroupDefinition(java.lang.String, java.lang.String)
,
resolveAttributeGroupDefinition(java.lang.String)
,
XSDNamedComponent.getURI()
XSDAttributeGroupDefinition resolveAttributeGroupDefinition(java.lang.String namespace, java.lang.String localName)
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.namespace
- the namespace to resolve.localName
- the name to resolve.resolveAttributeGroupDefinitionURI(java.lang.String)
,
resolveAttributeGroupDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
XSDAttributeGroupDefinition resolveAttributeGroupDefinition(java.lang.String localName)
name
within the schema
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.localName
- the name to resolve.getSchema()
,
XSDSchema.getTargetNamespace()
,
resolveAttributeGroupDefinitionURI(java.lang.String)
,
resolveAttributeGroupDefinition(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
XSDModelGroupDefinition resolveModelGroupDefinitionURI(java.lang.String uri)
URI
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.uri
- the URI to resolve.resolveModelGroupDefinition(java.lang.String, java.lang.String)
,
resolveModelGroupDefinition(java.lang.String)
,
XSDNamedComponent.getURI()
XSDModelGroupDefinition resolveModelGroupDefinition(java.lang.String namespace, java.lang.String localName)
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.namespace
- the namespace to resolve.localName
- the name to resolve.resolveModelGroupDefinitionURI(java.lang.String)
,
resolveModelGroupDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
XSDModelGroupDefinition resolveModelGroupDefinition(java.lang.String localName)
name
within the schema
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.localName
- the name to resolve.getSchema()
,
XSDSchema.getTargetNamespace()
,
resolveModelGroupDefinitionURI(java.lang.String)
,
resolveModelGroupDefinition(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
XSDIdentityConstraintDefinition resolveIdentityConstraintDefinitionURI(java.lang.String uri)
URI
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.uri
- the URI to resolve.resolveIdentityConstraintDefinition(java.lang.String, java.lang.String)
,
resolveIdentityConstraintDefinition(java.lang.String)
,
XSDNamedComponent.getURI()
XSDIdentityConstraintDefinition resolveIdentityConstraintDefinition(java.lang.String namespace, java.lang.String localName)
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.namespace
- the namespace to resolve.localName
- the name to resolve.resolveIdentityConstraintDefinitionURI(java.lang.String)
,
resolveIdentityConstraintDefinition(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
XSDIdentityConstraintDefinition resolveIdentityConstraintDefinition(java.lang.String localName)
name
within the schema
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.localName
- the name to resolve.getSchema()
,
XSDSchema.getTargetNamespace()
,
resolveIdentityConstraintDefinitionURI(java.lang.String)
,
resolveIdentityConstraintDefinition(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
XSDNotationDeclaration resolveNotationDeclarationURI(java.lang.String uri)
URI
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.uri
- the URI to resolve.resolveNotationDeclaration(java.lang.String, java.lang.String)
,
resolveNotationDeclaration(java.lang.String)
,
XSDNamedComponent.getURI()
XSDNotationDeclaration resolveNotationDeclaration(java.lang.String namespace, java.lang.String localName)
namespace
and name
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.namespace
- the namespace to resolve.localName
- the name to resolve.resolveNotationDeclarationURI(java.lang.String)
,
resolveNotationDeclaration(java.lang.String)
,
XSDNamedComponent.getTargetNamespace()
,
XSDNamedComponent.getName()
XSDNotationDeclaration resolveNotationDeclaration(java.lang.String localName)
name
within the schema
.
An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.localName
- the name to resolve.getSchema()
,
XSDSchema.getTargetNamespace()
,
resolveNotationDeclarationURI(java.lang.String)
,
resolveNotationDeclaration(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
java.util.Collection<XSDConcreteComponent> getComponentsWithApplicationInformation(java.lang.String sourceURI)
annotation
containing an appinfo
with given source URI.sourceURI
- the source URI to match.XSDAnnotation.getApplicationInformationSources()
java.util.Collection<XSDConcreteComponent> getComponentsWithUserInformation(java.lang.String sourceURI)
annotation
containing a documentation
with given source URI.sourceURI
- the source URI to match.XSDAnnotation.getApplicationInformationSources()
void validate()
Diagnostics
are produced to report any problems.
The effect of calling this for a component not directly or indirectly contained by a schema
is undefined, and is likely to result in null pointer exceptions.getDiagnostics()
,
clearDiagnostics()
void clearDiagnostics()
diagnostics
associated with the component and all those it contains.validate()
,
getDiagnostics()
XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM)
deep
- whether the clone should be deep.shareDOM
- whether the clone should share the original DOMboolean contains(XSDConcreteComponent xsdConcreteComponent)
xsdConcreteComponent
- a component.