|
||||||||||||
| 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(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 XSDConcreteComponent.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 XSDConcreteComponent.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 XSDConcreteComponent.getElement().
|
java.util.Collection |
getComponentsWithApplicationInformation(java.lang.String sourceURI)
Returns the collection of components that have an annotation
containing an appinfo with given source URI. |
java.util.Collection |
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 |
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)
Returns the resolved attribute declaration of the given name
within the schema.
|
XSDAttributeDeclaration |
resolveAttributeDeclaration(java.lang.String namespace,
java.lang.String localName)
Returns the resolved attribute declaration of the given namespace and name.
|
XSDAttributeDeclaration |
resolveAttributeDeclarationURI(java.lang.String uri)
Returns the resolved attribute declaration of the given URI.
|
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinition(java.lang.String localName)
Returns the resolved attribute group definition of the given name
within the schema.
|
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved attribute group definition the given namespace and name.
|
XSDAttributeGroupDefinition |
resolveAttributeGroupDefinitionURI(java.lang.String uri)
Returns the resolved attribute group definition of the given URI.
|
XSDComplexTypeDefinition |
resolveComplexTypeDefinition(java.lang.String localName)
Returns the resolved complex type definition of the given name
within the schema.
|
XSDComplexTypeDefinition |
resolveComplexTypeDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved complex type definition of the given namespace and name.
|
XSDComplexTypeDefinition |
resolveComplexTypeDefinitionURI(java.lang.String uri)
Returns the resolved complex type definition of the given URI.
|
XSDElementDeclaration |
resolveElementDeclaration(java.lang.String localName)
Returns the resolved element declaration of the given name
within the schema.
|
XSDElementDeclaration |
resolveElementDeclaration(java.lang.String namespace,
java.lang.String localName)
Returns the resolved element declaration of the given namespace and name.
|
XSDElementDeclaration |
resolveElementDeclarationURI(java.lang.String uri)
Returns the resolved element declaration of the given URI.
|
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinition(java.lang.String localName)
Returns the resolved identity constraint definition of the given name
within the schema.
|
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved identity constraint definition of the given namespace and name.
|
XSDIdentityConstraintDefinition |
resolveIdentityConstraintDefinitionURI(java.lang.String uri)
Returns the resolved identity constraint definition of the given URI.
|
XSDModelGroupDefinition |
resolveModelGroupDefinition(java.lang.String localName)
Returns the resolved model group definition of the given name
within the schema.
|
XSDModelGroupDefinition |
resolveModelGroupDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved model group definition of the given namespace and name.
|
XSDModelGroupDefinition |
resolveModelGroupDefinitionURI(java.lang.String uri)
Returns the resolved model group definition of the given URI.
|
XSDNotationDeclaration |
resolveNotationDeclaration(java.lang.String localName)
Returns the resolved notation declaration the given name
within the schema.
|
XSDNotationDeclaration |
resolveNotationDeclaration(java.lang.String namespace,
java.lang.String localName)
Returns the resolved notation declaration of the given namespace and name.
|
XSDNotationDeclaration |
resolveNotationDeclarationURI(java.lang.String uri)
Returns the resolved notation declaration of the given URI.
|
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinition(java.lang.String localName)
Returns the resolved simple type definition of the given name
within the schema.
|
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved simple type definition of the given namespace and name.
|
XSDSimpleTypeDefinition |
resolveSimpleTypeDefinitionURI(java.lang.String uri)
Returns the resolved simple type definition of the given URI.
|
XSDTypeDefinition |
resolveTypeDefinition(java.lang.String localName)
Returns the resolved type definition of the given name
within the schema.
|
XSDTypeDefinition |
resolveTypeDefinition(java.lang.String namespace,
java.lang.String localName)
Returns the resolved type definition of the given namespace and name.
|
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. |
| 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 org.w3c.dom.Element getElement()
This is the underlying DOM element associated with this component,
i.e., the serialization of this component.
XSDConcreteComponent.setElement(Element),
XSDPackage.getXSDConcreteComponent_Element()public void setElement(org.w3c.dom.Element value)
Element' attribute.
value - the new value of the 'Element' attribute.XSDConcreteComponent.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.
XSDConcreteComponent.updateElement(boolean),
XSDConcreteComponent.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 XSDConcreteComponent.updateElement();
otherwise, it updates just the DOM element associated with this component to reflect the current state.
XSDConcreteComponent.updateElement(),
XSDConcreteComponent.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(org.w3c.dom.Element changedElement)
XSDConcreteComponent.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(org.w3c.dom.Element changedElement)
XSDConcreteComponent.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(org.w3c.dom.Element changedElement)
XSDConcreteComponent.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(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.
XSDConcreteComponent.resolveTypeDefinition(java.lang.String, java.lang.String),
XSDConcreteComponent.resolveTypeDefinition(java.lang.String),
XSDNamedComponent.getURI()
public 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.
XSDConcreteComponent.resolveTypeDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveTypeDefinition(java.lang.String),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.getSchema(),
XSDSchema.getTargetNamespace(),
XSDConcreteComponent.resolveTypeDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveTypeDefinition(java.lang.String, java.lang.String),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.resolveSimpleTypeDefinition(java.lang.String, java.lang.String),
XSDConcreteComponent.resolveSimpleTypeDefinition(java.lang.String),
XSDNamedComponent.getURI()
public 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.
XSDConcreteComponent.resolveSimpleTypeDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveSimpleTypeDefinition(java.lang.String),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.getSchema(),
XSDSchema.getTargetNamespace(),
XSDConcreteComponent.resolveSimpleTypeDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveSimpleTypeDefinition(java.lang.String, java.lang.String),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.resolveComplexTypeDefinition(java.lang.String, java.lang.String),
XSDConcreteComponent.resolveComplexTypeDefinition(java.lang.String),
XSDNamedComponent.getURI()
public 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.
XSDConcreteComponent.resolveComplexTypeDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveComplexTypeDefinition(java.lang.String),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.getSchema(),
XSDSchema.getTargetNamespace(),
XSDConcreteComponent.resolveComplexTypeDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveComplexTypeDefinition(java.lang.String, java.lang.String),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.resolveAttributeDeclaration(java.lang.String, java.lang.String),
XSDConcreteComponent.resolveAttributeDeclaration(java.lang.String),
XSDNamedComponent.getURI()
public 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.
XSDConcreteComponent.resolveAttributeDeclarationURI(java.lang.String),
XSDConcreteComponent.resolveAttributeDeclaration(java.lang.String),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.getSchema(),
XSDSchema.getTargetNamespace(),
XSDConcreteComponent.resolveAttributeDeclarationURI(java.lang.String),
XSDConcreteComponent.resolveAttributeDeclaration(java.lang.String, java.lang.String),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.resolveElementDeclaration(java.lang.String, java.lang.String),
XSDConcreteComponent.resolveElementDeclaration(java.lang.String),
XSDNamedComponent.getURI()
public 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.
XSDConcreteComponent.resolveElementDeclarationURI(java.lang.String),
XSDConcreteComponent.resolveElementDeclaration(java.lang.String),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.getSchema(),
XSDSchema.getTargetNamespace(),
XSDConcreteComponent.resolveElementDeclarationURI(java.lang.String),
XSDConcreteComponent.resolveElementDeclaration(java.lang.String, java.lang.String),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.resolveAttributeGroupDefinition(java.lang.String, java.lang.String),
XSDConcreteComponent.resolveAttributeGroupDefinition(java.lang.String),
XSDNamedComponent.getURI()
public 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.
XSDConcreteComponent.resolveAttributeGroupDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveAttributeGroupDefinition(java.lang.String),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.getSchema(),
XSDSchema.getTargetNamespace(),
XSDConcreteComponent.resolveAttributeGroupDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveAttributeGroupDefinition(java.lang.String, java.lang.String),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.resolveModelGroupDefinition(java.lang.String, java.lang.String),
XSDConcreteComponent.resolveModelGroupDefinition(java.lang.String),
XSDNamedComponent.getURI()
public 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.
XSDConcreteComponent.resolveModelGroupDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveModelGroupDefinition(java.lang.String),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.getSchema(),
XSDSchema.getTargetNamespace(),
XSDConcreteComponent.resolveModelGroupDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveModelGroupDefinition(java.lang.String, java.lang.String),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.resolveIdentityConstraintDefinition(java.lang.String, java.lang.String),
XSDConcreteComponent.resolveIdentityConstraintDefinition(java.lang.String),
XSDNamedComponent.getURI()
public 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.
XSDConcreteComponent.resolveIdentityConstraintDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveIdentityConstraintDefinition(java.lang.String),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.getSchema(),
XSDSchema.getTargetNamespace(),
XSDConcreteComponent.resolveIdentityConstraintDefinitionURI(java.lang.String),
XSDConcreteComponent.resolveIdentityConstraintDefinition(java.lang.String, java.lang.String),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.resolveNotationDeclaration(java.lang.String, java.lang.String),
XSDConcreteComponent.resolveNotationDeclaration(java.lang.String),
XSDNamedComponent.getURI()
public 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.
XSDConcreteComponent.resolveNotationDeclarationURI(java.lang.String),
XSDConcreteComponent.resolveNotationDeclaration(java.lang.String),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.getName()public 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.
XSDConcreteComponent.getSchema(),
XSDSchema.getTargetNamespace(),
XSDConcreteComponent.resolveNotationDeclarationURI(java.lang.String),
XSDConcreteComponent.resolveNotationDeclaration(java.lang.String, java.lang.String),
XSDNamedComponent.getName()public java.util.Collection getComponentsWithApplicationInformation(java.lang.String sourceURI)
annotation
containing an appinfo with given source URI.
sourceURI - the source URI to match.
XSDAnnotation.getApplicationInformationSources()public java.util.Collection getComponentsWithUserInformation(java.lang.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.
XSDConcreteComponent.getDiagnostics(),
XSDConcreteComponent.clearDiagnostics()public void clearDiagnostics()
diagnostics associated with the component and all those it contains.
XSDConcreteComponent.validate(),
XSDConcreteComponent.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 | |||||||||||