org.eclipse.xsd.impl
Class XSDModelGroupDefinitionImpl
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.XSDRedefinableComponentImpl
|
+--org.eclipse.xsd.impl.XSDModelGroupDefinitionImpl
- All Implemented Interfaces:
- org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.common.notify.Notifier, XSDComponent, XSDConcreteComponent, XSDModelGroupDefinition, XSDNamedComponent, XSDParticleContent, XSDRedefinableComponent, XSDRedefineContent, XSDSchemaContent
- public class XSDModelGroupDefinitionImpl
- extends XSDRedefinableComponentImpl
- implements XSDModelGroupDefinition
An implementation of the model object 'Model Group Definition'.
The following features are implemented:
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 |
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 |
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 |
basicSetModelGroup(XSDModelGroup newModelGroup,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
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 XSDModelGroupDefinition |
createModelGroupDefinition(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 |
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()
|
XSDModelGroup |
getModelGroup()
|
java.lang.Boolean |
getModelGroupDefinitionReference()
|
java.lang.String |
getQName()
Returns the value of the 'QName' attribute. |
XSDModelGroupDefinition |
getResolvedModelGroupDefinition()
|
XSDNamedComponent |
getResolvedNamedComponent()
|
protected void |
handleAnalysis()
|
protected void |
handleNewResolvedModelGroupDefinition(XSDModelGroupDefinition newResolvedModelGroupDefinition)
|
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 |
isCircular()
Returns the value of the 'Circular' attribute. |
boolean |
isModelGroupDefinitionReference()
Returns the value of the 'Model Group Definition Reference' attribute. |
boolean |
isNamedComponentReference()
|
protected boolean |
isUpdatingDOM()
|
protected void |
orphanContent(org.eclipse.emf.ecore.EReference eReference,
XSDConcreteComponent xsdConcreteComponent)
|
protected void |
patch()
|
protected void |
reconcileAttributes(org.w3c.dom.Element changedElement)
|
void |
setAnnotation(XSDAnnotation newAnnotation)
|
void |
setModelGroup(XSDModelGroup newModelGroup)
|
void |
setResolvedModelGroupDefinition(XSDModelGroupDefinition newResolvedModelGroupDefinition)
|
void |
validate()
Validates whether this component conforms to the constraints defined in the XML Schema standard. |
Methods inherited from class org.eclipse.xsd.impl.XSDNamedComponentImpl |
addToSortedList, adoptBy, changeAttribute, findInSortedList, getAliasName, getAliasURI, getName, getQName, getTargetNamespace, getURI, getURIReferenceLabel, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, hasURI, mergeToSortedList, patchTargetNamespaceAttribute, reconcileNameAttribute, setName, setTargetNamespace, sortNamedComponents, toString |
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, eNotify, 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, reconcileContents, 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.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, eNotify, eSetDeliver |
annotation
protected XSDAnnotation annotation
- The cached value of the '
Annotation
' containment reference.
- See Also:
getAnnotation()
modelGroup
protected XSDModelGroup modelGroup
- The cached value of the '
Model Group
' containment reference.
- See Also:
getModelGroup()
resolvedModelGroupDefinition
protected XSDModelGroupDefinition resolvedModelGroupDefinition
- The cached value of the '
Resolved Model Group Definition
' reference.
- See Also:
getResolvedModelGroupDefinition()
analysisState
protected int analysisState
XSDModelGroupDefinitionImpl
protected XSDModelGroupDefinitionImpl()
createModelGroupDefinition
public static XSDModelGroupDefinition createModelGroupDefinition(org.w3c.dom.Node node)
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
-
- Overrides:
eStaticClass
in class XSDRedefinableComponentImpl
getModelGroupDefinitionReference
public java.lang.Boolean getModelGroupDefinitionReference()
-
isUpdatingDOM
protected boolean isUpdatingDOM()
- Overrides:
isUpdatingDOM
in class XSDConcreteComponentImpl
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 XSDConcreteComponentImpl
handleAnalysis
protected void handleAnalysis()
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 XSDNamedComponentImpl
handleNewResolvedModelGroupDefinition
protected void handleNewResolvedModelGroupDefinition(XSDModelGroupDefinition newResolvedModelGroupDefinition)
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
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
isModelGroupDefinitionReference
public boolean isModelGroupDefinitionReference()
- Description copied from interface:
XSDModelGroupDefinition
- Returns the value of the 'Model Group Definition Reference' attribute.
This concrete attribute is equivalent to
xsdModelGroupDefinition != xsdModelGroupDefinition.getResolvedModelGroupDefinition
()
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 a model group definition
with a ref attribute.
- Specified by:
isModelGroupDefinitionReference
in interface XSDModelGroupDefinition
- Following copied from interface:
org.eclipse.xsd.XSDModelGroupDefinition
- Returns:
- the value of the 'Model Group Definition Reference' attribute.
- See Also:
XSDModelGroupDefinition.getResolvedModelGroupDefinition()
,
XSDPackage.getXSDModelGroupDefinition_ModelGroupDefinitionReference()
getAnnotation
public XSDAnnotation getAnnotation()
-
- Specified by:
getAnnotation
in interface XSDModelGroupDefinition
- Following copied from interface:
org.eclipse.xsd.XSDModelGroupDefinition
- Returns:
- the value of the 'Annotation' containment reference.
- See Also:
XSDModelGroupDefinition.setAnnotation(XSDAnnotation)
,
XSDPackage.getXSDModelGroupDefinition_Annotation()
setAnnotation
public void setAnnotation(XSDAnnotation newAnnotation)
-
- Specified by:
setAnnotation
in interface XSDModelGroupDefinition
- Following copied from interface:
org.eclipse.xsd.XSDModelGroupDefinition
- Parameters:
value
- the new value of the 'Annotation' containment reference.- See Also:
XSDModelGroupDefinition.getAnnotation()
basicSetAnnotation
public org.eclipse.emf.common.notify.NotificationChain basicSetAnnotation(XSDAnnotation newAnnotation,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
getModelGroup
public XSDModelGroup getModelGroup()
-
- Specified by:
getModelGroup
in interface XSDModelGroupDefinition
- Following copied from interface:
org.eclipse.xsd.XSDModelGroupDefinition
- Returns:
- the value of the 'Model Group' containment reference.
- See Also:
XSDModelGroupDefinition.setModelGroup(XSDModelGroup)
,
XSDPackage.getXSDModelGroupDefinition_ModelGroup()
setModelGroup
public void setModelGroup(XSDModelGroup newModelGroup)
-
- Specified by:
setModelGroup
in interface XSDModelGroupDefinition
- Following copied from interface:
org.eclipse.xsd.XSDModelGroupDefinition
- Parameters:
value
- the new value of the 'Model Group' containment reference.- See Also:
XSDModelGroupDefinition.getModelGroup()
basicSetModelGroup
public org.eclipse.emf.common.notify.NotificationChain basicSetModelGroup(XSDModelGroup newModelGroup,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
getResolvedModelGroupDefinition
public XSDModelGroupDefinition getResolvedModelGroupDefinition()
-
- Specified by:
getResolvedModelGroupDefinition
in interface XSDModelGroupDefinition
- Following copied from interface:
org.eclipse.xsd.XSDModelGroupDefinition
- Returns:
- the value of the 'Resolved Model Group Definition' reference.
- See Also:
XSDModelGroupDefinition.isModelGroupDefinitionReference()
,
XSDModelGroupDefinition.setResolvedModelGroupDefinition(XSDModelGroupDefinition)
,
XSDPackage.getXSDModelGroupDefinition_ResolvedModelGroupDefinition()
setResolvedModelGroupDefinition
public void setResolvedModelGroupDefinition(XSDModelGroupDefinition newResolvedModelGroupDefinition)
-
- Specified by:
setResolvedModelGroupDefinition
in interface XSDModelGroupDefinition
- Following copied from interface:
org.eclipse.xsd.XSDModelGroupDefinition
- Parameters:
value
- the new value of the 'Resolved Model Group Definition' reference.- See Also:
XSDModelGroupDefinition.getResolvedModelGroupDefinition()
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 XSDRedefinableComponentImpl
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 XSDRedefinableComponentImpl
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 XSDRedefinableComponentImpl
eUnset
public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
-
- Specified by:
eUnset
in interface org.eclipse.emf.ecore.EObject
- Overrides:
eUnset
in class XSDRedefinableComponentImpl
eIsSet
public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
-
- Specified by:
eIsSet
in interface org.eclipse.emf.ecore.EObject
- Overrides:
eIsSet
in class XSDRedefinableComponentImpl
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
isCircular
public boolean isCircular()
- Description copied from interface:
XSDRedefinableComponent
- Returns the value of the 'Circular' attribute.
This indicates whether the definition is circular,
e.g., circular base, item, or member types reference,
circular attribute group definition reference,
or circular model group definition reference.
- Specified by:
isCircular
in interface XSDRedefinableComponent
- Overrides:
isCircular
in class XSDRedefinableComponentImpl
- Following copied from interface:
org.eclipse.xsd.XSDRedefinableComponent
- Returns:
- the value of the 'Circular' attribute.
- See Also:
XSDPackage.getXSDRedefinableComponent_Circular()
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.