com.ibm.etools.xsd.impl
Class XSDConcreteComponentImpl

java.lang.Object
  |
  +--com.ibm.etools.emf.notify.impl.NotifierImpl
        |
        +--com.ibm.etools.emf.ref.impl.RefBaseObjectImpl
              |
              +--com.ibm.etools.emf.ref.impl.RefObjectImpl
                    |
                    +--com.ibm.etools.xsd.impl.XSDConcreteComponentImpl
All Implemented Interfaces:
com.ibm.etools.emf.notify.InternalNotifier, com.ibm.etools.emf.ref.InternalProxy, com.ibm.etools.emf.ref.InternalResolved, com.ibm.etools.emf.ref.Internals, com.ibm.etools.emf.notify.Notifier, com.ibm.etools.emf.ref.RefBaseObject, com.ibm.etools.emf.ref.RefObject, com.ibm.etools.emf.resource.ResourceSetReference, XSDConcreteComponent
Direct Known Subclasses:
XSDAttributeGroupContentImpl, XSDComponentImpl, XSDParticleContentImpl, XSDSchemaContentImpl

public class XSDConcreteComponentImpl
extends com.ibm.etools.emf.ref.impl.RefObjectImpl
implements XSDConcreteComponent, com.ibm.etools.emf.ref.RefObject


Field Summary
protected  int ANALYZED
           
protected  int ANALYZING
           
protected  int CIRCULAR
           
static java.lang.String copyright
           
protected  com.ibm.etools.emf.ref.EList diagnostics
          The cached value of the 'Diagnostics' reference list.
protected  Element element
          The cached value of the 'Element' attribute.
protected static int ERROR
           
protected static int FATAL
           
protected static int INFORMATION
           
protected  boolean isReconciling
           
protected  XSDConcreteComponent owner
          The cached value of the 'Owner' reference.
protected  XSDConcreteComponent rootOwner
          The cached value of the 'Root Owner' reference.
protected  XSDSchema schema
          The cached value of the 'Schema' reference.
protected  int UNANALYZED
           
protected  boolean updatingDOM
           
protected static int WARNING
           
 
Fields inherited from class com.ibm.etools.emf.ref.impl.RefObjectImpl
refDelegateOwner
 
Fields inherited from class com.ibm.etools.emf.ref.impl.RefBaseObjectImpl
helper
 
Fields inherited from class com.ibm.etools.emf.notify.impl.NotifierImpl
debug, isOn, isOnAll
 
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
 
Constructor Summary
protected XSDConcreteComponentImpl()
           
 
Method Summary
protected  void adoptBy(XSDSchema xsdSchema)
           
protected  void adoptContent(com.ibm.etools.emf.ref.RefReference refReference, XSDConcreteComponent xsdConcreteComponent)
           
protected  void adoptDiagnostic(XSDDiagnostic xsdDiagnostic)
           
protected  boolean analyze()
           
protected  void changeAttribute(com.ibm.etools.emf.ref.RefAttribute refAttribute)
           
protected  void changeReference(com.ibm.etools.emf.ref.RefReference refReference)
           
protected  java.util.Collection checkAttributes(java.lang.String part, java.lang.String anchor, Element element, java.lang.String[] attributeNames)
           
protected  XSDDiagnostic checkBuiltInTypeConstraint(java.lang.String builtInTypeName, java.lang.String value, java.lang.String part, java.lang.String anchor, Element element, java.lang.String attributeName, boolean isRequired)
           
protected  XSDDiagnostic checkSimpleTypeConstraint(XSDSimpleTypeDefinition xsdTypeDefinition, java.lang.String value, java.lang.String part, java.lang.String anchor, Element element, java.lang.String attributeName, boolean isRequired)
           
 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.
protected static java.util.List cloneConcreteComponents(java.util.List xsdConcreteComponents, boolean deep, boolean shareDOM)
           
protected  boolean considerAllContainsForBestConcreteComponent()
           
 boolean contains(XSDConcreteComponent xsdConcreteComponent)
          Returns whether the given component is contained by this component.
protected  XSDDiagnostic createDiagnostic(int severity, java.lang.String key, java.lang.String s1)
           
protected  XSDDiagnostic createDiagnostic(int severity, java.lang.String key, java.lang.String s1, java.lang.String s2)
           
 Element createElement()
           
protected  Element createElement(int nodeType)
           
protected  XSDDiagnostic createRequiredAttributeDiagnostic(java.lang.String part, java.lang.String anchor, Element element, java.lang.String attributeName)
           
protected  XSDAttributeDeclaration createUnresolvedAttributeDeclaration(java.lang.String namespace, java.lang.String localName)
           
protected  XSDAttributeGroupDefinition createUnresolvedAttributeGroupDefinition(java.lang.String namespace, java.lang.String localName)
           
protected  XSDComplexTypeDefinition createUnresolvedComplexTypeDefinition(java.lang.String namespace, java.lang.String localName)
           
protected  XSDElementDeclaration createUnresolvedElementDeclaration(java.lang.String namespace, java.lang.String localName)
           
protected  XSDIdentityConstraintDefinition createUnresolvedIdentityConstraintDefinition(java.lang.String namespace, java.lang.String localName)
           
protected  XSDModelGroupDefinition createUnresolvedModelGroupDefinition(java.lang.String namespace, java.lang.String localName)
           
protected  XSDNotationDeclaration createUnresolvedNotationDeclaration(java.lang.String namespace, java.lang.String localName)
           
protected  XSDSimpleTypeDefinition createUnresolvedSimpleTypeDefinition(java.lang.String namespace, java.lang.String localName)
           
protected  XSDTypeDefinition createUnresolvedTypeDefinition(java.lang.String namespace, java.lang.String localName)
           
 com.ibm.etools.emf.ecore.EClass eClassXSDConcreteComponent()
          
 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()
          
 void forceEngulf(Element newElement, Element engulfingElement, Element referenceElement, Node referenceChild)
           
 void forceEngulf(Node firstAdoptee, Element engulfingElement, Node referenceChild)
           
 void forceNiceInsertBefore(Node parent, Node newChild, Node referenceChild)
           
 void forceNiceRemoveChild(Node parent, Node child)
           
 void forceReplace(Element replacementElement, Element referenceElement)
           
protected  Node getAdoptionParentNode(com.ibm.etools.emf.ref.RefReference refReference)
           
protected  XSDConcreteComponent getBestConcreteComponent(java.util.List elementPath)
           
 java.util.Collection getComponentsWithApplicationInformation(java.lang.String sourceURI)
          Returns the collection of components that have an annotation containing an appinfo with given source URI.
protected  void getComponentsWithInformation(java.util.Collection result, int nodeType, java.lang.String sourceURI)
           
 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.
protected  java.util.Collection getContentNodes(Element changedElement)
           
 com.ibm.etools.emf.ref.EList getDiagnostics()
          
 Element getElement()
          
 XSDConcreteComponent getOwner()
          Returns the value of the 'Owner' reference.
 XSDConcreteComponent getOwnerGen()
          
 XSDConcreteComponent getRootContainer()
          Returns the value of the 'Root Container' reference.
 XSDConcreteComponent getRootOwner()
          
 XSDSchema getSchema()
          Returns the value of the 'Schema' reference.
protected  java.lang.String getURIReferenceLabel()
           
 java.lang.String getURIReferencePath()
          Returns the value of the 'URI Reference Path' attribute.
protected  XSDFactory getXSDFactory()
           
protected  XSDPackage getXSDPackage()
           
protected  void handleAnnotationReconciliation(com.ibm.etools.emf.ref.RefReference refReference, java.util.List newContents, java.util.List remainingContents)
           
protected  void handleElementForAdopt(com.ibm.etools.emf.ref.RefReference refReference, XSDConcreteComponent xsdConcreteComponent)
           
protected  void handleReconciliation(java.util.List newContents, java.util.List remainingContents)
           
protected  void handleUnreconciledElement(Element child, java.util.List newContents, java.util.List remainingContents)
           
 com.ibm.etools.emf.ref.RefObject initInstance()
          
 void internalNotify(com.ibm.etools.emf.notify.Notification msg)
           
 boolean isSetElement()
          
 boolean isSetOwner()
          
 boolean isSetRootOwner()
          
 boolean isSetSchema()
          
protected  boolean isUpdatingDOM()
           
 void moveContent(com.ibm.etools.emf.ref.RefReference refReference, XSDConcreteComponent xsdConcreteComponent)
           
protected  java.lang.String niceCreateNamespaceAttribute(java.lang.String namespace)
           
 void niceInsertBefore(Node parent, Node newChild, Node referenceChild)
           
 void niceRemoveChild(Node parent, Node child)
           
protected  void niceSetAttribute(Element element, java.lang.String attribute, java.lang.String value)
           
protected  void niceSetAttributeURIValue(Element element, java.lang.String attribute, java.lang.String uriList)
           
protected  void orphanBy(XSDSchema xsdSchema)
           
protected  void orphanContent(com.ibm.etools.emf.ref.RefReference refReference, XSDConcreteComponent xsdConcreteComponent)
           
protected  void orphanDiagnostic(XSDDiagnostic xsdDiagnostic)
           
protected  void patch()
           
protected  void reconcile(Element changedElement)
           
protected  void reconcileAttributes(Element changedElement)
           
protected  void reconcileContents(Element changedElement)
           
 com.ibm.etools.emf.notify.Notification refBasicSetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature, java.lang.Object newValue)
          
 com.ibm.etools.emf.notify.Notification refBasicUnsetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
 java.lang.Object refBasicValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
 boolean refIsSet(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
 void refSetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature, java.lang.Object newValue)
          
 void refUnsetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
 java.lang.Object refValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
protected  XSDDiagnostic reportConstraintViolation(java.lang.String part, java.lang.String anchor, Element element, java.lang.String attributeName, java.lang.Object[] substitutions)
           
 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 element)
          Sets the value of the 'Element' attribute.
 void setElementGen(Element value)
           
static void setListContentAndOrder(com.ibm.etools.emf.ref.EList targetList, java.util.List prototypeList)
           
 void setOwner(XSDConcreteComponent value)
          
 void setRootOwner(XSDConcreteComponent value)
          
 void setSchema(XSDSchema value)
          
 java.lang.String toString()
          
protected  void traverseToRootForAnalysis()
           
protected  void traverseToRootForPatching()
           
 void unsetElement()
          Unsets the value of the 'Element' attribute.
 void unsetElementGen()
           
 void unsetOwner()
          
 void unsetRootOwner()
          
 void unsetSchema()
          
 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 class com.ibm.etools.emf.ref.impl.RefObjectImpl
getAdapter, initInstanceDelegates, newCollection, newCollection, newCollection, notify, notify, refAddValue, refAddValueAt, refAddValueBefore, refBasicContains, refBasicRemoveContent, refBasicRemoveValue, refBasicValues, refContainer, refContains, refCurrentValues, refDelegateOwner, refDelete, refGetDefaultValues, refIsDelegate, refModifyValue, refModifyValueAt, refRemoveContent, refRemoveValue, refRemoveValueAt, refResource, refSetDelegateOwner, refSetValueForContainMVReference, refSetValueForContainSVReference, refSetValueForEnumAttribute, refSetValueForMVReference, refSetValueForRefObjectSF, refSetValueForSimpleSF, refSetValueForSVReference, refUnsetValueForContainReference, refUnsetValueForMVReference, refUnsetValueForRefObjectSF, refUnsetValueForSimpleSF, refUnsetValueForSVReference
 
Methods inherited from class com.ibm.etools.emf.ref.impl.RefBaseObjectImpl
getImplementationHelper, getRegisteredAdapterFactory, getResourceSet, initDelegates, metaObject, refAttributes, refBasicContainsExtent, refBasicSetContainer, refContainerExtent, refContainerSF, refContainments, refContainments, refContains, refContainsExtent, refContainsNested, refCreateProxy, refDefiningPackage, refExtent, refFindUnloadedObjectsContains, refGetProxyURI, refHref, refID, refImmediatePackage, refIsContainer, refIsDeleted, refIsProxy, refItself, refMetaObject, refMofId, refName, refOutermostPackage, refPackage, refReferences, refSetContainer, refSetContainer, refSetExtent, refSetID, refSetID, refSetIDContains, refSetMetaObject, refSetProxyURI, refSetUUID, refSetUUID, refSetUUID, resolve, resolve, resolved, resolveDelete
 
Methods inherited from class com.ibm.etools.emf.notify.impl.NotifierImpl
addAdapter, ensureAdapterSpace, getAdapters, getExistingAdapter, isDelivery, isDeliveryAll, removeAdapter, removeAllAdapters, setDelivery, setDeliveryAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.emf.ref.RefObject
refAddValue, refAddValueAt, refAddValueBefore, refCurrentValues, refDelegateOwner, refGetDefaultValues, refModifyValue, refModifyValueAt, refRemoveValue, refRemoveValueAt, refSetDelegateOwner
 
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
 
Methods inherited from interface com.ibm.etools.emf.ref.Internals
refBasicContainsExtent, refBasicSetContainer, refSetContainer, refSetContainer
 

Field Detail

copyright

public static final java.lang.String copyright

element

protected Element element
The cached value of the 'Element' attribute.
See Also:
getElement()

owner

protected XSDConcreteComponent owner
The cached value of the 'Owner' reference.
See Also:
getOwner()

rootOwner

protected XSDConcreteComponent rootOwner
The cached value of the 'Root Owner' reference.
See Also:
getRootOwner()

schema

protected XSDSchema schema
The cached value of the 'Schema' reference.
See Also:
getSchema()

diagnostics

protected com.ibm.etools.emf.ref.EList diagnostics
The cached value of the 'Diagnostics' reference list.
See Also:
getDiagnostics()

FATAL

protected static final int FATAL

ERROR

protected static final int ERROR

WARNING

protected static final int WARNING

INFORMATION

protected static final int INFORMATION

updatingDOM

protected boolean updatingDOM

isReconciling

protected boolean isReconciling

UNANALYZED

protected final int UNANALYZED

ANALYZING

protected final int ANALYZING

ANALYZED

protected final int ANALYZED

CIRCULAR

protected final int CIRCULAR
Constructor Detail

XSDConcreteComponentImpl

protected XSDConcreteComponentImpl()
Method Detail

ePackageXSD

public XSDPackage ePackageXSD()
Specified by:
ePackageXSD in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the meta package of XSDConcreteComponent.

eClassXSDConcreteComponent

public com.ibm.etools.emf.ecore.EClass eClassXSDConcreteComponent()
Specified by:
eClassXSDConcreteComponent in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the meta class.
See Also:
XSDPackage.getXSDConcreteComponent(), XSDConcreteComponent.ePackageXSD()

initInstance

public com.ibm.etools.emf.ref.RefObject initInstance()
Specified by:
initInstance in interface com.ibm.etools.emf.ref.RefObject
Overrides:
initInstance in class com.ibm.etools.emf.ref.impl.RefObjectImpl

getXSDFactory

protected XSDFactory getXSDFactory()

getXSDPackage

protected XSDPackage getXSDPackage()

createElement

protected final Element createElement(int nodeType)

createElement

public Element createElement()

updateElement

public void updateElement(boolean deep)
Description copied from interface: XSDConcreteComponent
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 XSDConcreteComponent.updateElement(); otherwise, it updates just the DOM element associated with this component to reflect the current state.
Specified by:
updateElement in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.updateElement(), XSDConcreteComponent.getElement()

updateElement

public void updateElement()
Description copied from interface: XSDConcreteComponent
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.
Specified by:
updateElement in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.updateElement(boolean), XSDConcreteComponent.getElement()

isUpdatingDOM

protected boolean isUpdatingDOM()

elementChanged

public void elementChanged(Element changedElement)
Description copied from interface: XSDConcreteComponent
Called to indicate that the given element has changed; the element should typically be the same as the one returned 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.
Specified by:
elementChanged in interface XSDConcreteComponent

elementAttributesChanged

public void elementAttributesChanged(Element changedElement)
Description copied from interface: XSDConcreteComponent
Called to indicate that the given element has changed attributes; the element should typically be the same as the one returned 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.
Specified by:
elementAttributesChanged in interface XSDConcreteComponent

elementContentsChanged

public void elementContentsChanged(Element changedElement)
Description copied from interface: XSDConcreteComponent
Called to indicate that the given element has changed contents; the element should typically be the same as the one returned 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.
Specified by:
elementContentsChanged in interface XSDConcreteComponent

traverseToRootForPatching

protected void traverseToRootForPatching()

traverseToRootForAnalysis

protected void traverseToRootForAnalysis()

patch

protected void patch()

analyze

protected boolean analyze()

validate

public void validate()
Description copied from interface: XSDConcreteComponent
Validates whether this component conforms to the constraints defined in the XML Schema standard. Diagnostics are produced to report any problems.
Specified by:
validate in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.getDiagnostics(), XSDConcreteComponent.clearDiagnostics()

clearDiagnostics

public void clearDiagnostics()
Description copied from interface: XSDConcreteComponent
Clears any diagnostics associated with the component and all those it contains.
Specified by:
clearDiagnostics in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.validate(), XSDConcreteComponent.getDiagnostics()

reportConstraintViolation

protected XSDDiagnostic reportConstraintViolation(java.lang.String part,
                                                  java.lang.String anchor,
                                                  Element element,
                                                  java.lang.String attributeName,
                                                  java.lang.Object[] substitutions)

checkBuiltInTypeConstraint

protected XSDDiagnostic checkBuiltInTypeConstraint(java.lang.String builtInTypeName,
                                                   java.lang.String value,
                                                   java.lang.String part,
                                                   java.lang.String anchor,
                                                   Element element,
                                                   java.lang.String attributeName,
                                                   boolean isRequired)

checkSimpleTypeConstraint

protected XSDDiagnostic checkSimpleTypeConstraint(XSDSimpleTypeDefinition xsdTypeDefinition,
                                                  java.lang.String value,
                                                  java.lang.String part,
                                                  java.lang.String anchor,
                                                  Element element,
                                                  java.lang.String attributeName,
                                                  boolean isRequired)

createRequiredAttributeDiagnostic

protected XSDDiagnostic createRequiredAttributeDiagnostic(java.lang.String part,
                                                          java.lang.String anchor,
                                                          Element element,
                                                          java.lang.String attributeName)

checkAttributes

protected java.util.Collection checkAttributes(java.lang.String part,
                                               java.lang.String anchor,
                                               Element element,
                                               java.lang.String[] attributeNames)

createDiagnostic

protected XSDDiagnostic createDiagnostic(int severity,
                                         java.lang.String key,
                                         java.lang.String s1,
                                         java.lang.String s2)

createDiagnostic

protected XSDDiagnostic createDiagnostic(int severity,
                                         java.lang.String key,
                                         java.lang.String s1)

reconcile

protected void reconcile(Element changedElement)

reconcileAttributes

protected void reconcileAttributes(Element changedElement)

getContentNodes

protected java.util.Collection getContentNodes(Element changedElement)

reconcileContents

protected void reconcileContents(Element changedElement)

handleUnreconciledElement

protected void handleUnreconciledElement(Element child,
                                         java.util.List newContents,
                                         java.util.List remainingContents)

handleReconciliation

protected void handleReconciliation(java.util.List newContents,
                                    java.util.List remainingContents)

handleAnnotationReconciliation

protected void handleAnnotationReconciliation(com.ibm.etools.emf.ref.RefReference refReference,
                                              java.util.List newContents,
                                              java.util.List remainingContents)

internalNotify

public void internalNotify(com.ibm.etools.emf.notify.Notification msg)
Overrides:
internalNotify in class com.ibm.etools.emf.ref.impl.RefBaseObjectImpl

changeAttribute

protected void changeAttribute(com.ibm.etools.emf.ref.RefAttribute refAttribute)

changeReference

protected void changeReference(com.ibm.etools.emf.ref.RefReference refReference)

getAdoptionParentNode

protected Node getAdoptionParentNode(com.ibm.etools.emf.ref.RefReference refReference)

handleElementForAdopt

protected void handleElementForAdopt(com.ibm.etools.emf.ref.RefReference refReference,
                                     XSDConcreteComponent xsdConcreteComponent)

adoptContent

protected void adoptContent(com.ibm.etools.emf.ref.RefReference refReference,
                            XSDConcreteComponent xsdConcreteComponent)

adoptBy

protected void adoptBy(XSDSchema xsdSchema)

adoptDiagnostic

protected void adoptDiagnostic(XSDDiagnostic xsdDiagnostic)

orphanContent

protected void orphanContent(com.ibm.etools.emf.ref.RefReference refReference,
                             XSDConcreteComponent xsdConcreteComponent)

orphanBy

protected void orphanBy(XSDSchema xsdSchema)

orphanDiagnostic

protected void orphanDiagnostic(XSDDiagnostic xsdDiagnostic)

moveContent

public void moveContent(com.ibm.etools.emf.ref.RefReference refReference,
                        XSDConcreteComponent xsdConcreteComponent)

niceInsertBefore

public void niceInsertBefore(Node parent,
                             Node newChild,
                             Node referenceChild)

forceNiceInsertBefore

public void forceNiceInsertBefore(Node parent,
                                  Node newChild,
                                  Node referenceChild)

niceRemoveChild

public void niceRemoveChild(Node parent,
                            Node child)

forceNiceRemoveChild

public void forceNiceRemoveChild(Node parent,
                                 Node child)

forceReplace

public void forceReplace(Element replacementElement,
                         Element referenceElement)

forceEngulf

public void forceEngulf(Element newElement,
                        Element engulfingElement,
                        Element referenceElement,
                        Node referenceChild)

forceEngulf

public void forceEngulf(Node firstAdoptee,
                        Element engulfingElement,
                        Node referenceChild)

niceSetAttribute

protected void niceSetAttribute(Element element,
                                java.lang.String attribute,
                                java.lang.String value)

niceCreateNamespaceAttribute

protected java.lang.String niceCreateNamespaceAttribute(java.lang.String namespace)

niceSetAttributeURIValue

protected void niceSetAttributeURIValue(Element element,
                                        java.lang.String attribute,
                                        java.lang.String uriList)

getContainer

public XSDConcreteComponent getContainer()
Description copied from interface: XSDConcreteComponent
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.

Specified by:
getContainer in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the value of the 'Container' reference.
See Also:
XSDPackage.getXSDConcreteComponent_Container()

getRootContainer

public XSDConcreteComponent getRootContainer()
Description copied from interface: XSDConcreteComponent
Returns the value of the 'Root Container' reference.

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

Specified by:
getRootContainer in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the value of the 'Root Container' reference.
See Also:
XSDPackage.getXSDConcreteComponent_RootContainer()

getOwnerGen

public XSDConcreteComponent getOwnerGen()

getOwner

public XSDConcreteComponent getOwner()
Description copied from interface: XSDConcreteComponent
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.

Specified by:
getOwner in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the value of the 'Owner' reference.
See Also:
XSDConcreteComponent.isSetOwner(), XSDConcreteComponent.unsetOwner(), XSDConcreteComponent.setOwner(XSDConcreteComponent), XSDPackage.getXSDConcreteComponent_Owner()

setOwner

public void setOwner(XSDConcreteComponent value)
Specified by:
setOwner in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
value - the new value of the 'Owner' reference.
See Also:
XSDConcreteComponent.isSetOwner(), XSDConcreteComponent.unsetOwner(), XSDConcreteComponent.getOwner()

unsetOwner

public void unsetOwner()
Specified by:
unsetOwner in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.isSetOwner(), XSDConcreteComponent.getOwner(), XSDConcreteComponent.setOwner(XSDConcreteComponent)

isSetOwner

public boolean isSetOwner()
Specified by:
isSetOwner in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
whether the value of the 'Owner' reference is set.
See Also:
XSDConcreteComponent.unsetOwner(), XSDConcreteComponent.getOwner(), XSDConcreteComponent.setOwner(XSDConcreteComponent)

getRootOwner

public XSDConcreteComponent getRootOwner()
Specified by:
getRootOwner in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the value of the 'Root Owner' reference.
See Also:
XSDConcreteComponent.isSetRootOwner(), XSDConcreteComponent.unsetRootOwner(), XSDConcreteComponent.setRootOwner(XSDConcreteComponent), XSDPackage.getXSDConcreteComponent_RootOwner()

setRootOwner

public void setRootOwner(XSDConcreteComponent value)
Specified by:
setRootOwner in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
value - the new value of the 'Root Owner' reference.
See Also:
XSDConcreteComponent.isSetRootOwner(), XSDConcreteComponent.unsetRootOwner(), XSDConcreteComponent.getRootOwner()

unsetRootOwner

public void unsetRootOwner()
Specified by:
unsetRootOwner in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.isSetRootOwner(), XSDConcreteComponent.getRootOwner(), XSDConcreteComponent.setRootOwner(XSDConcreteComponent)

isSetRootOwner

public boolean isSetRootOwner()
Specified by:
isSetRootOwner in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
whether the value of the 'Root Owner' reference is set.
See Also:
XSDConcreteComponent.unsetRootOwner(), XSDConcreteComponent.getRootOwner(), XSDConcreteComponent.setRootOwner(XSDConcreteComponent)

contains

public boolean contains(XSDConcreteComponent xsdConcreteComponent)
Description copied from interface: XSDConcreteComponent
Returns whether the given component is contained by this component.
Specified by:
contains in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
xsdConcreteComponent - a component.
Returns:
whether the component is contained by this component.

getSchema

public XSDSchema getSchema()
Description copied from interface: XSDConcreteComponent
Returns the value of the 'Schema' reference.

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

Specified by:
getSchema in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the value of the 'Schema' reference.
See Also:
XSDConcreteComponent.isSetSchema(), XSDConcreteComponent.unsetSchema(), XSDConcreteComponent.setSchema(XSDSchema), XSDPackage.getXSDConcreteComponent_Schema()

setSchema

public void setSchema(XSDSchema value)
Specified by:
setSchema in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
value - the new value of the 'Schema' reference.
See Also:
XSDConcreteComponent.isSetSchema(), XSDConcreteComponent.unsetSchema(), XSDConcreteComponent.getSchema()

unsetSchema

public void unsetSchema()
Specified by:
unsetSchema in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.isSetSchema(), XSDConcreteComponent.getSchema(), XSDConcreteComponent.setSchema(XSDSchema)

isSetSchema

public boolean isSetSchema()
Specified by:
isSetSchema in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
whether the value of the 'Schema' reference is set.
See Also:
XSDConcreteComponent.unsetSchema(), XSDConcreteComponent.getSchema(), XSDConcreteComponent.setSchema(XSDSchema)

getDiagnostics

public com.ibm.etools.emf.ref.EList getDiagnostics()
Specified by:
getDiagnostics in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the value of the 'Diagnostics' reference list.
See Also:
XSDPackage.getXSDConcreteComponent_Diagnostics()

refValue

public java.lang.Object refValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
Specified by:
refValue in interface com.ibm.etools.emf.ref.RefObject
Overrides:
refValue in class com.ibm.etools.emf.ref.impl.RefObjectImpl

refBasicValue

public java.lang.Object refBasicValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
Overrides:
refBasicValue in class com.ibm.etools.emf.ref.impl.RefObjectImpl

refIsSet

public boolean refIsSet(com.ibm.etools.emf.ref.RefStructuralFeature feature)
Specified by:
refIsSet in interface com.ibm.etools.emf.ref.RefObject
Overrides:
refIsSet in class com.ibm.etools.emf.ref.impl.RefObjectImpl

refSetValue

public void refSetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature,
                        java.lang.Object newValue)
Specified by:
refSetValue in interface com.ibm.etools.emf.ref.RefObject
Overrides:
refSetValue in class com.ibm.etools.emf.ref.impl.RefObjectImpl

refBasicSetValue

public com.ibm.etools.emf.notify.Notification refBasicSetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature,
                                                               java.lang.Object newValue)
Overrides:
refBasicSetValue in class com.ibm.etools.emf.ref.impl.RefObjectImpl

refUnsetValue

public void refUnsetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
Specified by:
refUnsetValue in interface com.ibm.etools.emf.ref.RefObject
Overrides:
refUnsetValue in class com.ibm.etools.emf.ref.impl.RefObjectImpl

refBasicUnsetValue

public com.ibm.etools.emf.notify.Notification refBasicUnsetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
Overrides:
refBasicUnsetValue in class com.ibm.etools.emf.ref.impl.RefObjectImpl

toString

public java.lang.String toString()
Overrides:
toString in class com.ibm.etools.emf.ref.impl.RefBaseObjectImpl

getBestConcreteComponent

protected XSDConcreteComponent getBestConcreteComponent(java.util.List elementPath)

considerAllContainsForBestConcreteComponent

protected boolean considerAllContainsForBestConcreteComponent()

setListContentAndOrder

public static void setListContentAndOrder(com.ibm.etools.emf.ref.EList targetList,
                                          java.util.List prototypeList)

getURIReferenceLabel

protected java.lang.String getURIReferenceLabel()

getURIReferencePath

public java.lang.String getURIReferencePath()
Description copied from interface: XSDConcreteComponent
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.

Specified by:
getURIReferencePath in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the value of the 'URI Reference Path' attribute.
See Also:
XSDPackage.getXSDConcreteComponent_URIReferencePath()

resolveTypeDefinitionURI

public XSDTypeDefinition resolveTypeDefinitionURI(java.lang.String uri)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveTypeDefinitionURI in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
uri - the URI to resolve.
Returns:
the resolved type definition.
See Also:
XSDConcreteComponent.resolveTypeDefinition(java.lang.String, java.lang.String), XSDConcreteComponent.resolveTypeDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveTypeDefinition

public XSDTypeDefinition resolveTypeDefinition(java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveTypeDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
localName - the name to resolve.
Returns:
the resolved type definition.
See Also:
XSDConcreteComponent.getSchema(), XSDSchema.getTargetNamespace(), XSDConcreteComponent.resolveTypeDefinitionURI(java.lang.String), XSDConcreteComponent.resolveTypeDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveTypeDefinition

public XSDTypeDefinition resolveTypeDefinition(java.lang.String namespace,
                                               java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveTypeDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved type definition.
See Also:
XSDConcreteComponent.resolveTypeDefinitionURI(java.lang.String), XSDConcreteComponent.resolveTypeDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

createUnresolvedTypeDefinition

protected XSDTypeDefinition createUnresolvedTypeDefinition(java.lang.String namespace,
                                                           java.lang.String localName)

resolveSimpleTypeDefinitionURI

public XSDSimpleTypeDefinition resolveSimpleTypeDefinitionURI(java.lang.String uri)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveSimpleTypeDefinitionURI in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
uri - the URI to resolve.
Returns:
the resolved simple type definition.
See Also:
XSDConcreteComponent.resolveSimpleTypeDefinition(java.lang.String, java.lang.String), XSDConcreteComponent.resolveSimpleTypeDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveSimpleTypeDefinition

public XSDSimpleTypeDefinition resolveSimpleTypeDefinition(java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveSimpleTypeDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
localName - the name to resolve.
Returns:
the resolved simple type definition.
See Also:
XSDConcreteComponent.getSchema(), XSDSchema.getTargetNamespace(), XSDConcreteComponent.resolveSimpleTypeDefinitionURI(java.lang.String), XSDConcreteComponent.resolveSimpleTypeDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveSimpleTypeDefinition

public XSDSimpleTypeDefinition resolveSimpleTypeDefinition(java.lang.String namespace,
                                                           java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveSimpleTypeDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved simple type definition.
See Also:
XSDConcreteComponent.resolveSimpleTypeDefinitionURI(java.lang.String), XSDConcreteComponent.resolveSimpleTypeDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

createUnresolvedSimpleTypeDefinition

protected XSDSimpleTypeDefinition createUnresolvedSimpleTypeDefinition(java.lang.String namespace,
                                                                       java.lang.String localName)

resolveComplexTypeDefinitionURI

public XSDComplexTypeDefinition resolveComplexTypeDefinitionURI(java.lang.String uri)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveComplexTypeDefinitionURI in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
uri - the URI to resolve.
Returns:
the resolved complex type definition.
See Also:
XSDConcreteComponent.resolveComplexTypeDefinition(java.lang.String, java.lang.String), XSDConcreteComponent.resolveComplexTypeDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveComplexTypeDefinition

public XSDComplexTypeDefinition resolveComplexTypeDefinition(java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveComplexTypeDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
localName - the name to resolve.
Returns:
the resolved complex type definition.
See Also:
XSDConcreteComponent.getSchema(), XSDSchema.getTargetNamespace(), XSDConcreteComponent.resolveComplexTypeDefinitionURI(java.lang.String), XSDConcreteComponent.resolveComplexTypeDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveComplexTypeDefinition

public XSDComplexTypeDefinition resolveComplexTypeDefinition(java.lang.String namespace,
                                                             java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveComplexTypeDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved complex type definition.
See Also:
XSDConcreteComponent.resolveComplexTypeDefinitionURI(java.lang.String), XSDConcreteComponent.resolveComplexTypeDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

createUnresolvedComplexTypeDefinition

protected XSDComplexTypeDefinition createUnresolvedComplexTypeDefinition(java.lang.String namespace,
                                                                         java.lang.String localName)

resolveAttributeDeclarationURI

public XSDAttributeDeclaration resolveAttributeDeclarationURI(java.lang.String uri)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveAttributeDeclarationURI in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
uri - the URI to resolve.
Returns:
the resolved attribute declaration.
See Also:
XSDConcreteComponent.resolveAttributeDeclaration(java.lang.String, java.lang.String), XSDConcreteComponent.resolveAttributeDeclaration(java.lang.String), XSDNamedComponent.getURI()

resolveAttributeDeclaration

public XSDAttributeDeclaration resolveAttributeDeclaration(java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveAttributeDeclaration in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
localName - the name to resolve.
Returns:
the resolved attribute declaration.
See Also:
XSDConcreteComponent.getSchema(), XSDSchema.getTargetNamespace(), XSDConcreteComponent.resolveAttributeDeclarationURI(java.lang.String), XSDConcreteComponent.resolveAttributeDeclaration(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveAttributeDeclaration

public XSDAttributeDeclaration resolveAttributeDeclaration(java.lang.String namespace,
                                                           java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveAttributeDeclaration in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved attribute declaration.
See Also:
XSDConcreteComponent.resolveAttributeDeclarationURI(java.lang.String), XSDConcreteComponent.resolveAttributeDeclaration(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

createUnresolvedAttributeDeclaration

protected XSDAttributeDeclaration createUnresolvedAttributeDeclaration(java.lang.String namespace,
                                                                       java.lang.String localName)

resolveElementDeclarationURI

public XSDElementDeclaration resolveElementDeclarationURI(java.lang.String uri)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveElementDeclarationURI in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
uri - the URI to resolve.
Returns:
the resolved element declaration.
See Also:
XSDConcreteComponent.resolveElementDeclaration(java.lang.String, java.lang.String), XSDConcreteComponent.resolveElementDeclaration(java.lang.String), XSDNamedComponent.getURI()

resolveElementDeclaration

public XSDElementDeclaration resolveElementDeclaration(java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveElementDeclaration in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
localName - the name to resolve.
Returns:
the resolved element declaration.
See Also:
XSDConcreteComponent.getSchema(), XSDSchema.getTargetNamespace(), XSDConcreteComponent.resolveElementDeclarationURI(java.lang.String), XSDConcreteComponent.resolveElementDeclaration(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveElementDeclaration

public XSDElementDeclaration resolveElementDeclaration(java.lang.String namespace,
                                                       java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveElementDeclaration in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved element declaration.
See Also:
XSDConcreteComponent.resolveElementDeclarationURI(java.lang.String), XSDConcreteComponent.resolveElementDeclaration(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

createUnresolvedElementDeclaration

protected XSDElementDeclaration createUnresolvedElementDeclaration(java.lang.String namespace,
                                                                   java.lang.String localName)

resolveAttributeGroupDefinitionURI

public XSDAttributeGroupDefinition resolveAttributeGroupDefinitionURI(java.lang.String uri)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveAttributeGroupDefinitionURI in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
uri - the URI to resolve.
Returns:
the resolved attribute group definition.
See Also:
XSDConcreteComponent.resolveAttributeGroupDefinition(java.lang.String, java.lang.String), XSDConcreteComponent.resolveAttributeGroupDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveAttributeGroupDefinition

public XSDAttributeGroupDefinition resolveAttributeGroupDefinition(java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveAttributeGroupDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
localName - the name to resolve.
Returns:
the resolved attribute group definition.
See Also:
XSDConcreteComponent.getSchema(), XSDSchema.getTargetNamespace(), XSDConcreteComponent.resolveAttributeGroupDefinitionURI(java.lang.String), XSDConcreteComponent.resolveAttributeGroupDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveAttributeGroupDefinition

public XSDAttributeGroupDefinition resolveAttributeGroupDefinition(java.lang.String namespace,
                                                                   java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveAttributeGroupDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved attribute group definition
See Also:
XSDConcreteComponent.resolveAttributeGroupDefinitionURI(java.lang.String), XSDConcreteComponent.resolveAttributeGroupDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

createUnresolvedAttributeGroupDefinition

protected XSDAttributeGroupDefinition createUnresolvedAttributeGroupDefinition(java.lang.String namespace,
                                                                               java.lang.String localName)

resolveModelGroupDefinitionURI

public XSDModelGroupDefinition resolveModelGroupDefinitionURI(java.lang.String uri)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveModelGroupDefinitionURI in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
uri - the URI to resolve.
Returns:
the resolved model group definition.
See Also:
XSDConcreteComponent.resolveModelGroupDefinition(java.lang.String, java.lang.String), XSDConcreteComponent.resolveModelGroupDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveModelGroupDefinition

public XSDModelGroupDefinition resolveModelGroupDefinition(java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveModelGroupDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
localName - the name to resolve.
Returns:
the resolved model group definition.
See Also:
XSDConcreteComponent.getSchema(), XSDSchema.getTargetNamespace(), XSDConcreteComponent.resolveModelGroupDefinitionURI(java.lang.String), XSDConcreteComponent.resolveModelGroupDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveModelGroupDefinition

public XSDModelGroupDefinition resolveModelGroupDefinition(java.lang.String namespace,
                                                           java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveModelGroupDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved model group definition.
See Also:
XSDConcreteComponent.resolveModelGroupDefinitionURI(java.lang.String), XSDConcreteComponent.resolveModelGroupDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

createUnresolvedModelGroupDefinition

protected XSDModelGroupDefinition createUnresolvedModelGroupDefinition(java.lang.String namespace,
                                                                       java.lang.String localName)

resolveIdentityConstraintDefinitionURI

public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinitionURI(java.lang.String uri)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveIdentityConstraintDefinitionURI in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
uri - the URI to resolve.
Returns:
the resolved identity constraint definition.
See Also:
XSDConcreteComponent.resolveIdentityConstraintDefinition(java.lang.String, java.lang.String), XSDConcreteComponent.resolveIdentityConstraintDefinition(java.lang.String), XSDNamedComponent.getURI()

resolveIdentityConstraintDefinition

public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinition(java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveIdentityConstraintDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
localName - the name to resolve.
Returns:
the resolved identity constraint definition.
See Also:
XSDConcreteComponent.getSchema(), XSDSchema.getTargetNamespace(), XSDConcreteComponent.resolveIdentityConstraintDefinitionURI(java.lang.String), XSDConcreteComponent.resolveIdentityConstraintDefinition(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveIdentityConstraintDefinition

public XSDIdentityConstraintDefinition resolveIdentityConstraintDefinition(java.lang.String namespace,
                                                                           java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveIdentityConstraintDefinition in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved identity constraint definition.
See Also:
XSDConcreteComponent.resolveIdentityConstraintDefinitionURI(java.lang.String), XSDConcreteComponent.resolveIdentityConstraintDefinition(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

createUnresolvedIdentityConstraintDefinition

protected XSDIdentityConstraintDefinition createUnresolvedIdentityConstraintDefinition(java.lang.String namespace,
                                                                                       java.lang.String localName)

resolveNotationDeclarationURI

public XSDNotationDeclaration resolveNotationDeclarationURI(java.lang.String uri)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveNotationDeclarationURI in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
uri - the URI to resolve.
Returns:
the resolved notation declaration.
See Also:
XSDConcreteComponent.resolveNotationDeclaration(java.lang.String, java.lang.String), XSDConcreteComponent.resolveNotationDeclaration(java.lang.String), XSDNamedComponent.getURI()

resolveNotationDeclaration

public XSDNotationDeclaration resolveNotationDeclaration(java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveNotationDeclaration in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
localName - the name to resolve.
Returns:
the resolved notation declaration
See Also:
XSDConcreteComponent.getSchema(), XSDSchema.getTargetNamespace(), XSDConcreteComponent.resolveNotationDeclarationURI(java.lang.String), XSDConcreteComponent.resolveNotationDeclaration(java.lang.String, java.lang.String), XSDNamedComponent.getName()

resolveNotationDeclaration

public XSDNotationDeclaration resolveNotationDeclaration(java.lang.String namespace,
                                                         java.lang.String localName)
Description copied from interface: XSDConcreteComponent
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.
Specified by:
resolveNotationDeclaration in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
namespace - the namespace to resolve.
localName - the name to resolve.
Returns:
the resolved notation declaration.
See Also:
XSDConcreteComponent.resolveNotationDeclarationURI(java.lang.String), XSDConcreteComponent.resolveNotationDeclaration(java.lang.String), XSDNamedComponent.getTargetNamespace(), XSDNamedComponent.getName()

createUnresolvedNotationDeclaration

protected XSDNotationDeclaration createUnresolvedNotationDeclaration(java.lang.String namespace,
                                                                     java.lang.String localName)

getComponentsWithApplicationInformation

public java.util.Collection getComponentsWithApplicationInformation(java.lang.String sourceURI)
Description copied from interface: XSDConcreteComponent
Returns the collection of components that have an annotation containing an appinfo with given source URI.
Specified by:
getComponentsWithApplicationInformation in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
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)
Description copied from interface: XSDConcreteComponent
Returns the collection of components that have an annotation containing a documentation with given source URI.
Specified by:
getComponentsWithUserInformation in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
sourceURI - the source URI to match.
Returns:
the collection of matching components.
See Also:
XSDAnnotation.getApplicationInformationSources()

getComponentsWithInformation

protected void getComponentsWithInformation(java.util.Collection result,
                                            int nodeType,
                                            java.lang.String sourceURI)

getElement

public Element getElement()
Specified by:
getElement in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
the value of the 'Element' attribute.
See Also:
XSDConcreteComponent.isSetElement(), XSDConcreteComponent.unsetElement(), XSDConcreteComponent.setElement(org.w3c.dom.Element), XSDPackage.getXSDConcreteComponent_Element()

unsetElementGen

public void unsetElementGen()

unsetElement

public void unsetElement()
Description copied from interface: XSDConcreteComponent
Unsets the value of the 'Element' attribute.
Specified by:
unsetElement in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.isSetElement(), XSDConcreteComponent.getElement(), XSDConcreteComponent.setElement(org.w3c.dom.Element)

isSetElement

public boolean isSetElement()
Specified by:
isSetElement in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Returns:
whether the value of the 'Element' attribute is set.
See Also:
XSDConcreteComponent.unsetElement(), XSDConcreteComponent.getElement(), XSDConcreteComponent.setElement(org.w3c.dom.Element)

setElementGen

public void setElementGen(Element value)

setElement

public void setElement(Element element)
Description copied from interface: XSDConcreteComponent
Sets the value of the 'Element' attribute.
Specified by:
setElement in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
value - the new value of the 'Element' attribute.
See Also:
XSDConcreteComponent.isSetElement(), XSDConcreteComponent.unsetElement(), XSDConcreteComponent.getElement()

cloneConcreteComponent

public XSDConcreteComponent cloneConcreteComponent(boolean deep,
                                                   boolean shareDOM)
Description copied from interface: XSDConcreteComponent
Creates a clone of the component. The clone may be deep and may share the DOM of this component.
Specified by:
cloneConcreteComponent in interface XSDConcreteComponent
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
Parameters:
deep - whether the clone should be deep.
shareDOM - whether the clone should share the original DOM
Returns:
a clone of the component.

cloneConcreteComponents

protected static java.util.List cloneConcreteComponents(java.util.List xsdConcreteComponents,
                                                        boolean deep,
                                                        boolean shareDOM)