|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Concrete Component'. It is the root of all concrete components.
The following features are supported:
XSDPackage.getXSDConcreteComponent()
Method Summary | |
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(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(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(Element changedElement)
Called to indicate that the given element has changed contents; the element should typically be the same as the one returned getElement() .
|
Collection |
getComponentsWithApplicationInformation(String sourceURI)
Returns the collection of components that have an annotation
containing an appinfo with given source URI. |
Collection |
getComponentsWithUserInformation(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 |
getDiagnostics()
Returns the value of the 'Diagnostics' containment reference list. |
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(String localName)
Returns the resolved attribute declaration of the given name
within the schema .
|
XSDAttributeDeclaration |
resolveAttributeDeclaration(String namespace,
String localName)
Returns the resolved attribute declaration of the given namespace and name .
|
XSDAttributeDeclaration |
resolveAttributeDeclarationURI(String uri)
Returns the resolved attribute declaration of the given URI .
|
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinition(String localName)
Returns the resolved attribute group definition of the given name
within the schema .
|
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinition(String namespace,
String localName)
Returns the resolved attribute group definition the given namespace and name .
|
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinitionURI(String uri)
Returns the resolved attribute group definition of the given URI .
|
XSDComplexTypeDefinition |
resolveComplexTypeDefinition(String localName)
Returns the resolved complex type definition of the given name
within the schema .
|
XSDComplexTypeDefinition |
resolveComplexTypeDefinition(String namespace,
String localName)
Returns the resolved complex type definition of the given namespace and name .
|
XSDComplexTypeDefinition |
resolveComplexTypeDefinitionURI(String uri)
Returns the resolved complex type definition of the given URI .
|
XSDElementDeclaration |
resolveElementDeclaration(String localName)
Returns the resolved element declaration of the given name
within the schema .
|
XSDElementDeclaration |
resolveElementDeclaration(String namespace,
String localName)
Returns the resolved element declaration of the given namespace and name .
|
XSDElementDeclaration |
resolveElementDeclarationURI(String uri)
Returns the resolved element declaration of the given URI .
|
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinition(String localName)
Returns the resolved identity constraint definition of the given name
within the schema .
|
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinition(String namespace,
String localName)
Returns the resolved identity constraint definition of the given namespace and name .
|
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinitionURI(String uri)
Returns the resolved identity constraint definition of the given URI .
|
XSDModelGroupDefinition |
resolveModelGroupDefinition(String localName)
Returns the resolved model group definition of the given name
within the schema .
|
XSDModelGroupDefinition |
resolveModelGroupDefinition(String namespace,
String localName)
Returns the resolved model group definition of the given namespace and name .
|
XSDModelGroupDefinition |
resolveModelGroupDefinitionURI(String uri)
Returns the resolved model group definition of the given URI .
|
XSDNotationDeclaration |
resolveNotationDeclaration(String localName)
Returns the resolved notation declaration the given name
within the schema .
|
XSDNotationDeclaration |
resolveNotationDeclaration(String namespace,
String localName)
Returns the resolved notation declaration of the given namespace and name .
|
XSDNotationDeclaration |
resolveNotationDeclarationURI(String uri)
Returns the resolved notation declaration of the given URI .
|
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinition(String localName)
Returns the resolved simple type definition of the given name
within the schema .
|
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinition(String namespace,
String localName)
Returns the resolved simple type definition of the given namespace and name .
|
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinitionURI(String uri)
Returns the resolved simple type definition of the given URI .
|
XSDTypeDefinition |
resolveTypeDefinition(String localName)
Returns the resolved type definition of the given name
within the schema .
|
XSDTypeDefinition |
resolveTypeDefinition(String namespace,
String localName)
Returns the resolved type definition of the given namespace and name .
|
XSDTypeDefinition |
resolveTypeDefinitionURI(String uri)
Returns the resolved type definition of the given URI .
|
void |
setElement(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. |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
public Element getElement()
This is the underlying DOM element associated with this component,
i.e., the serialization
of this component.
setElement(Element)
,
XSDPackage.getXSDConcreteComponent_Element()
public void setElement(Element value)
Element
' attribute.
value
- the new value of the 'Element' attribute.getElement()
public 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()
public 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()
public 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()
public XSDConcreteComponent getRootContainer()
This walks the containers
until it hits one that has no container.
XSDPackage.getXSDConcreteComponent_RootContainer()
public XSDSchema getSchema()
This walks the containers
until it reaches a schema.
XSDPackage.getXSDConcreteComponent_Schema()
public EList getDiagnostics()
XSDDiagnostic
.
These diagnostics are produced by validation
.
XSDPackage.getXSDConcreteComponent_Diagnostics()
public void elementChanged(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.
public void elementAttributesChanged(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.
public void elementContentsChanged(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.
public XSDTypeDefinition resolveTypeDefinitionURI(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()
public XSDTypeDefinition resolveTypeDefinition(String namespace, 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()
public XSDTypeDefinition resolveTypeDefinition(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()
public XSDSimpleTypeDefinition resolveSimpleTypeDefinitionURI(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()
public XSDSimpleTypeDefinition resolveSimpleTypeDefinition(String namespace, 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()
public XSDSimpleTypeDefinition resolveSimpleTypeDefinition(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()
public XSDComplexTypeDefinition resolveComplexTypeDefinitionURI(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()
public XSDComplexTypeDefinition resolveComplexTypeDefinition(String namespace, 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()
public XSDComplexTypeDefinition resolveComplexTypeDefinition(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()
public XSDAttributeDeclaration resolveAttributeDeclarationURI(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()
public XSDAttributeDeclaration resolveAttributeDeclaration(String namespace, 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()
public XSDAttributeDeclaration resolveAttributeDeclaration(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()
public XSDElementDeclaration resolveElementDeclarationURI(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()
public XSDElementDeclaration resolveElementDeclaration(String namespace, 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()
public XSDElementDeclaration resolveElementDeclaration(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()
public XSDAttributeGroupDefinition resolveAttributeGroupDefinitionURI(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()
public XSDAttributeGroupDefinition resolveAttributeGroupDefinition(String namespace, 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()
public XSDAttributeGroupDefinition resolveAttributeGroupDefinition(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()
public XSDModelGroupDefinition resolveModelGroupDefinitionURI(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()
public XSDModelGroupDefinition resolveModelGroupDefinition(String namespace, 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()
public XSDModelGroupDefinition resolveModelGroupDefinition(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()
public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinitionURI(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()
public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinition(String namespace, 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()
public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinition(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()
public XSDNotationDeclaration resolveNotationDeclarationURI(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()
public XSDNotationDeclaration resolveNotationDeclaration(String namespace, 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()
public XSDNotationDeclaration resolveNotationDeclaration(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()
public Collection getComponentsWithApplicationInformation(String sourceURI)
annotation
containing an appinfo
with given source URI.
sourceURI
- the source URI to match.
XSDAnnotation.getApplicationInformationSources()
public Collection getComponentsWithUserInformation(String sourceURI)
annotation
containing a documentation
with given source URI.
sourceURI
- the source URI to match.
XSDAnnotation.getApplicationInformationSources()
public 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()
public void clearDiagnostics()
diagnostics
associated with the component and all those it contains.
validate()
,
getDiagnostics()
public XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM)
deep
- whether the clone should be deep.shareDOM
- whether the clone should share the original DOM
public boolean contains(XSDConcreteComponent xsdConcreteComponent)
xsdConcreteComponent
- a component.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |