org.eclipse.xsd.impl
Class XSDAnnotationImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.xsd.impl.XSDConcreteComponentImpl
                  extended byorg.eclipse.xsd.impl.XSDComponentImpl
                      extended byorg.eclipse.xsd.impl.XSDAnnotationImpl
All Implemented Interfaces:
EObject, InternalEObject, 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:


Nested Class Summary
 
Nested classes inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl
XSDConcreteComponentImpl.XSDContentsEList
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  EList applicationInformation
          The cached value of the 'Application Information' attribute list
protected  EList attributes
          The cached value of the 'Attributes' attribute list
protected  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, forceResolve, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
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(Node node)
           
 Element createApplicationInformation(String sourceURI)
          Creates a new appinfo element using the containing schema's document as the factory.
 Element createElement()
           
 Element createUserInformation(String sourceURI)
          This creates a new documentation element using the containing schema's document as the factory.
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 EList getApplicationInformation()
           
 EList getApplicationInformation(String sourceURI)
          Returns only those elements returned by getApplicationInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.
 Set getApplicationInformationSources()
          Returns the set of source attribute values of all the appinfo elements.
 EList getAttributes()
           
protected  void getComponentsWithInformation(Collection result, int nodeType, String sourceURI)
           
 EList getUserInformation()
           
 EList getUserInformation(String sourceURI)
          Returns only those elements returned by getUserInformation() with the given sourceURI; a null sourceURI matches elements without a source attribute.
 Set getUserInformationSources()
          Returns the set of source attribute values of all the documentation elements.
protected  void reconcileAttributes(Element changedElement)
           
protected  void reconcileContents(Element changedElement)
           
 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, eInverseRemove, 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, populateDiagnostic, printDFA, reconcile, reportConstraintViolation, reset, 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
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
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, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

applicationInformation

protected EList applicationInformation
The cached value of the 'Application Information' attribute list.

See Also:
getApplicationInformation()

userInformation

protected EList userInformation
The cached value of the 'User Information' attribute list.

See Also:
getUserInformation()

attributes

protected 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(Node node)

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class XSDComponentImpl

getApplicationInformation

public EList getApplicationInformation()

Specified by:
getApplicationInformation in interface XSDAnnotation
Returns:
the value of the 'Application Information' attribute list.
See Also:
XSDPackage.getXSDAnnotation_ApplicationInformation()

getUserInformation

public EList getUserInformation()

Specified by:
getUserInformation in interface XSDAnnotation
Returns:
the value of the 'User Information' attribute list.
See Also:
XSDPackage.getXSDAnnotation_UserInformation()

getAttributes

public EList getAttributes()

Specified by:
getAttributes in interface XSDAnnotation
Returns:
the value of the 'Attributes' attribute list.
See Also:
XSDPackage.getXSDAnnotation_Attributes()

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class XSDConcreteComponentImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class XSDConcreteComponentImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class XSDConcreteComponentImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class XSDConcreteComponentImpl

toString

public String toString()

Overrides:
toString in class XSDConcreteComponentImpl

createElement

public 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. The effect of calling this for a component not directly or indirectly contained by a schema is undefined, and is likely to result in null pointer exceptions.

Specified by:
validate in interface XSDConcreteComponent
Overrides:
validate in class XSDConcreteComponentImpl

reconcileAttributes

protected void reconcileAttributes(Element changedElement)
Overrides:
reconcileAttributes in class XSDConcreteComponentImpl

reconcileContents

protected void reconcileContents(Element changedElement)
Overrides:
reconcileContents in class XSDConcreteComponentImpl

createApplicationInformation

public Element createApplicationInformation(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
Parameters:
sourceURI - the initial value of the source attribute.
Returns:
a new appinfo element.

createUserInformation

public Element createUserInformation(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
Parameters:
sourceURI - the initial value of the source attribute.
Returns:
a new documentation element.

getApplicationInformation

public EList getApplicationInformation(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
Parameters:
sourceURI - the source URI to match.
Returns:
the elements with the given sourceURI.

getUserInformation

public EList getUserInformation(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
Parameters:
sourceURI - the source URI to match.
Returns:
the elements with the given sourceURI.

getApplicationInformationSources

public 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
Returns:
the set of source attribute values of all the appinfo elements.

getUserInformationSources

public 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
Returns:
the set of source attribute values of all the documentation elements.

getComponentsWithInformation

protected void getComponentsWithInformation(Collection result,
                                            int nodeType,
                                            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

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