com.ibm.etools.xsd
Interface XSDConcreteComponent

All Superinterfaces:
com.ibm.etools.emf.notify.Notifier, com.ibm.etools.emf.ref.RefBaseObject, com.ibm.etools.emf.ref.RefObject, com.ibm.etools.emf.resource.ResourceSetReference
All Known Subinterfaces:
XSDAnnotation, XSDAttributeDeclaration, XSDAttributeGroupContent, XSDAttributeGroupDefinition, XSDAttributeUse, XSDBoundedFacet, XSDCardinalityFacet, XSDComplexTypeContent, XSDComplexTypeDefinition, XSDComponent, XSDConstrainingFacet, XSDElementDeclaration, XSDEnumerationFacet, XSDFacet, XSDFeature, XSDFixedFacet, XSDFractionDigitsFacet, XSDFundamentalFacet, XSDIdentityConstraintDefinition, XSDImport, XSDInclude, XSDLengthFacet, XSDMaxExclusiveFacet, XSDMaxFacet, XSDMaxInclusiveFacet, XSDMaxLengthFacet, XSDMinExclusiveFacet, XSDMinFacet, XSDMinInclusiveFacet, XSDMinLengthFacet, XSDModelGroup, XSDModelGroupDefinition, XSDNamedComponent, XSDNotationDeclaration, XSDNumericFacet, XSDOrderedFacet, XSDParticle, XSDParticleContent, XSDPatternFacet, XSDRedefinableComponent, XSDRedefine, XSDRedefineContent, XSDRepeatableFacet, XSDSchema, XSDSchemaCompositor, XSDSchemaContent, XSDSchemaDirective, XSDScope, XSDSimpleTypeDefinition, XSDTerm, XSDTotalDigitsFacet, XSDTypeDefinition, XSDWhiteSpaceFacet, XSDWildcard, XSDXPathDefinition
All Known Implementing Classes:
XSDConcreteComponentImpl, XSDComponentImpl, XSDSchemaContentImpl, XSDAttributeGroupContentImpl, XSDParticleContentImpl

public interface XSDConcreteComponent
extends com.ibm.etools.emf.ref.RefObject

A representation of the model object 'Concrete Component'. It is the root of all concrete components.

The following features are supported:

See Also:
XSDPackage.getXSDConcreteComponent()

Field Summary
static java.lang.String copyright
           
 
Fields inherited from interface com.ibm.etools.emf.notify.Notifier
ADD, ADD_MANY, CREATE, MOVE, NO_INDEX, REMOVE, REMOVE_MANY, REMOVING_ADAPTER, SET, TOUCH, UNSET
 
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.
 com.ibm.etools.emf.ecore.EClass eClassXSDConcreteComponent()
          Returns the meta class of XSDConcreteComponent.
 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().
 XSDPackage ePackageXSD()
          Returns the meta package of XSDConcreteComponent.
 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.
 com.ibm.etools.emf.ref.EList getDiagnostics()
          Returns the value of the 'Diagnostics' reference list.
 Element getElement()
          Returns the value of the 'Element' attribute.
 XSDConcreteComponent getOwner()
          Returns the value of the 'Owner' reference.
 XSDConcreteComponent getRootContainer()
          Returns the value of the 'Root Container' reference.
 XSDConcreteComponent getRootOwner()
          Returns the value of the 'Root Owner' reference.
 XSDSchema getSchema()
          Returns the value of the 'Schema' reference.
 java.lang.String getURIReferencePath()
          Returns the value of the 'URI Reference Path' attribute.
 boolean isSetElement()
          Returns whether the value of the 'Element' attribute is set.
 boolean isSetOwner()
          Returns whether the value of the 'Owner' reference is set.
 boolean isSetRootOwner()
          Returns whether the value of the 'Root Owner' reference is set.
 boolean isSetSchema()
          Returns whether the value of the 'Schema' reference is set.
 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(Element value)
          Sets the value of the 'Element' attribute.
 void setOwner(XSDConcreteComponent value)
          Sets the value of the 'Owner' reference.
 void setRootOwner(XSDConcreteComponent value)
          Sets the value of the 'Root Owner' reference.
 void setSchema(XSDSchema value)
          Sets the value of the 'Schema' reference.
 void unsetElement()
          Unsets the value of the 'Element' attribute.
 void unsetOwner()
          Unsets the value of the 'Owner' reference.
 void unsetRootOwner()
          Unsets the value of the 'Root Owner' reference.
 void unsetSchema()
          Unsets the value of the 'Schema' reference.
 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 com.ibm.etools.emf.ref.RefObject
initInstance, refAddValue, refAddValueAt, refAddValueBefore, refCurrentValues, refDelegateOwner, refGetDefaultValues, refIsSet, refModifyValue, refModifyValueAt, refRemoveValue, refRemoveValueAt, refSetDelegateOwner, refSetValue, refUnsetValue, refValue
 
Methods inherited from interface com.ibm.etools.emf.ref.RefBaseObject
metaObject, refAttributes, refContainer, refContainerExtent, refContainerSF, refContainments, refContainments, refContains, refContains, refContainsExtent, refContainsNested, refDelete, refExtent, refID, refImmediatePackage, refIsContainer, refItself, refMetaObject, refMofId, refName, refOutermostPackage, refPackage, refReferences, refRemoveContent, refResource, refSetExtent, refSetID, refSetID, refSetIDContains, refSetMetaObject, refSetUUID, refSetUUID, refSetUUID
 
Methods inherited from interface com.ibm.etools.emf.notify.Notifier
addAdapter, getAdapter, getAdapters, getExistingAdapter, isDelivery, isDeliveryAll, notify, notify, removeAdapter, removeAllAdapters, setDelivery, setDeliveryAll
 
Methods inherited from interface com.ibm.etools.emf.resource.ResourceSetReference
getResourceSet
 

Field Detail

copyright

public static final java.lang.String copyright
Method Detail

ePackageXSD

public XSDPackage ePackageXSD()
Returns the meta package of XSDConcreteComponent.
Returns:
the meta package of XSDConcreteComponent.

eClassXSDConcreteComponent

public com.ibm.etools.emf.ecore.EClass eClassXSDConcreteComponent()
Returns the meta class of XSDConcreteComponent.
Returns:
the meta class.
See Also:
XSDPackage.getXSDConcreteComponent(), ePackageXSD()

getElement

public Element getElement()
Returns the value of the 'Element' attribute.

This is the underlying DOM element associated with this component, i.e., the serialization of this component.

Returns:
the value of the 'Element' attribute.
See Also:
isSetElement(), unsetElement(), setElement(org.w3c.dom.Element), XSDPackage.getXSDConcreteComponent_Element()

updateElement

public 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.
See Also:
updateElement(boolean), getElement()

updateElement

public 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. 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.
See Also:
updateElement(), getElement()

setElement

public void setElement(Element value)
Sets the value of the 'Element' attribute.
Parameters:
value - the new value of the 'Element' attribute.
See Also:
isSetElement(), unsetElement(), getElement()

unsetElement

public void unsetElement()
Unsets the value of the 'Element' attribute.
See Also:
isSetElement(), getElement(), setElement(org.w3c.dom.Element)

isSetElement

public boolean isSetElement()
Returns whether the value of the 'Element' attribute is set.
Returns:
whether the value of the 'Element' attribute is set.
See Also:
unsetElement(), getElement(), setElement(org.w3c.dom.Element)

getURIReferencePath

public java.lang.String getURIReferencePath()
Returns the value of the 'URI Reference Path' attribute.

This represents a path encoding that can be walked by XSDSchema.getComponentForURIReferencePath(java.lang.String) to reach this component.

Returns:
the value of the 'URI Reference Path' attribute.
See Also:
XSDPackage.getXSDConcreteComponent_URIReferencePath()

getContainer

public XSDConcreteComponent getContainer()
Returns the value of the 'Container' reference.

This represents the concrete container of this component, i.e., the inverse of the black diamond relations in the UML model.

Returns:
the value of the 'Container' reference.
See Also:
XSDPackage.getXSDConcreteComponent_Container()

getRootContainer

public XSDConcreteComponent getRootContainer()
Returns the value of the 'Root Container' reference.

This walks the containers until it hits one that has no container.

Returns:
the value of the 'Root Container' reference.
See Also:
XSDPackage.getXSDConcreteComponent_RootContainer()

getOwner

public XSDConcreteComponent getOwner()
Returns the value of the 'Owner' reference.

This provides the infoset equivalent of the container. If there is a container, that is it's value, i.e., the inverse of the black diamond relations in the UML model. Otherwise, if the component is synthesized by the infoset model, the logical container is it's value, i.e., the inverse of a white diamond relation in the URL model.

Returns:
the value of the 'Owner' reference.
See Also:
isSetOwner(), unsetOwner(), setOwner(XSDConcreteComponent), XSDPackage.getXSDConcreteComponent_Owner()

setOwner

public void setOwner(XSDConcreteComponent value)
Sets the value of the 'Owner' reference.
Parameters:
value - the new value of the 'Owner' reference.
See Also:
isSetOwner(), unsetOwner(), getOwner()

unsetOwner

public void unsetOwner()
Unsets the value of the 'Owner' reference.
See Also:
isSetOwner(), getOwner(), setOwner(XSDConcreteComponent)

isSetOwner

public boolean isSetOwner()
Returns whether the value of the 'Owner' reference is set.
Returns:
whether the value of the 'Owner' reference is set.
See Also:
unsetOwner(), getOwner(), setOwner(XSDConcreteComponent)

getRootOwner

public XSDConcreteComponent getRootOwner()
Returns the value of the 'Root Owner' reference.

This walks the owners until it hits one that has no owner.

Returns:
the value of the 'Root Owner' reference.
See Also:
isSetRootOwner(), unsetRootOwner(), setRootOwner(XSDConcreteComponent), XSDPackage.getXSDConcreteComponent_RootOwner()

setRootOwner

public void setRootOwner(XSDConcreteComponent value)
Sets the value of the 'Root Owner' reference.
Parameters:
value - the new value of the 'Root Owner' reference.
See Also:
isSetRootOwner(), unsetRootOwner(), getRootOwner()

unsetRootOwner

public void unsetRootOwner()
Unsets the value of the 'Root Owner' reference.
See Also:
isSetRootOwner(), getRootOwner(), setRootOwner(XSDConcreteComponent)

isSetRootOwner

public boolean isSetRootOwner()
Returns whether the value of the 'Root Owner' reference is set.
Returns:
whether the value of the 'Root Owner' reference is set.
See Also:
unsetRootOwner(), getRootOwner(), setRootOwner(XSDConcreteComponent)

getSchema

public XSDSchema getSchema()
Returns the value of the 'Schema' reference.

This walks the containers/owners until it reaches a schema.

Returns:
the value of the 'Schema' reference.
See Also:
isSetSchema(), unsetSchema(), setSchema(XSDSchema), XSDPackage.getXSDConcreteComponent_Schema()

setSchema

public void setSchema(XSDSchema value)
Sets the value of the 'Schema' reference.
Parameters:
value - the new value of the 'Schema' reference.
See Also:
isSetSchema(), unsetSchema(), getSchema()

unsetSchema

public void unsetSchema()
Unsets the value of the 'Schema' reference.
See Also:
isSetSchema(), getSchema(), setSchema(XSDSchema)

isSetSchema

public boolean isSetSchema()
Returns whether the value of the 'Schema' reference is set.
Returns:
whether the value of the 'Schema' reference is set.
See Also:
unsetSchema(), getSchema(), setSchema(XSDSchema)

getDiagnostics

public com.ibm.etools.emf.ref.EList getDiagnostics()
Returns the value of the 'Diagnostics' reference list. The list contents are of type XSDDiagnostic.

These diagnostics are produced by validation.

Returns:
the value of the 'Diagnostics' reference list.
See Also:
XSDPackage.getXSDConcreteComponent_Diagnostics()

elementChanged

public 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(). It is expected that clients will not call this themselves since the DOM event listeners attached to the underlying DOM will invoke these automatically.

elementAttributesChanged

public 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(). It is expected that clients will not call this themselves since the DOM event listeners attached to the underlying DOM will invoke these automatically.

elementContentsChanged

public 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(). It is expected that clients will not call this themselves since the DOM event listeners attached to the underlying DOM will invoke these automatically.

resolveTypeDefinitionURI

public XSDTypeDefinition resolveTypeDefinitionURI(java.lang.String uri)
Returns the resolved type definition of the given URI. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
uri - the URI to resolve.
Returns:
the resolved type definition.
See Also:
resolveTypeDefinition(java.lang.String, java.lang.String), resolveTypeDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveTypeDefinition

public XSDTypeDefinition resolveTypeDefinition(java.lang.String namespace,
                                               java.lang.String localName)
Returns the resolved type definition of the given namespace and name. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved type definition.
See Also:
resolveTypeDefinitionURI(java.lang.String), resolveTypeDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

resolveTypeDefinition

public XSDTypeDefinition resolveTypeDefinition(java.lang.String localName)
Returns the resolved type definition of the given name within the schema. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
localName - the name to resolve.
Returns:
the resolved type definition.
See Also:
getSchema(), XSDSchema.getTargetNamespace(), resolveTypeDefinitionURI(java.lang.String), resolveTypeDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveSimpleTypeDefinitionURI

public XSDSimpleTypeDefinition resolveSimpleTypeDefinitionURI(java.lang.String uri)
Returns the resolved simple type definition of the given URI. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
uri - the URI to resolve.
Returns:
the resolved simple type definition.
See Also:
resolveSimpleTypeDefinition(java.lang.String, java.lang.String), resolveSimpleTypeDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveSimpleTypeDefinition

public XSDSimpleTypeDefinition resolveSimpleTypeDefinition(java.lang.String namespace,
                                                           java.lang.String localName)
Returns the resolved simple type definition of the given namespace and name. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved simple type definition.
See Also:
resolveSimpleTypeDefinitionURI(java.lang.String), resolveSimpleTypeDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

resolveSimpleTypeDefinition

public XSDSimpleTypeDefinition resolveSimpleTypeDefinition(java.lang.String localName)
Returns the resolved simple type definition of the given name within the schema. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
localName - the name to resolve.
Returns:
the resolved simple type definition.
See Also:
getSchema(), XSDSchema.getTargetNamespace(), resolveSimpleTypeDefinitionURI(java.lang.String), resolveSimpleTypeDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveComplexTypeDefinitionURI

public XSDComplexTypeDefinition resolveComplexTypeDefinitionURI(java.lang.String uri)
Returns the resolved complex type definition of the given URI. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
uri - the URI to resolve.
Returns:
the resolved complex type definition.
See Also:
resolveComplexTypeDefinition(java.lang.String, java.lang.String), resolveComplexTypeDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveComplexTypeDefinition

public XSDComplexTypeDefinition resolveComplexTypeDefinition(java.lang.String namespace,
                                                             java.lang.String localName)
Returns the resolved complex type definition of the given namespace and name. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved complex type definition.
See Also:
resolveComplexTypeDefinitionURI(java.lang.String), resolveComplexTypeDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

resolveComplexTypeDefinition

public XSDComplexTypeDefinition resolveComplexTypeDefinition(java.lang.String localName)
Returns the resolved complex type definition of the given name within the schema. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
localName - the name to resolve.
Returns:
the resolved complex type definition.
See Also:
getSchema(), XSDSchema.getTargetNamespace(), resolveComplexTypeDefinitionURI(java.lang.String), resolveComplexTypeDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveAttributeDeclarationURI

public XSDAttributeDeclaration resolveAttributeDeclarationURI(java.lang.String uri)
Returns the resolved attribute declaration of the given URI. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
uri - the URI to resolve.
Returns:
the resolved attribute declaration.
See Also:
resolveAttributeDeclaration(java.lang.String, java.lang.String), resolveAttributeDeclaration(java.lang.String), XSDNamedComponent.getURI()

resolveAttributeDeclaration

public XSDAttributeDeclaration resolveAttributeDeclaration(java.lang.String namespace,
                                                           java.lang.String localName)
Returns the resolved attribute declaration of the given namespace and name. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved attribute declaration.
See Also:
resolveAttributeDeclarationURI(java.lang.String), resolveAttributeDeclaration(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

resolveAttributeDeclaration

public XSDAttributeDeclaration resolveAttributeDeclaration(java.lang.String localName)
Returns the resolved attribute declaration of the given name within the schema. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
localName - the name to resolve.
Returns:
the resolved attribute declaration.
See Also:
getSchema(), XSDSchema.getTargetNamespace(), resolveAttributeDeclarationURI(java.lang.String), resolveAttributeDeclaration(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveElementDeclarationURI

public XSDElementDeclaration resolveElementDeclarationURI(java.lang.String uri)
Returns the resolved element declaration of the given URI. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
uri - the URI to resolve.
Returns:
the resolved element declaration.
See Also:
resolveElementDeclaration(java.lang.String, java.lang.String), resolveElementDeclaration(java.lang.String), XSDNamedComponent.getURI()

resolveElementDeclaration

public XSDElementDeclaration resolveElementDeclaration(java.lang.String namespace,
                                                       java.lang.String localName)
Returns the resolved element declaration of the given namespace and name. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved element declaration.
See Also:
resolveElementDeclarationURI(java.lang.String), resolveElementDeclaration(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

resolveElementDeclaration

public XSDElementDeclaration resolveElementDeclaration(java.lang.String localName)
Returns the resolved element declaration of the given name within the schema. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
localName - the name to resolve.
Returns:
the resolved element declaration.
See Also:
getSchema(), XSDSchema.getTargetNamespace(), resolveElementDeclarationURI(java.lang.String), resolveElementDeclaration(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveAttributeGroupDefinitionURI

public XSDAttributeGroupDefinition resolveAttributeGroupDefinitionURI(java.lang.String uri)
Returns the resolved attribute group definition of the given URI. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
uri - the URI to resolve.
Returns:
the resolved attribute group definition.
See Also:
resolveAttributeGroupDefinition(java.lang.String, java.lang.String), resolveAttributeGroupDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveAttributeGroupDefinition

public XSDAttributeGroupDefinition resolveAttributeGroupDefinition(java.lang.String namespace,
                                                                   java.lang.String localName)
Returns the resolved attribute group definition the given namespace and name. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved attribute group definition
See Also:
resolveAttributeGroupDefinitionURI(java.lang.String), resolveAttributeGroupDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

resolveAttributeGroupDefinition

public XSDAttributeGroupDefinition resolveAttributeGroupDefinition(java.lang.String localName)
Returns the resolved attribute group definition of the given name within the schema. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
localName - the name to resolve.
Returns:
the resolved attribute group definition.
See Also:
getSchema(), XSDSchema.getTargetNamespace(), resolveAttributeGroupDefinitionURI(java.lang.String), resolveAttributeGroupDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveModelGroupDefinitionURI

public XSDModelGroupDefinition resolveModelGroupDefinitionURI(java.lang.String uri)
Returns the resolved model group definition of the given URI. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
uri - the URI to resolve.
Returns:
the resolved model group definition.
See Also:
resolveModelGroupDefinition(java.lang.String, java.lang.String), resolveModelGroupDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveModelGroupDefinition

public XSDModelGroupDefinition resolveModelGroupDefinition(java.lang.String namespace,
                                                           java.lang.String localName)
Returns the resolved model group definition of the given namespace and name. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved model group definition.
See Also:
resolveModelGroupDefinitionURI(java.lang.String), resolveModelGroupDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

resolveModelGroupDefinition

public XSDModelGroupDefinition resolveModelGroupDefinition(java.lang.String localName)
Returns the resolved model group definition of the given name within the schema. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
localName - the name to resolve.
Returns:
the resolved model group definition.
See Also:
getSchema(), XSDSchema.getTargetNamespace(), resolveModelGroupDefinitionURI(java.lang.String), resolveModelGroupDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveIdentityConstraintDefinitionURI

public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinitionURI(java.lang.String uri)
Returns the resolved identity constraint definition of the given URI. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
uri - the URI to resolve.
Returns:
the resolved identity constraint definition.
See Also:
resolveIdentityConstraintDefinition(java.lang.String, java.lang.String), resolveIdentityConstraintDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveIdentityConstraintDefinition

public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinition(java.lang.String namespace,
                                                                           java.lang.String localName)
Returns the resolved identity constraint definition of the given namespace and name. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved identity constraint definition.
See Also:
resolveIdentityConstraintDefinitionURI(java.lang.String), resolveIdentityConstraintDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

resolveIdentityConstraintDefinition

public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinition(java.lang.String localName)
Returns the resolved identity constraint definition of the given name within the schema. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
localName - the name to resolve.
Returns:
the resolved identity constraint definition.
See Also:
getSchema(), XSDSchema.getTargetNamespace(), resolveIdentityConstraintDefinitionURI(java.lang.String), resolveIdentityConstraintDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveNotationDeclarationURI

public XSDNotationDeclaration resolveNotationDeclarationURI(java.lang.String uri)
Returns the resolved notation declaration of the given URI. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
uri - the URI to resolve.
Returns:
the resolved notation declaration.
See Also:
resolveNotationDeclaration(java.lang.String, java.lang.String), resolveNotationDeclaration(java.lang.String), XSDNamedComponent.getURI()

resolveNotationDeclaration

public XSDNotationDeclaration resolveNotationDeclaration(java.lang.String namespace,
                                                         java.lang.String localName)
Returns the resolved notation declaration of the given namespace and name. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved notation declaration.
See Also:
resolveNotationDeclarationURI(java.lang.String), resolveNotationDeclaration(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

resolveNotationDeclaration

public XSDNotationDeclaration resolveNotationDeclaration(java.lang.String localName)
Returns the resolved notation declaration the given name within the schema. An unresolved instance is synthesized to hold the namespace and name if an existing instance cannot be found.
Parameters:
localName - the name to resolve.
Returns:
the resolved notation declaration
See Also:
getSchema(), XSDSchema.getTargetNamespace(), resolveNotationDeclarationURI(java.lang.String), resolveNotationDeclaration(java.lang.String, java.lang.String), XSDNamedComponent.getName()

getComponentsWithApplicationInformation

public java.util.Collection getComponentsWithApplicationInformation(java.lang.String sourceURI)
Returns the collection of components that have an annotation containing an appinfo with given source URI.
Parameters:
sourceURI - the source URI to match.
Returns:
the collection of matching components.
See Also:
XSDAnnotation.getApplicationInformationSources()

getComponentsWithUserInformation

public java.util.Collection getComponentsWithUserInformation(java.lang.String sourceURI)
Returns the collection of components that have an annotation containing a documentation with given source URI.
Parameters:
sourceURI - the source URI to match.
Returns:
the collection of matching components.
See Also:
XSDAnnotation.getApplicationInformationSources()

validate

public void validate()
Validates whether this component conforms to the constraints defined in the XML Schema standard. Diagnostics are produced to report any problems.
See Also:
getDiagnostics(), clearDiagnostics()

clearDiagnostics

public void clearDiagnostics()
Clears any diagnostics associated with the component and all those it contains.
See Also:
validate(), getDiagnostics()

cloneConcreteComponent

public XSDConcreteComponent cloneConcreteComponent(boolean deep,
                                                   boolean shareDOM)
Creates a clone of the component. The clone may be deep and may share the DOM of this component.
Parameters:
deep - whether the clone should be deep.
shareDOM - whether the clone should share the original DOM
Returns:
a clone of the component.

contains

public boolean contains(XSDConcreteComponent xsdConcreteComponent)
Returns whether the given component is contained by this component.
Parameters:
xsdConcreteComponent - a component.
Returns:
whether the component is contained by this component.