org.eclipse.xsd.impl
Class XSDAnnotationImpl

java.lang.Object
  |
  +--org.eclipse.emf.common.notify.impl.NotifierImpl
        |
        +--org.eclipse.emf.ecore.impl.EObjectImpl
              |
              +--org.eclipse.xsd.impl.XSDConcreteComponentImpl
                    |
                    +--org.eclipse.xsd.impl.XSDComponentImpl
                          |
                          +--org.eclipse.xsd.impl.XSDAnnotationImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.common.notify.Notifier, XSDAnnotation, XSDComponent, XSDConcreteComponent, XSDRedefineContent, XSDSchemaContent

public class XSDAnnotationImpl
extends XSDComponentImpl
implements XSDAnnotation

An implementation of the model object 'Annotation'.

The following features are implemented:


Inner classes inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl
XSDConcreteComponentImpl.XSDContentsEList
 
Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.EObjectImpl.EPropertiesHolderImpl
 
Field Summary
protected  org.eclipse.emf.common.util.EList applicationInformation
          The cached value of the 'Application Information' attribute list.
protected  org.eclipse.emf.common.util.EList attributes
          The cached value of the 'Attributes' attribute list.
protected  org.eclipse.emf.common.util.EList userInformation
          The cached value of the 'User Information' attribute list.
 
Fields inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ELEMENT_EDEFAULT, ERROR, FATAL, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eContainer, eContainerFeatureID, ELAST_EOBJECT_FLAG, eProperties
 
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected XSDAnnotationImpl()
           
 
Method Summary
 XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM)
          Creates a clone of the component.
static XSDAnnotation createAnnotation(org.w3c.dom.Node node)
           
 org.w3c.dom.Element createApplicationInformation(java.lang.String sourceURI)
          Creates a new appinfo element using the containing schema's document as the factory.
 org.w3c.dom.Element createElement()
           
 org.w3c.dom.Element createUserInformation(java.lang.String sourceURI)
          This creates a new documentation element using the containing schema's document as the factory.
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
          
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
          
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
          
 void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, java.lang.Object newValue)
          
protected  org.eclipse.emf.ecore.EClass eStaticClass()
          
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
          
 org.eclipse.emf.common.util.EList getApplicationInformation()
          
 org.eclipse.emf.common.util.EList getApplicationInformation(java.lang.String sourceURI)
          Returns only those elements returned by getApplicationInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.
 java.util.Set getApplicationInformationSources()
          Returns the set of source attribute values of all the appinfo elements.
 org.eclipse.emf.common.util.EList getAttributes()
          
protected  void getComponentsWithInformation(java.util.Collection result, int nodeType, java.lang.String sourceURI)
           
 org.eclipse.emf.common.util.EList getUserInformation()
          
 org.eclipse.emf.common.util.EList getUserInformation(java.lang.String sourceURI)
          Returns only those elements returned by getUserInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.
 java.util.Set getUserInformationSources()
          Returns the set of source attribute values of all the documentation elements.
protected  void reconcileAttributes(org.w3c.dom.Element changedElement)
           
protected  void reconcileContents(org.w3c.dom.Element changedElement)
           
 java.lang.String toString()
          
 void validate()
          Validates whether this component conforms to the constraints defined in the XML Schema standard.
 
Methods inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl
adoptBy, adoptContent, adoptDiagnostic, analyze, changeAttribute, changeReference, checkAttributes, checkAttributeTypeConstraint, checkAttributeTypeConstraint, checkBuiltInTypeConstraint, checkComplexContent, checkComplexContent, checkElementComplexContent, checkSimpleTypeConstraint, clearDiagnostics, cloneConcreteComponents, considerAllContainsForBestConcreteComponent, contains, createDiagnostic, createDiagnostic, createDiagnostic, createDiagnostic, createElement, createRequiredAttributeDiagnostic, createUnresolvedAttributeDeclaration, createUnresolvedAttributeGroupDefinition, createUnresolvedComplexTypeDefinition, createUnresolvedElementDeclaration, createUnresolvedIdentityConstraintDefinition, createUnresolvedModelGroupDefinition, createUnresolvedNotationDeclaration, createUnresolvedSimpleTypeDefinition, createUnresolvedTypeDefinition, elementAttributesChanged, elementChanged, elementContentsChanged, eNotificationRequired, eNotify, eObjectForURIFragmentSegment, eURIFragmentSegment, forceEngulf, forceEngulf, forceNiceInsertBefore, forceNiceRemoveChild, forceReplace, getAdoptionParentNode, getBestConcreteComponent, getComponentsWithApplicationInformation, getComponentsWithUserInformation, getContainer, getContentNodes, getDiagnostics, getDiagnosticTarget, getElement, getRootContainer, getSchema, getURIReferenceLabel, getXSDContents, getXSDFactory, getXSDPackage, handleAnnotationReconciliation, handleElementForAdopt, handleReconciliation, handleUnreconciledElement, isUpdatingDOM, moveContent, niceCreateNamespaceAttribute, niceInsertBefore, niceRemoveChild, niceSetAttribute, niceSetAttributeURIValue, orphanBy, orphanContent, orphanDiagnostic, patch, printDFA, reconcile, reportConstraintViolation, resolveAttributeDeclaration, resolveAttributeDeclaration, resolveAttributeDeclarationURI, resolveAttributeGroupDefinition, resolveAttributeGroupDefinition, resolveAttributeGroupDefinitionURI, resolveComplexTypeDefinition, resolveComplexTypeDefinition, resolveComplexTypeDefinitionURI, resolveElementDeclaration, resolveElementDeclaration, resolveElementDeclarationURI, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinitionURI, resolveModelGroupDefinition, resolveModelGroupDefinition, resolveModelGroupDefinitionURI, resolveNotationDeclaration, resolveNotationDeclaration, resolveNotationDeclarationURI, resolveSimpleTypeDefinition, resolveSimpleTypeDefinition, resolveSimpleTypeDefinitionURI, resolveTypeDefinition, resolveTypeDefinition, resolveTypeDefinitionURI, setElement, setElementGen, setListContentAndOrder, traverseToRootForAnalysis, traverseToRootForPatching, updateElement, updateElement, updatePrefix
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eInverseAdd, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eDeliver, eSetDeliver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.xsd.XSDConcreteComponent
clearDiagnostics, contains, elementAttributesChanged, elementChanged, elementContentsChanged, getComponentsWithApplicationInformation, getComponentsWithUserInformation, getContainer, getDiagnostics, getElement, getRootContainer, getSchema, resolveAttributeDeclaration, resolveAttributeDeclaration, resolveAttributeDeclarationURI, resolveAttributeGroupDefinition, resolveAttributeGroupDefinition, resolveAttributeGroupDefinitionURI, resolveComplexTypeDefinition, resolveComplexTypeDefinition, resolveComplexTypeDefinitionURI, resolveElementDeclaration, resolveElementDeclaration, resolveElementDeclarationURI, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinitionURI, resolveModelGroupDefinition, resolveModelGroupDefinition, resolveModelGroupDefinitionURI, resolveNotationDeclaration, resolveNotationDeclaration, resolveNotationDeclarationURI, resolveSimpleTypeDefinition, resolveSimpleTypeDefinition, resolveSimpleTypeDefinitionURI, resolveTypeDefinition, resolveTypeDefinition, resolveTypeDefinitionURI, setElement, updateElement, updateElement
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

applicationInformation

protected org.eclipse.emf.common.util.EList applicationInformation
The cached value of the 'Application Information' attribute list.
See Also:
getApplicationInformation()

userInformation

protected org.eclipse.emf.common.util.EList userInformation
The cached value of the 'User Information' attribute list.
See Also:
getUserInformation()

attributes

protected org.eclipse.emf.common.util.EList attributes
The cached value of the 'Attributes' attribute list.
See Also:
getAttributes()
Constructor Detail

XSDAnnotationImpl

protected XSDAnnotationImpl()
Method Detail

createAnnotation

public static XSDAnnotation createAnnotation(org.w3c.dom.Node node)

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()
Overrides:
eStaticClass in class XSDComponentImpl

getApplicationInformation

public org.eclipse.emf.common.util.EList getApplicationInformation()
Specified by:
getApplicationInformation in interface XSDAnnotation
Following copied from interface: org.eclipse.xsd.XSDAnnotation
Returns:
the value of the 'Application Information' attribute list.
See Also:
XSDPackage.getXSDAnnotation_ApplicationInformation()

getUserInformation

public org.eclipse.emf.common.util.EList getUserInformation()
Specified by:
getUserInformation in interface XSDAnnotation
Following copied from interface: org.eclipse.xsd.XSDAnnotation
Returns:
the value of the 'User Information' attribute list.
See Also:
XSDPackage.getXSDAnnotation_UserInformation()

getAttributes

public org.eclipse.emf.common.util.EList getAttributes()
Specified by:
getAttributes in interface XSDAnnotation
Following copied from interface: org.eclipse.xsd.XSDAnnotation
Returns:
the value of the 'Attributes' attribute list.
See Also:
XSDPackage.getXSDAnnotation_Attributes()

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      java.lang.Class baseClass,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)
Overrides:
eInverseRemove in class XSDComponentImpl

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                             boolean resolve)
Specified by:
eGet in interface org.eclipse.emf.ecore.EObject
Overrides:
eGet in class XSDComponentImpl

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                 java.lang.Object newValue)
Specified by:
eSet in interface org.eclipse.emf.ecore.EObject
Overrides:
eSet in class XSDComponentImpl

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
Specified by:
eUnset in interface org.eclipse.emf.ecore.EObject
Overrides:
eUnset in class XSDComponentImpl

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject
Overrides:
eIsSet in class XSDComponentImpl

toString

public java.lang.String toString()
Overrides:
toString in class XSDConcreteComponentImpl

createElement

public org.w3c.dom.Element createElement()
Overrides:
createElement in class XSDConcreteComponentImpl

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
Overrides:
validate in class XSDConcreteComponentImpl
Following copied from interface: org.eclipse.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.getDiagnostics(), XSDConcreteComponent.clearDiagnostics()

reconcileAttributes

protected void reconcileAttributes(org.w3c.dom.Element changedElement)
Overrides:
reconcileAttributes in class XSDConcreteComponentImpl

reconcileContents

protected void reconcileContents(org.w3c.dom.Element changedElement)
Overrides:
reconcileContents in class XSDConcreteComponentImpl

createApplicationInformation

public org.w3c.dom.Element createApplicationInformation(java.lang.String sourceURI)
Description copied from interface: XSDAnnotation
Creates a new appinfo element using the containing schema's document as the factory. The caller is responsible for adding the appinfo element to annotation element.
Specified by:
createApplicationInformation in interface XSDAnnotation
Following copied from interface: org.eclipse.xsd.XSDAnnotation
Parameters:
sourceURI - the initial value of the source attribute.
Returns:
a new appinfo element.

createUserInformation

public org.w3c.dom.Element createUserInformation(java.lang.String sourceURI)
Description copied from interface: XSDAnnotation
This creates a new documentation element using the containing schema's document as the factory. The caller is responsible for adding the documentation element to annotation element.
Specified by:
createUserInformation in interface XSDAnnotation
Following copied from interface: org.eclipse.xsd.XSDAnnotation
Parameters:
sourceURI - the initial value of the source attribute.
Returns:
a new documentation element.

getApplicationInformation

public org.eclipse.emf.common.util.EList getApplicationInformation(java.lang.String sourceURI)
Description copied from interface: XSDAnnotation
Returns only those elements returned by XSDAnnotation.getApplicationInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.
Specified by:
getApplicationInformation in interface XSDAnnotation
Following copied from interface: org.eclipse.xsd.XSDAnnotation
Parameters:
sourceURI - the source URI to match.
Returns:
the elements with the given sourceURI.

getUserInformation

public org.eclipse.emf.common.util.EList getUserInformation(java.lang.String sourceURI)
Description copied from interface: XSDAnnotation
Returns only those elements returned by XSDAnnotation.getUserInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.
Specified by:
getUserInformation in interface XSDAnnotation
Following copied from interface: org.eclipse.xsd.XSDAnnotation
Parameters:
sourceURI - the source URI to match.
Returns:
the elements with the given sourceURI.

getApplicationInformationSources

public java.util.Set getApplicationInformationSources()
Description copied from interface: XSDAnnotation
Returns the set of source attribute values of all the appinfo elements.
Specified by:
getApplicationInformationSources in interface XSDAnnotation
Following copied from interface: org.eclipse.xsd.XSDAnnotation
Returns:
the set of source attribute values of all the appinfo elements.

getUserInformationSources

public java.util.Set getUserInformationSources()
Description copied from interface: XSDAnnotation
Returns the set of source attribute values of all the documentation elements.
Specified by:
getUserInformationSources in interface XSDAnnotation
Following copied from interface: org.eclipse.xsd.XSDAnnotation
Returns:
the set of source attribute values of all the documentation elements.

getComponentsWithInformation

protected void getComponentsWithInformation(java.util.Collection result,
                                            int nodeType,
                                            java.lang.String sourceURI)
Overrides:
getComponentsWithInformation in class XSDConcreteComponentImpl

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
Overrides:
cloneConcreteComponent in class XSDConcreteComponentImpl
Following copied from interface: org.eclipse.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.

Copyright 2001-2003 IBM Corporation and others.
All Rights Reserved.