org.eclipse.xsd.impl
Class XSDElementDeclarationImpl

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.XSDNamedComponentImpl
                                |
                                +--org.eclipse.xsd.impl.XSDFeatureImpl
                                      |
                                      +--org.eclipse.xsd.impl.XSDElementDeclarationImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.common.notify.Notifier, XSDComponent, XSDConcreteComponent, XSDElementDeclaration, XSDFeature, XSDNamedComponent, XSDParticleContent, XSDSchemaContent, XSDTerm

public class XSDElementDeclarationImpl
extends XSDFeatureImpl
implements XSDElementDeclaration

An implementation of the model object 'Element Declaration'.

The following features are implemented:


Inner classes inherited from class org.eclipse.xsd.impl.XSDNamedComponentImpl
XSDNamedComponentImpl.Comparator, XSDNamedComponentImpl.StringPairComparator
 
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
 
Field Summary
protected  boolean abstract_
          The cached value of the 'Abstract' attribute.
protected static boolean ABSTRACT_EDEFAULT
          The default value of the 'Abstract' attribute.
protected  boolean abstractESet
          This is true if the Abstract attribute has been set.
protected  int analysisState
           
protected  XSDAnnotation annotation
          The cached value of the 'Annotation' containment reference.
protected  XSDTypeDefinition anonymousTypeDefinition
          The cached value of the 'Anonymous Type Definition' containment reference.
protected  org.eclipse.emf.common.util.EList block
          The cached value of the 'Block' attribute list.
protected  org.eclipse.emf.common.util.EList disallowedSubstitutions
          The cached value of the 'Disallowed Substitutions' attribute list.
protected  org.eclipse.emf.common.util.EList identityConstraintDefinitions
          The cached value of the 'Identity Constraint Definitions' containment reference list.
protected  boolean isTypeExplicit
           
protected  org.eclipse.emf.common.util.EList lexicalFinal
          The cached value of the 'Lexical Final' attribute list.
protected  boolean nillable
          The cached value of the 'Nillable' attribute.
protected static boolean NILLABLE_EDEFAULT
          The default value of the 'Nillable' attribute.
protected  boolean nillableESet
          This is true if the Nillable attribute has been set.
protected  XSDElementDeclaration resolvedElementDeclaration
          The cached value of the 'Resolved Element Declaration' reference.
protected  org.eclipse.emf.common.util.EList substitutionGroup
          The cached value of the 'Substitution Group' reference list.
protected  XSDElementDeclaration substitutionGroupAffiliation
          The cached value of the 'Substitution Group Affiliation' reference.
protected  org.eclipse.emf.common.util.EList substitutionGroupExclusions
          The cached value of the 'Substitution Group Exclusions' attribute list.
protected  XSDTypeDefinition typeDefinition
          The cached value of the 'Type Definition' reference.
 
Fields inherited from class org.eclipse.xsd.impl.XSDFeatureImpl
constraint, CONSTRAINT_EDEFAULT, constraintESet, form, FORM_EDEFAULT, formESet, LEXICAL_VALUE_EDEFAULT, lexicalValue, value, VALUE_EDEFAULT
 
Fields inherited from class org.eclipse.xsd.impl.XSDNamedComponentImpl
name, NAME_EDEFAULT, TARGET_NAMESPACE_EDEFAULT, targetNamespace
 
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 XSDElementDeclarationImpl()
           
 
Method Summary
protected  void adoptContent(org.eclipse.emf.ecore.EReference eReference, XSDConcreteComponent xsdConcreteComponent)
           
protected  boolean analyze()
           
 org.eclipse.emf.common.notify.NotificationChain basicSetAnnotation(XSDAnnotation newAnnotation, org.eclipse.emf.common.notify.NotificationChain msgs)
          
 org.eclipse.emf.common.notify.NotificationChain basicSetAnonymousTypeDefinition(XSDTypeDefinition newAnonymousTypeDefinition, org.eclipse.emf.common.notify.NotificationChain msgs)
          
protected  void changeAttribute(org.eclipse.emf.ecore.EAttribute eAttribute)
           
protected  void changeReference(org.eclipse.emf.ecore.EReference eReference)
           
 XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM)
          Creates a clone of the component.
 org.w3c.dom.Element createElement()
           
static XSDElementDeclaration createElementDeclaration(org.w3c.dom.Node node)
           
 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 eNotify(org.eclipse.emf.common.notify.Notification msg)
           
 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)
          
 XSDAnnotation getAnnotation()
          
 XSDTypeDefinition getAnonymousTypeDefinition()
          
 org.eclipse.emf.common.util.EList getBlock()
          
 java.lang.Boolean getCircular()
          
 org.eclipse.emf.common.util.EList getDisallowedSubstitutions()
          
 java.lang.Boolean getElementDeclarationReference()
          
 org.eclipse.emf.common.util.EList getIdentityConstraintDefinitions()
          
 org.eclipse.emf.common.util.EList getLexicalFinal()
          
 java.lang.String getQName()
          Returns the value of the 'QName' attribute.
 XSDElementDeclaration getResolvedElementDeclaration()
          
 XSDFeature getResolvedFeature()
          Returns the value of the 'Resolved Feature' reference.
 XSDNamedComponent getResolvedNamedComponent()
           
 java.lang.String getStringBlock()
          Returns the String value of the 'Block' attribute list.
 java.lang.String getStringDisallowedSubstitutions()
          Returns the String value of the 'Disallowed Substitutions' attribute list.
 java.lang.String getStringLexicalFinal()
          Returns the String value of the 'Lexical Final' attribute list.
 java.lang.String getStringSubstitutionGroupExclusions()
          Returns the value of the 'Substitution Group Exclusions' attribute list.
 org.eclipse.emf.common.util.EList getSubstitutionGroup()
          
 XSDElementDeclaration getSubstitutionGroupAffiliation()
          
 org.eclipse.emf.common.util.EList getSubstitutionGroupExclusions()
          
 XSDTypeDefinition getType()
          Returns the value of the 'Type' reference.
 XSDTypeDefinition getTypeDefinition()
          
protected  void handleAnalysis()
           
protected  void handleReconciliation(java.util.List newContents, java.util.List remainingContents)
           
protected  void handleUnreconciledElement(org.w3c.dom.Element child, java.util.List newContents, java.util.List remainingContents)
           
 boolean isAbstract()
          
 boolean isCircular()
          Returns the value of the 'Circular' attribute.
 boolean isElementDeclarationReference()
          Returns the value of the 'Element Declaration Reference' attribute.
 boolean isFeatureReference()
          Returns the value of the 'Feature Reference' attribute.
 boolean isNamedComponentReference()
           
 boolean isNillable()
          
 boolean isSetAbstract()
          
 boolean isSetBlock()
          
 boolean isSetLexicalFinal()
          
 boolean isSetNillable()
          
protected  void orphanContent(org.eclipse.emf.ecore.EReference eReference, XSDConcreteComponent xsdConcreteComponent)
           
protected  void patch()
           
protected  void patchTargetNamespaceAttribute()
           
protected  void reconcileAttributes(org.w3c.dom.Element changedElement)
           
protected  void reconcileContents(org.w3c.dom.Element changedElement)
           
protected  void reconcileNameAttribute()
           
 void setAbstract(boolean newAbstract)
          
 void setAnnotation(XSDAnnotation newAnnotation)
          
 void setAnonymousTypeDefinition(XSDTypeDefinition newAnonymousTypeDefinition)
          
 void setNillable(boolean newNillable)
          
 void setResolvedElementDeclaration(XSDElementDeclaration newResolvedElementDeclaration)
          
 void setStringBlock(java.lang.String block)
          Set the String value of the 'Block' attribute list.
 void setStringLexicalFinal(java.lang.String finalDefault)
          Sets the String value of the 'Lexical Final' attribute list.
 void setSubstitutionGroupAffiliation(XSDElementDeclaration newSubstitutionGroupAffiliation)
          
 void setTypeDefinition(XSDTypeDefinition newTypeDefinition)
          
 java.lang.String toString()
          
 void unsetAbstract()
          
 void unsetBlock()
          
 void unsetLexicalFinal()
          
 void unsetNillable()
          
 void validate()
          Validates whether this component conforms to the constraints defined in the XML Schema standard.
 
Methods inherited from class org.eclipse.xsd.impl.XSDFeatureImpl
getConstraint, getFeatureReference, getForm, getGlobal, getLexicalValue, getScope, getValue, isGlobal, isSetConstraint, isSetForm, isUpdatingDOM, setConstraint, setForm, setLexicalValue, setValue, unsetConstraint, unsetForm
 
Methods inherited from class org.eclipse.xsd.impl.XSDNamedComponentImpl
addToSortedList, adoptBy, findInSortedList, getAliasName, getAliasURI, getName, getQName, getTargetNamespace, getURI, getURIReferenceLabel, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, hasURI, mergeToSortedList, setName, setTargetNamespace, sortNamedComponents
 
Methods inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl
adoptDiagnostic, 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, eObjectForURIFragmentSegment, eURIFragmentSegment, forceEngulf, forceEngulf, forceNiceInsertBefore, forceNiceRemoveChild, forceReplace, getAdoptionParentNode, getBestConcreteComponent, getComponentsWithApplicationInformation, getComponentsWithInformation, getComponentsWithUserInformation, getContainer, getContentNodes, getDiagnostics, getDiagnosticTarget, getElement, getRootContainer, getSchema, getXSDContents, getXSDFactory, getXSDPackage, handleAnnotationReconciliation, handleElementForAdopt, moveContent, niceCreateNamespaceAttribute, niceInsertBefore, niceRemoveChild, niceSetAttribute, niceSetAttributeURIValue, orphanBy, orphanDiagnostic, 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, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eInternalResource, eInverseAdd, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingIndex, eSettings
 
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.XSDFeature
getConstraint, getForm, getLexicalValue, getScope, getValue, isGlobal, isSetConstraint, isSetForm, setConstraint, setForm, setLexicalValue, setValue, unsetConstraint, unsetForm
 
Methods inherited from interface org.eclipse.xsd.XSDNamedComponent
getAliasName, getAliasURI, getName, getQName, getTargetNamespace, getURI, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, hasURI, setName, setTargetNamespace
 
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, eSetDeliver
 

Field Detail

NILLABLE_EDEFAULT

protected static final boolean NILLABLE_EDEFAULT
The default value of the 'Nillable' attribute.
See Also:
isNillable()

nillable

protected boolean nillable
The cached value of the 'Nillable' attribute.
See Also:
isNillable()

nillableESet

protected boolean nillableESet
This is true if the Nillable attribute has been set.

disallowedSubstitutions

protected org.eclipse.emf.common.util.EList disallowedSubstitutions
The cached value of the 'Disallowed Substitutions' attribute list.
See Also:
getDisallowedSubstitutions()

substitutionGroupExclusions

protected org.eclipse.emf.common.util.EList substitutionGroupExclusions
The cached value of the 'Substitution Group Exclusions' attribute list.
See Also:
getSubstitutionGroupExclusions()

ABSTRACT_EDEFAULT

protected static final boolean ABSTRACT_EDEFAULT
The default value of the 'Abstract' attribute.
See Also:
isAbstract()

abstract_

protected boolean abstract_
The cached value of the 'Abstract' attribute.
See Also:
isAbstract()

abstractESet

protected boolean abstractESet
This is true if the Abstract attribute has been set.

lexicalFinal

protected org.eclipse.emf.common.util.EList lexicalFinal
The cached value of the 'Lexical Final' attribute list.
See Also:
getLexicalFinal()

block

protected org.eclipse.emf.common.util.EList block
The cached value of the 'Block' attribute list.
See Also:
getBlock()

annotation

protected XSDAnnotation annotation
The cached value of the 'Annotation' containment reference.
See Also:
getAnnotation()

anonymousTypeDefinition

protected XSDTypeDefinition anonymousTypeDefinition
The cached value of the 'Anonymous Type Definition' containment reference.
See Also:
getAnonymousTypeDefinition()

typeDefinition

protected XSDTypeDefinition typeDefinition
The cached value of the 'Type Definition' reference.
See Also:
getTypeDefinition()

identityConstraintDefinitions

protected org.eclipse.emf.common.util.EList identityConstraintDefinitions
The cached value of the 'Identity Constraint Definitions' containment reference list.
See Also:
getIdentityConstraintDefinitions()

resolvedElementDeclaration

protected XSDElementDeclaration resolvedElementDeclaration
The cached value of the 'Resolved Element Declaration' reference.
See Also:
getResolvedElementDeclaration()

substitutionGroupAffiliation

protected XSDElementDeclaration substitutionGroupAffiliation
The cached value of the 'Substitution Group Affiliation' reference.
See Also:
getSubstitutionGroupAffiliation()

substitutionGroup

protected org.eclipse.emf.common.util.EList substitutionGroup
The cached value of the 'Substitution Group' reference list.
See Also:
getSubstitutionGroup()

analysisState

protected int analysisState

isTypeExplicit

protected boolean isTypeExplicit
Constructor Detail

XSDElementDeclarationImpl

protected XSDElementDeclarationImpl()
Method Detail

createElementDeclaration

public static XSDElementDeclaration createElementDeclaration(org.w3c.dom.Node node)

eStaticClass

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

isNillable

public boolean isNillable()
Specified by:
isNillable in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Nillable' attribute.
See Also:
XSDElementDeclaration.isSetNillable(), XSDElementDeclaration.unsetNillable(), XSDElementDeclaration.setNillable(boolean), XSDPackage.getXSDElementDeclaration_Nillable()

setNillable

public void setNillable(boolean newNillable)
Specified by:
setNillable in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Parameters:
value - the new value of the 'Nillable' attribute.
See Also:
XSDElementDeclaration.isSetNillable(), XSDElementDeclaration.unsetNillable(), XSDElementDeclaration.isNillable()

unsetNillable

public void unsetNillable()
Specified by:
unsetNillable in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
See Also:
XSDElementDeclaration.isSetNillable(), XSDElementDeclaration.isNillable(), XSDElementDeclaration.setNillable(boolean)

isSetNillable

public boolean isSetNillable()
Specified by:
isSetNillable in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
whether the value of the 'Nillable' attribute is set.
See Also:
XSDElementDeclaration.unsetNillable(), XSDElementDeclaration.isNillable(), XSDElementDeclaration.setNillable(boolean)

getDisallowedSubstitutions

public org.eclipse.emf.common.util.EList getDisallowedSubstitutions()
Specified by:
getDisallowedSubstitutions in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Disallowed Substitutions' attribute list.
See Also:
XSDElementDeclaration.getStringDisallowedSubstitutions(), XSDDisallowedSubstitutions, XSDPackage.getXSDElementDeclaration_DisallowedSubstitutions()

getSubstitutionGroupExclusions

public org.eclipse.emf.common.util.EList getSubstitutionGroupExclusions()
Specified by:
getSubstitutionGroupExclusions in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Substitution Group Exclusions' attribute list.
See Also:
XSDElementDeclaration.getStringSubstitutionGroupExclusions(), XSDSubstitutionGroupExclusions, XSDPackage.getXSDElementDeclaration_SubstitutionGroupExclusions()

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Abstract' attribute.
See Also:
XSDElementDeclaration.isSetAbstract(), XSDElementDeclaration.unsetAbstract(), XSDElementDeclaration.setAbstract(boolean), XSDPackage.getXSDElementDeclaration_Abstract()

setAbstract

public void setAbstract(boolean newAbstract)
Specified by:
setAbstract in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Parameters:
value - the new value of the 'Abstract' attribute.
See Also:
XSDElementDeclaration.isSetAbstract(), XSDElementDeclaration.unsetAbstract(), XSDElementDeclaration.isAbstract()

unsetAbstract

public void unsetAbstract()
Specified by:
unsetAbstract in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
See Also:
XSDElementDeclaration.isSetAbstract(), XSDElementDeclaration.isAbstract(), XSDElementDeclaration.setAbstract(boolean)

isSetAbstract

public boolean isSetAbstract()
Specified by:
isSetAbstract in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
whether the value of the 'Abstract' attribute is set.
See Also:
XSDElementDeclaration.unsetAbstract(), XSDElementDeclaration.isAbstract(), XSDElementDeclaration.setAbstract(boolean)

getLexicalFinal

public org.eclipse.emf.common.util.EList getLexicalFinal()
Specified by:
getLexicalFinal in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Lexical Final' attribute list.
See Also:
XSDElementDeclaration.getStringLexicalFinal(), XSDElementDeclaration.setStringLexicalFinal(java.lang.String), XSDProhibitedSubstitutions, XSDElementDeclaration.isSetLexicalFinal(), XSDElementDeclaration.unsetLexicalFinal(), XSDPackage.getXSDElementDeclaration_LexicalFinal()

unsetLexicalFinal

public void unsetLexicalFinal()
Specified by:
unsetLexicalFinal in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
See Also:
XSDElementDeclaration.isSetLexicalFinal(), XSDElementDeclaration.getLexicalFinal()

isSetLexicalFinal

public boolean isSetLexicalFinal()
Specified by:
isSetLexicalFinal in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
whether the value of the 'Lexical Final' attribute list is set.
See Also:
XSDElementDeclaration.unsetLexicalFinal(), XSDElementDeclaration.getLexicalFinal()

getBlock

public org.eclipse.emf.common.util.EList getBlock()
Specified by:
getBlock in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Block' attribute list.
See Also:
XSDElementDeclaration.getStringBlock(), XSDElementDeclaration.setStringBlock(java.lang.String), XSDDisallowedSubstitutions, XSDElementDeclaration.isSetBlock(), XSDElementDeclaration.unsetBlock(), XSDPackage.getXSDElementDeclaration_Block()

unsetBlock

public void unsetBlock()
Specified by:
unsetBlock in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
See Also:
XSDElementDeclaration.isSetBlock(), XSDElementDeclaration.getBlock()

isSetBlock

public boolean isSetBlock()
Specified by:
isSetBlock in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
whether the value of the 'Block' attribute list is set.
See Also:
XSDElementDeclaration.unsetBlock(), XSDElementDeclaration.getBlock()

getElementDeclarationReference

public java.lang.Boolean getElementDeclarationReference()

createElement

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

patch

protected void patch()
Overrides:
patch in class XSDNamedComponentImpl

analyze

protected boolean analyze()
Overrides:
analyze in class XSDFeatureImpl

handleAnalysis

protected void handleAnalysis()

patchTargetNamespaceAttribute

protected void patchTargetNamespaceAttribute()
Overrides:
patchTargetNamespaceAttribute in class XSDNamedComponentImpl

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 XSDFeatureImpl

reconcileNameAttribute

protected void reconcileNameAttribute()
Overrides:
reconcileNameAttribute in class XSDNamedComponentImpl

reconcileContents

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

handleUnreconciledElement

protected void handleUnreconciledElement(org.w3c.dom.Element child,
                                         java.util.List newContents,
                                         java.util.List remainingContents)
Overrides:
handleUnreconciledElement in class XSDConcreteComponentImpl

handleReconciliation

protected void handleReconciliation(java.util.List newContents,
                                    java.util.List remainingContents)
Overrides:
handleReconciliation in class XSDConcreteComponentImpl

changeAttribute

protected void changeAttribute(org.eclipse.emf.ecore.EAttribute eAttribute)
Overrides:
changeAttribute in class XSDFeatureImpl

eNotify

public void eNotify(org.eclipse.emf.common.notify.Notification msg)
Specified by:
eNotify in interface org.eclipse.emf.common.notify.Notifier
Overrides:
eNotify in class XSDConcreteComponentImpl

changeReference

protected void changeReference(org.eclipse.emf.ecore.EReference eReference)
Overrides:
changeReference in class XSDConcreteComponentImpl

adoptContent

protected void adoptContent(org.eclipse.emf.ecore.EReference eReference,
                            XSDConcreteComponent xsdConcreteComponent)
Overrides:
adoptContent in class XSDConcreteComponentImpl

orphanContent

protected void orphanContent(org.eclipse.emf.ecore.EReference eReference,
                             XSDConcreteComponent xsdConcreteComponent)
Overrides:
orphanContent in class XSDConcreteComponentImpl

isElementDeclarationReference

public boolean isElementDeclarationReference()
Description copied from interface: XSDElementDeclaration
Returns the value of the 'Element Declaration Reference' attribute.

This concrete attribute is equivalent to

  xsdElementDeclaration != xsdElementDeclaration.getResolvedElementDeclaration()
An infoset feature will never return an instance for which this is the true since this is a concrete attribute that is used to represent an element declaration with a ref attribute.

Specified by:
isElementDeclarationReference in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Element Declaration Reference' attribute.
See Also:
XSDPackage.getXSDElementDeclaration_ElementDeclarationReference()

getCircular

public java.lang.Boolean getCircular()

getQName

public java.lang.String getQName()
Description copied from interface: XSDNamedComponent
Returns the value of the 'QName' attribute.

This concrete attribute is equivalent to

  xsdNamedComponent.getQName(xsdNamedComponent)

Specified by:
getQName in interface XSDNamedComponent
Overrides:
getQName in class XSDNamedComponentImpl
Following copied from interface: org.eclipse.xsd.XSDNamedComponent
Returns:
the value of the 'QName' attribute.
See Also:
XSDNamedComponent.getQName(org.eclipse.xsd.XSDConcreteComponent), XSDPackage.getXSDNamedComponent_QName()

isNamedComponentReference

public boolean isNamedComponentReference()
Overrides:
isNamedComponentReference in class XSDNamedComponentImpl

getResolvedNamedComponent

public XSDNamedComponent getResolvedNamedComponent()
Overrides:
getResolvedNamedComponent in class XSDNamedComponentImpl

isFeatureReference

public boolean isFeatureReference()
Description copied from interface: XSDFeature
Returns the value of the 'Feature Reference' attribute.

This is the same result as either the 'Element Reference' attribute or the 'Attribute Reference' attribute.

Specified by:
isFeatureReference in interface XSDFeature
Overrides:
isFeatureReference in class XSDFeatureImpl
Following copied from interface: org.eclipse.xsd.XSDFeature
Returns:
the value of the 'Feature Reference' attribute.
See Also:
XSDPackage.getXSDFeature_FeatureReference()

getResolvedFeature

public XSDFeature getResolvedFeature()
Description copied from interface: XSDFeature
Returns the value of the 'Resolved Feature' reference.

This is the same result as either the 'Resolved Element Declaration' reference or the 'Resolved Attribute Declaration' reference.

Specified by:
getResolvedFeature in interface XSDFeature
Overrides:
getResolvedFeature in class XSDFeatureImpl
Following copied from interface: org.eclipse.xsd.XSDFeature
Returns:
the value of the 'Resolved Feature' reference.
See Also:
XSDPackage.getXSDFeature_ResolvedFeature()

getType

public XSDTypeDefinition getType()
Description copied from interface: XSDFeature
Returns the value of the 'Type' reference.

This is the same result as either the element 'Type Definition' reference or the attribute 'Type Definition' reference.

Specified by:
getType in interface XSDFeature
Overrides:
getType in class XSDFeatureImpl
Following copied from interface: org.eclipse.xsd.XSDFeature
Returns:
the value of the 'Type' reference.
See Also:
XSDPackage.getXSDFeature_Type()

getStringLexicalFinal

public java.lang.String getStringLexicalFinal()
Description copied from interface: XSDElementDeclaration
Returns the String value of the 'Lexical Final' attribute list.
Specified by:
getStringLexicalFinal in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the String value of the 'Lexical Final' attribute list.
See Also:
XSDElementDeclaration.getStringLexicalFinal(), XSDElementDeclaration.setStringLexicalFinal(java.lang.String)

setStringLexicalFinal

public void setStringLexicalFinal(java.lang.String finalDefault)
Description copied from interface: XSDElementDeclaration
Sets the String value of the 'Lexical Final' attribute list.
Specified by:
setStringLexicalFinal in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Parameters:
lexicalFinal - the new value of the 'Lexical Final' attribute list.
See Also:
XSDElementDeclaration.getLexicalFinal(), XSDElementDeclaration.getStringLexicalFinal()

getStringBlock

public java.lang.String getStringBlock()
Description copied from interface: XSDElementDeclaration
Returns the String value of the 'Block' attribute list.
Specified by:
getStringBlock in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Block' attribute list.
See Also:
XSDElementDeclaration.getBlock(), XSDElementDeclaration.setStringBlock(java.lang.String)

setStringBlock

public void setStringBlock(java.lang.String block)
Description copied from interface: XSDElementDeclaration
Set the String value of the 'Block' attribute list.
Specified by:
setStringBlock in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Parameters:
block - the new value of the 'Block' attribute list.
See Also:
XSDElementDeclaration.getBlock(), XSDElementDeclaration.getStringBlock()

getStringDisallowedSubstitutions

public java.lang.String getStringDisallowedSubstitutions()
Description copied from interface: XSDElementDeclaration
Returns the String value of the 'Disallowed Substitutions' attribute list.

Specified by:
getStringDisallowedSubstitutions in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the String value of the 'Disallowed Substitutions' attribute list.
See Also:
XSDElementDeclaration.getDisallowedSubstitutions()

getStringSubstitutionGroupExclusions

public java.lang.String getStringSubstitutionGroupExclusions()
Description copied from interface: XSDElementDeclaration
Returns the value of the 'Substitution Group Exclusions' attribute list.
Specified by:
getStringSubstitutionGroupExclusions in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Substitution Group Exclusions' attribute list.
See Also:
XSDElementDeclaration.getSubstitutionGroupExclusions(), XSDPackage.getXSDElementDeclaration_SubstitutionGroupExclusions()

isCircular

public boolean isCircular()
Description copied from interface: XSDElementDeclaration
Returns the value of the 'Circular' attribute.

This indicates that the element declaration is part of an invalid circular substitution group.

Specified by:
isCircular in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Circular' attribute.
See Also:
XSDPackage.getXSDElementDeclaration_Circular()

getAnnotation

public XSDAnnotation getAnnotation()
Specified by:
getAnnotation in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Annotation' containment reference.
See Also:
XSDElementDeclaration.setAnnotation(XSDAnnotation), XSDPackage.getXSDElementDeclaration_Annotation()

setAnnotation

public void setAnnotation(XSDAnnotation newAnnotation)
Specified by:
setAnnotation in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Parameters:
value - the new value of the 'Annotation' containment reference.
See Also:
XSDElementDeclaration.getAnnotation()

basicSetAnnotation

public org.eclipse.emf.common.notify.NotificationChain basicSetAnnotation(XSDAnnotation newAnnotation,
                                                                          org.eclipse.emf.common.notify.NotificationChain msgs)

getAnonymousTypeDefinition

public XSDTypeDefinition getAnonymousTypeDefinition()
Specified by:
getAnonymousTypeDefinition in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Anonymous Type Definition' containment reference.
See Also:
XSDElementDeclaration.setAnonymousTypeDefinition(XSDTypeDefinition), XSDPackage.getXSDElementDeclaration_AnonymousTypeDefinition()

setAnonymousTypeDefinition

public void setAnonymousTypeDefinition(XSDTypeDefinition newAnonymousTypeDefinition)
Specified by:
setAnonymousTypeDefinition in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Parameters:
value - the new value of the 'Anonymous Type Definition' containment reference.
See Also:
XSDElementDeclaration.getAnonymousTypeDefinition()

basicSetAnonymousTypeDefinition

public org.eclipse.emf.common.notify.NotificationChain basicSetAnonymousTypeDefinition(XSDTypeDefinition newAnonymousTypeDefinition,
                                                                                       org.eclipse.emf.common.notify.NotificationChain msgs)

getTypeDefinition

public XSDTypeDefinition getTypeDefinition()
Specified by:
getTypeDefinition in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Type Definition' reference.
See Also:
XSDElementDeclaration.setTypeDefinition(XSDTypeDefinition), XSDPackage.getXSDElementDeclaration_TypeDefinition()

setTypeDefinition

public void setTypeDefinition(XSDTypeDefinition newTypeDefinition)
Specified by:
setTypeDefinition in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Parameters:
value - the new value of the 'Type Definition' reference.
See Also:
XSDElementDeclaration.getTypeDefinition()

getIdentityConstraintDefinitions

public org.eclipse.emf.common.util.EList getIdentityConstraintDefinitions()
Specified by:
getIdentityConstraintDefinitions in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Identity Constraint Definitions' containment reference list.
See Also:
XSDPackage.getXSDElementDeclaration_IdentityConstraintDefinitions()

getResolvedElementDeclaration

public XSDElementDeclaration getResolvedElementDeclaration()
Specified by:
getResolvedElementDeclaration in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Resolved Element Declaration' reference.
See Also:
XSDElementDeclaration.setResolvedElementDeclaration(XSDElementDeclaration), XSDPackage.getXSDElementDeclaration_ResolvedElementDeclaration()

setResolvedElementDeclaration

public void setResolvedElementDeclaration(XSDElementDeclaration newResolvedElementDeclaration)
Specified by:
setResolvedElementDeclaration in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Parameters:
value - the new value of the 'Resolved Element Declaration' reference.
See Also:
XSDElementDeclaration.getResolvedElementDeclaration()

getSubstitutionGroupAffiliation

public XSDElementDeclaration getSubstitutionGroupAffiliation()
Specified by:
getSubstitutionGroupAffiliation in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Substitution Group Affiliation' reference.
See Also:
XSDElementDeclaration.setSubstitutionGroupAffiliation(XSDElementDeclaration), XSDPackage.getXSDElementDeclaration_SubstitutionGroupAffiliation()

setSubstitutionGroupAffiliation

public void setSubstitutionGroupAffiliation(XSDElementDeclaration newSubstitutionGroupAffiliation)
Specified by:
setSubstitutionGroupAffiliation in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Parameters:
value - the new value of the 'Substitution Group Affiliation' reference.
See Also:
XSDElementDeclaration.getSubstitutionGroupAffiliation()

getSubstitutionGroup

public org.eclipse.emf.common.util.EList getSubstitutionGroup()
Specified by:
getSubstitutionGroup in interface XSDElementDeclaration
Following copied from interface: org.eclipse.xsd.XSDElementDeclaration
Returns:
the value of the 'Substitution Group' reference list.
See Also:
XSDPackage.getXSDElementDeclaration_SubstitutionGroup()

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 XSDFeatureImpl

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 XSDFeatureImpl

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 XSDFeatureImpl

eUnset

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

eIsSet

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

toString

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

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-2002 IBM Corporation and others.
All Rights Reserved.