public class XSDAttributeDeclarationImpl extends XSDFeatureImpl implements XSDAttributeDeclaration
The following features are implemented:
XSDNamedComponentImpl.Comparator, XSDNamedComponentImpl.StringPairComparator, XSDNamedComponentImpl.XSDNamedComponentList<E extends java.lang.Object & XSDNamedComponent>
XSDConcreteComponentImpl.XSDContentsEList
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
InternalEObject.EStore
Modifier and Type | Field and Description |
---|---|
protected XSDAnnotation |
annotation
The cached value of the '
Annotation ' containment reference. |
protected XSDSimpleTypeDefinition |
anonymousTypeDefinition
The cached value of the '
Anonymous Type Definition ' containment reference. |
protected static boolean |
ATTRIBUTE_DECLARATION_REFERENCE_EDEFAULT
The default value of the '
Attribute Declaration Reference ' attribute. |
protected boolean |
isTypeExplicit |
protected XSDAttributeDeclaration |
resolvedAttributeDeclaration
The cached value of the '
Resolved Attribute Declaration ' reference. |
protected XSDSimpleTypeDefinition |
typeDefinition
The cached value of the '
Type Definition ' reference. |
CONSTRAINT_EDEFAULT, CONSTRAINT_EFLAG, CONSTRAINT_EFLAG_DEFAULT, CONSTRAINT_EFLAG_OFFSET, CONSTRAINT_ESETFLAG, FEATURE_REFERENCE_EDEFAULT, FORM_EDEFAULT, FORM_EFLAG, FORM_EFLAG_DEFAULT, FORM_EFLAG_OFFSET, FORM_ESETFLAG, GLOBAL_EDEFAULT, LEXICAL_VALUE_EDEFAULT, lexicalValue, value, VALUE_EDEFAULT
ALIAS_NAME_EDEFAULT, ALIAS_URI_EDEFAULT, name, NAME_EDEFAULT, QNAME_EDEFAULT, TARGET_NAMESPACE_EDEFAULT, targetNamespace, URI_EDEFAULT
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ELEMENT_EDEFAULT, ERROR, FATAL, forceResolve, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
EOPPOSITE_FEATURE_BASE
Modifier | Constructor and Description |
---|---|
protected |
XSDAttributeDeclarationImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
adoptContent(EReference eReference,
XSDConcreteComponent xsdConcreteComponent) |
protected boolean |
analyze() |
NotificationChain |
basicSetAnnotation(XSDAnnotation newAnnotation,
NotificationChain msgs) |
NotificationChain |
basicSetAnonymousTypeDefinition(XSDSimpleTypeDefinition newAnonymousTypeDefinition,
NotificationChain msgs) |
protected void |
changeAttribute(EAttribute eAttribute) |
protected void |
changeReference(EReference eReference) |
XSDConcreteComponent |
cloneConcreteComponent(boolean deep,
boolean shareDOM)
Creates a clone of the component.
|
static XSDAttributeDeclaration |
createAttributeDeclaration(org.w3c.dom.Node node) |
org.w3c.dom.Element |
createElement() |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected EClass |
eStaticClass() |
void |
eUnset(int featureID) |
XSDAnnotation |
getAnnotation() |
XSDSimpleTypeDefinition |
getAnonymousTypeDefinition() |
java.lang.Boolean |
getAttributeDeclarationReference() |
java.lang.String |
getQName()
Returns the value of the 'QName' attribute.
|
XSDAttributeDeclaration |
getResolvedAttributeDeclaration() |
XSDFeature |
getResolvedFeature()
Returns the value of the 'Resolved Feature' reference.
|
XSDNamedComponent |
getResolvedNamedComponent() |
XSDTypeDefinition |
getType()
Returns the value of the 'Type' reference.
|
XSDSimpleTypeDefinition |
getTypeDefinition() |
protected void |
handleReconciliation(java.util.List<XSDConcreteComponent> newContents,
java.util.List<XSDConcreteComponent> remainingContents) |
protected void |
handleUnreconciledElement(org.w3c.dom.Element child,
java.util.List<XSDConcreteComponent> newContents,
java.util.List<XSDConcreteComponent> remainingContents) |
boolean |
isAttributeDeclarationReference()
Returns the value of the 'Attribute Declaration Reference' attribute.
|
boolean |
isFeatureReference()
Returns the value of the 'Feature Reference' attribute.
|
boolean |
isNamedComponentReference() |
protected void |
orphanContent(EReference eReference,
XSDConcreteComponent xsdConcreteComponent) |
protected void |
patch() |
protected void |
patchTargetNamespaceAttribute() |
protected void |
patchTargetNamespaceAttribute(XSDSchema xsdSchema) |
protected void |
patchTargetNamespaceAttributeHelper(XSDSchema xsdSchema) |
protected void |
reconcileAttributes(org.w3c.dom.Element changedElement) |
protected void |
reconcileNameAttribute() |
void |
setAnnotation(XSDAnnotation newAnnotation) |
void |
setAnonymousTypeDefinition(XSDSimpleTypeDefinition newAnonymousTypeDefinition) |
void |
setResolvedAttributeDeclaration(XSDAttributeDeclaration newResolvedAttributeDeclaration) |
void |
setTypeDefinition(XSDSimpleTypeDefinition newTypeDefinition)
Sets the value of the '
Type Definition ' reference. |
void |
setTypeDefinitionGen(XSDSimpleTypeDefinition newTypeDefinition) |
void |
validate()
Validates whether this component conforms to the constraints defined in the XML Schema standard.
|
getConstraint, getFeatureReference, getForm, getGlobal, getLexicalValue, getScope, getValue, isGlobal, isSetConstraint, isSetForm, isUpdatingDOM, setConstraint, setForm, setLexicalValue, setValue, toString, unsetConstraint, unsetForm
addToSortedList, adoptBy, findInSortedList, getAliasName, getAliasURI, getName, getQName, getTargetNamespace, getURI, getURIReferenceLabel, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, hasURI, mergeToSortedList, setName, setTargetNamespace, sortNamedComponents
adoptDiagnostic, checkAttributes, checkAttributeTypeConstraint, checkAttributeTypeConstraint, checkBuiltInTypeConstraint, checkComplexContent, checkComplexContent, checkElementComplexContent, checkSimpleTypeConstraint, clearDiagnostics, cloneConcreteComponents, considerAllContainsForBestConcreteComponent, contains, convertToBoolean, 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, getXSDConcreteComponentImpls, getXSDContents, getXSDFactory, getXSDPackage, handleAnnotationReconciliation, handleElementForAdopt, moveContent, niceCreateNamespaceAttribute, niceInsertBefore, niceRemoveChild, niceSetAttribute, niceSetAttributeURIValue, orphanBy, orphanDiagnostic, populateDiagnostic, printDFA, reconcile, reconcileContents, 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
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConstraint, getForm, getLexicalValue, getScope, getValue, isGlobal, isSetConstraint, isSetForm, setConstraint, setForm, setLexicalValue, setValue, unsetConstraint, unsetForm
getAliasName, getAliasURI, getName, getQName, getTargetNamespace, getURI, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, hasURI, setName, setTargetNamespace
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
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
protected static final boolean ATTRIBUTE_DECLARATION_REFERENCE_EDEFAULT
Attribute Declaration Reference
' attribute.
protected XSDAnnotation annotation
Annotation
' containment reference.
getAnnotation()
protected XSDSimpleTypeDefinition anonymousTypeDefinition
Anonymous Type Definition
' containment reference.
getAnonymousTypeDefinition()
protected XSDSimpleTypeDefinition typeDefinition
Type Definition
' reference.
getTypeDefinition()
protected XSDAttributeDeclaration resolvedAttributeDeclaration
Resolved Attribute Declaration
' reference.
getResolvedAttributeDeclaration()
protected boolean isTypeExplicit
public static XSDAttributeDeclaration createAttributeDeclaration(org.w3c.dom.Node node)
protected EClass eStaticClass()
eStaticClass
in class XSDFeatureImpl
public java.lang.Boolean getAttributeDeclarationReference()
public org.w3c.dom.Element createElement()
createElement
in class XSDConcreteComponentImpl
protected void patch()
patch
in class XSDNamedComponentImpl
protected void patchTargetNamespaceAttribute()
patchTargetNamespaceAttribute
in class XSDNamedComponentImpl
protected void patchTargetNamespaceAttribute(XSDSchema xsdSchema)
patchTargetNamespaceAttribute
in class XSDNamedComponentImpl
protected void patchTargetNamespaceAttributeHelper(XSDSchema xsdSchema)
protected boolean analyze()
analyze
in class XSDFeatureImpl
public void validate()
XSDConcreteComponent
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.validate
in interface XSDConcreteComponent
validate
in class XSDConcreteComponentImpl
XSDConcreteComponent.getDiagnostics()
,
XSDConcreteComponent.clearDiagnostics()
protected void reconcileAttributes(org.w3c.dom.Element changedElement)
reconcileAttributes
in class XSDFeatureImpl
protected void reconcileNameAttribute()
reconcileNameAttribute
in class XSDNamedComponentImpl
protected void handleUnreconciledElement(org.w3c.dom.Element child, java.util.List<XSDConcreteComponent> newContents, java.util.List<XSDConcreteComponent> remainingContents)
handleUnreconciledElement
in class XSDConcreteComponentImpl
protected void handleReconciliation(java.util.List<XSDConcreteComponent> newContents, java.util.List<XSDConcreteComponent> remainingContents)
handleReconciliation
in class XSDConcreteComponentImpl
protected void changeAttribute(EAttribute eAttribute)
changeAttribute
in class XSDFeatureImpl
protected void changeReference(EReference eReference)
changeReference
in class XSDConcreteComponentImpl
protected void adoptContent(EReference eReference, XSDConcreteComponent xsdConcreteComponent)
adoptContent
in class XSDConcreteComponentImpl
protected void orphanContent(EReference eReference, XSDConcreteComponent xsdConcreteComponent)
orphanContent
in class XSDConcreteComponentImpl
public boolean isAttributeDeclarationReference()
XSDAttributeDeclaration
This concrete attribute is equivalent to
xsdAttributeDeclaration != xsdAttributeDeclaration.getResolvedAttributeDeclaration
()
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 attribute declaration
with a ref attribute.
isAttributeDeclarationReference
in interface XSDAttributeDeclaration
XSDPackage.getXSDAttributeDeclaration_AttributeDeclarationReference()
public XSDAnnotation getAnnotation()
getAnnotation
in interface XSDAttributeDeclaration
XSDAttributeDeclaration.setAnnotation(XSDAnnotation)
,
XSDPackage.getXSDAttributeDeclaration_Annotation()
public void setAnnotation(XSDAnnotation newAnnotation)
setAnnotation
in interface XSDAttributeDeclaration
newAnnotation
- the new value of the 'Annotation' containment reference.XSDAttributeDeclaration.getAnnotation()
public NotificationChain basicSetAnnotation(XSDAnnotation newAnnotation, NotificationChain msgs)
public XSDSimpleTypeDefinition getAnonymousTypeDefinition()
getAnonymousTypeDefinition
in interface XSDAttributeDeclaration
XSDAttributeDeclaration.setAnonymousTypeDefinition(XSDSimpleTypeDefinition)
,
XSDPackage.getXSDAttributeDeclaration_AnonymousTypeDefinition()
public void setAnonymousTypeDefinition(XSDSimpleTypeDefinition newAnonymousTypeDefinition)
setAnonymousTypeDefinition
in interface XSDAttributeDeclaration
newAnonymousTypeDefinition
- the new value of the 'Anonymous Type Definition' containment reference.XSDAttributeDeclaration.getAnonymousTypeDefinition()
public NotificationChain basicSetAnonymousTypeDefinition(XSDSimpleTypeDefinition newAnonymousTypeDefinition, NotificationChain msgs)
public XSDSimpleTypeDefinition getTypeDefinition()
getTypeDefinition
in interface XSDAttributeDeclaration
XSDAttributeDeclaration.setTypeDefinition(XSDSimpleTypeDefinition)
,
XSDPackage.getXSDAttributeDeclaration_TypeDefinition()
public void setTypeDefinitionGen(XSDSimpleTypeDefinition newTypeDefinition)
public void setTypeDefinition(XSDSimpleTypeDefinition newTypeDefinition)
XSDAttributeDeclaration
Type Definition
' reference.
setTypeDefinition
in interface XSDAttributeDeclaration
newTypeDefinition
- the new value of the 'Type Definition' reference.XSDAttributeDeclaration.getTypeDefinition()
public XSDAttributeDeclaration getResolvedAttributeDeclaration()
getResolvedAttributeDeclaration
in interface XSDAttributeDeclaration
XSDAttributeDeclaration.setResolvedAttributeDeclaration(XSDAttributeDeclaration)
,
XSDPackage.getXSDAttributeDeclaration_ResolvedAttributeDeclaration()
public void setResolvedAttributeDeclaration(XSDAttributeDeclaration newResolvedAttributeDeclaration)
setResolvedAttributeDeclaration
in interface XSDAttributeDeclaration
newResolvedAttributeDeclaration
- the new value of the 'Resolved Attribute Declaration' reference.XSDAttributeDeclaration.getResolvedAttributeDeclaration()
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseRemove
in class XSDConcreteComponentImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class XSDFeatureImpl
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class XSDFeatureImpl
EObject.eSet(EStructuralFeature, Object)
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class XSDFeatureImpl
EObject.eUnset(EStructuralFeature)
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class XSDFeatureImpl
EObject.eIsSet(EStructuralFeature)
public java.lang.String getQName()
XSDNamedComponent
This concrete attribute is equivalent to
xsdNamedComponent.getQName
(xsdNamedComponent)
getQName
in interface XSDNamedComponent
getQName
in class XSDNamedComponentImpl
XSDNamedComponent.getQName(org.eclipse.xsd.XSDConcreteComponent)
,
XSDPackage.getXSDNamedComponent_QName()
public boolean isNamedComponentReference()
isNamedComponentReference
in class XSDNamedComponentImpl
public XSDNamedComponent getResolvedNamedComponent()
getResolvedNamedComponent
in class XSDNamedComponentImpl
public boolean isFeatureReference()
XSDFeature
This is the same result as either
the 'Element Reference
' attribute or
the 'Attribute Reference
' attribute.
isFeatureReference
in interface XSDFeature
isFeatureReference
in class XSDFeatureImpl
XSDPackage.getXSDFeature_FeatureReference()
public XSDFeature getResolvedFeature()
XSDFeature
This is the same result as either
the 'Resolved Element Declaration
' reference or
the 'Resolved Attribute Declaration
' reference.
getResolvedFeature
in interface XSDFeature
getResolvedFeature
in class XSDFeatureImpl
XSDPackage.getXSDFeature_ResolvedFeature()
public XSDTypeDefinition getType()
XSDFeature
This is the same result as either
the element 'Type Definition
' reference or
the attribute 'Type Definition
' reference.
getType
in interface XSDFeature
getType
in class XSDFeatureImpl
XSDPackage.getXSDFeature_Type()
public XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM)
XSDConcreteComponent
cloneConcreteComponent
in interface XSDConcreteComponent
cloneConcreteComponent
in class XSDConcreteComponentImpl
deep
- whether the clone should be deep.shareDOM
- whether the clone should share the original DOM