org.eclipse.xsd.impl
Class XSDAttributeUseImpl
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.XSDAttributeUseImpl
- All Implemented Interfaces:
- org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.common.notify.Notifier, XSDAttributeGroupContent, XSDAttributeUse, XSDComponent, XSDConcreteComponent
- public class XSDAttributeUseImpl
- extends XSDComponentImpl
- implements XSDAttributeUse
An implementation of the model object 'Attribute Use'.
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 |
Methods inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
adoptBy, adoptDiagnostic, changeReference, checkAttributes, checkAttributeTypeConstraint, checkAttributeTypeConstraint, checkBuiltInTypeConstraint, checkComplexContent, checkComplexContent, checkElementComplexContent, checkSimpleTypeConstraint, clearDiagnostics, cloneConcreteComponents, considerAllContainsForBestConcreteComponent, contains, createDiagnostic, createDiagnostic, createDiagnostic, createDiagnostic, createElement, createRequiredAttributeDiagnostic, createUnresolvedAttributeDeclaration, createUnresolvedAttributeGroupDefinition, createUnresolvedComplexTypeDefinition, createUnresolvedElementDeclaration, createUnresolvedIdentityConstraintDefinition, createUnresolvedModelGroupDefinition, createUnresolvedNotationDeclaration, createUnresolvedSimpleTypeDefinition, createUnresolvedTypeDefinition, elementAttributesChanged, elementChanged, elementContentsChanged, eNotificationRequired, eNotify, eObjectForURIFragmentSegment, eURIFragmentSegment, forceEngulf, forceEngulf, forceNiceInsertBefore, forceNiceRemoveChild, forceReplace, getAdoptionParentNode, getBestConcreteComponent, getComponentsWithApplicationInformation, getComponentsWithInformation, getComponentsWithUserInformation, getContainer, getDiagnostics, getDiagnosticTarget, getElement, getRootContainer, getSchema, getURIReferenceLabel, getXSDContents, getXSDFactory, getXSDPackage, handleAnnotationReconciliation, handleElementForAdopt, handleReconciliation, handleUnreconciledElement, isUpdatingDOM, 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, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eInverseAdd, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount |
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
eAdapters, eDeliver, eSetDeliver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.xsd.XSDConcreteComponent |
clearDiagnostics, contains, elementAttributesChanged, elementChanged, elementContentsChanged, getComponentsWithApplicationInformation, getComponentsWithUserInformation, getContainer, getDiagnostics, getElement, getRootContainer, getSchema, resolveAttributeDeclaration, resolveAttributeDeclaration, resolveAttributeDeclarationURI, resolveAttributeGroupDefinition, resolveAttributeGroupDefinition, resolveAttributeGroupDefinitionURI, resolveComplexTypeDefinition, resolveComplexTypeDefinition, resolveComplexTypeDefinitionURI, resolveElementDeclaration, resolveElementDeclaration, resolveElementDeclarationURI, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinitionURI, resolveModelGroupDefinition, resolveModelGroupDefinition, resolveModelGroupDefinitionURI, resolveNotationDeclaration, resolveNotationDeclaration, resolveNotationDeclarationURI, resolveSimpleTypeDefinition, resolveSimpleTypeDefinition, resolveSimpleTypeDefinitionURI, resolveTypeDefinition, resolveTypeDefinition, resolveTypeDefinitionURI, setElement, updateElement, updateElement |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
REQUIRED_EDEFAULT
protected static final boolean REQUIRED_EDEFAULT
- The default value of the '
Required
' attribute.
- See Also:
isRequired()
required
protected boolean required
- The cached value of the '
Required
' attribute.
- See Also:
isRequired()
VALUE_EDEFAULT
protected static final java.lang.Object VALUE_EDEFAULT
- The default value of the '
Value
' attribute.
- See Also:
getValue()
value
protected java.lang.Object value
- The cached value of the '
Value
' attribute.
- See Also:
getValue()
CONSTRAINT_EDEFAULT
protected static final XSDConstraint CONSTRAINT_EDEFAULT
- The default value of the '
Constraint
' attribute.
- See Also:
getConstraint()
constraint
protected XSDConstraint constraint
- The cached value of the '
Constraint
' attribute.
- See Also:
getConstraint()
constraintESet
protected boolean constraintESet
- This is true if the Constraint attribute has been set.
USE_EDEFAULT
protected static final XSDAttributeUseCategory USE_EDEFAULT
- The default value of the '
Use
' attribute.
- See Also:
getUse()
use
protected XSDAttributeUseCategory use
- The cached value of the '
Use
' attribute.
- See Also:
getUse()
useESet
protected boolean useESet
- This is true if the Use attribute has been set.
LEXICAL_VALUE_EDEFAULT
protected static final java.lang.String LEXICAL_VALUE_EDEFAULT
- The default value of the '
Lexical Value
' attribute.
- See Also:
getLexicalValue()
lexicalValue
protected java.lang.String lexicalValue
- The cached value of the '
Lexical Value
' attribute.
- See Also:
getLexicalValue()
attributeDeclaration
protected XSDAttributeDeclaration attributeDeclaration
- The cached value of the '
Attribute Declaration
' reference.
- See Also:
getAttributeDeclaration()
content
protected XSDAttributeDeclaration content
- The cached value of the '
Content
' containment reference.
- See Also:
getContent()
XSDAttributeUseImpl
protected XSDAttributeUseImpl()
createAttributeUse
public static XSDAttributeUse createAttributeUse(org.w3c.dom.Node node)
sortAttributeUses
public static java.util.List sortAttributeUses(java.util.Collection xsdAttributeUses)
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
-
- Overrides:
eStaticClass
in class XSDComponentImpl
isRequired
public boolean isRequired()
-
- Specified by:
isRequired
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Returns:
- the value of the 'Required' attribute.
- See Also:
XSDAttributeUse.setRequired(boolean)
,
XSDPackage.getXSDAttributeUse_Required()
setRequired
public void setRequired(boolean newRequired)
-
- Specified by:
setRequired
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Parameters:
value
- the new value of the 'Required' attribute.- See Also:
XSDAttributeUse.isRequired()
getValue
public java.lang.Object getValue()
-
- Specified by:
getValue
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Returns:
- the value of the 'Value' attribute.
- See Also:
XSDAttributeUse.setValue(Object)
,
XSDPackage.getXSDAttributeUse_Value()
setValue
public void setValue(java.lang.Object newValue)
-
- Specified by:
setValue
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Parameters:
value
- the new value of the 'Value' attribute.- See Also:
XSDAttributeUse.getValue()
getConstraint
public XSDConstraint getConstraint()
-
- Specified by:
getConstraint
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Returns:
- the value of the 'Constraint' attribute.
- See Also:
XSDConstraint
,
XSDAttributeUse.isSetConstraint()
,
XSDAttributeUse.unsetConstraint()
,
XSDAttributeUse.setConstraint(XSDConstraint)
,
XSDPackage.getXSDAttributeUse_Constraint()
setConstraint
public void setConstraint(XSDConstraint newConstraint)
-
- Specified by:
setConstraint
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Parameters:
value
- the new value of the 'Constraint' attribute.- See Also:
XSDConstraint
,
XSDAttributeUse.isSetConstraint()
,
XSDAttributeUse.unsetConstraint()
,
XSDAttributeUse.getConstraint()
unsetConstraint
public void unsetConstraint()
-
- Specified by:
unsetConstraint
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- See Also:
XSDAttributeUse.isSetConstraint()
,
XSDAttributeUse.getConstraint()
,
XSDAttributeUse.setConstraint(XSDConstraint)
isSetConstraint
public boolean isSetConstraint()
-
- Specified by:
isSetConstraint
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Returns:
- whether the value of the 'Constraint' attribute is set.
- See Also:
XSDAttributeUse.unsetConstraint()
,
XSDAttributeUse.getConstraint()
,
XSDAttributeUse.setConstraint(XSDConstraint)
getUse
public XSDAttributeUseCategory getUse()
-
- Specified by:
getUse
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Returns:
- the value of the 'Use' attribute.
- See Also:
XSDAttributeUseCategory
,
XSDAttributeUse.isSetUse()
,
XSDAttributeUse.unsetUse()
,
XSDAttributeUse.setUse(XSDAttributeUseCategory)
,
XSDPackage.getXSDAttributeUse_Use()
setUse
public void setUse(XSDAttributeUseCategory newUse)
-
- Specified by:
setUse
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Parameters:
value
- the new value of the 'Use' attribute.- See Also:
XSDAttributeUseCategory
,
XSDAttributeUse.isSetUse()
,
XSDAttributeUse.unsetUse()
,
XSDAttributeUse.getUse()
unsetUse
public void unsetUse()
-
- Specified by:
unsetUse
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- See Also:
XSDAttributeUse.isSetUse()
,
XSDAttributeUse.getUse()
,
XSDAttributeUse.setUse(XSDAttributeUseCategory)
isSetUse
public boolean isSetUse()
-
- Specified by:
isSetUse
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Returns:
- whether the value of the 'Use' attribute is set.
- See Also:
XSDAttributeUse.unsetUse()
,
XSDAttributeUse.getUse()
,
XSDAttributeUse.setUse(XSDAttributeUseCategory)
getLexicalValue
public java.lang.String getLexicalValue()
-
- Specified by:
getLexicalValue
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Returns:
- the value of the 'Lexical Value' attribute.
- See Also:
XSDAttributeUse.setLexicalValue(String)
,
XSDPackage.getXSDAttributeUse_LexicalValue()
setLexicalValue
public void setLexicalValue(java.lang.String newLexicalValue)
-
- Specified by:
setLexicalValue
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Parameters:
value
- the new value of the 'Lexical Value' attribute.- See Also:
XSDAttributeUse.getLexicalValue()
getAttributeDeclaration
public XSDAttributeDeclaration getAttributeDeclaration()
-
- Specified by:
getAttributeDeclaration
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Returns:
- the value of the 'Attribute Declaration' reference.
- See Also:
XSDAttributeUse.setAttributeDeclaration(XSDAttributeDeclaration)
,
XSDPackage.getXSDAttributeUse_AttributeDeclaration()
setAttributeDeclaration
public void setAttributeDeclaration(XSDAttributeDeclaration newAttributeDeclaration)
-
- Specified by:
setAttributeDeclaration
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Parameters:
value
- the new value of the 'Attribute Declaration' reference.- See Also:
XSDAttributeUse.getAttributeDeclaration()
getContent
public XSDAttributeDeclaration getContent()
-
- Specified by:
getContent
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Returns:
- the value of the 'Content' containment reference.
- See Also:
XSDAttributeUse.setContent(XSDAttributeDeclaration)
,
XSDPackage.getXSDAttributeUse_Content()
setContent
public void setContent(XSDAttributeDeclaration newContent)
-
- Specified by:
setContent
in interface XSDAttributeUse
- Following copied from interface:
org.eclipse.xsd.XSDAttributeUse
- Parameters:
value
- the new value of the 'Content' containment reference.- See Also:
XSDAttributeUse.getContent()
basicSetContent
public org.eclipse.emf.common.notify.NotificationChain basicSetContent(XSDAttributeDeclaration newContent,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
- Overrides:
eInverseRemove
in class XSDComponentImpl
eGet
public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
boolean resolve)
-
- Specified by:
eGet
in interface org.eclipse.emf.ecore.EObject
- Overrides:
eGet
in class XSDComponentImpl
eSet
public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
java.lang.Object newValue)
-
- Specified by:
eSet
in interface org.eclipse.emf.ecore.EObject
- Overrides:
eSet
in class XSDComponentImpl
eUnset
public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
-
- Specified by:
eUnset
in interface org.eclipse.emf.ecore.EObject
- Overrides:
eUnset
in class XSDComponentImpl
eIsSet
public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
-
- Specified by:
eIsSet
in interface org.eclipse.emf.ecore.EObject
- Overrides:
eIsSet
in class XSDComponentImpl
toString
public java.lang.String toString()
-
- Overrides:
toString
in class XSDConcreteComponentImpl
createElement
public org.w3c.dom.Element createElement()
- Overrides:
createElement
in class XSDConcreteComponentImpl
patch
protected void patch()
- Overrides:
patch
in class XSDConcreteComponentImpl
patchHelper
protected void patchHelper()
analyze
protected boolean analyze()
- Overrides:
analyze
in class XSDConcreteComponentImpl
validate
public void validate()
- Description copied from interface:
XSDConcreteComponent
- Validates whether this component conforms to the constraints defined in the XML Schema standard.
Diagnostics
are produced to report any problems.
- Specified by:
validate
in interface XSDConcreteComponent
- Overrides:
validate
in class XSDConcreteComponentImpl
- Following copied from interface:
org.eclipse.xsd.XSDConcreteComponent
- See Also:
XSDConcreteComponent.getDiagnostics()
,
XSDConcreteComponent.clearDiagnostics()
getContentNodes
protected java.util.Collection getContentNodes(org.w3c.dom.Element changedElement)
- Overrides:
getContentNodes
in class XSDConcreteComponentImpl
reconcileAttributes
protected void reconcileAttributes(org.w3c.dom.Element changedElement)
- Overrides:
reconcileAttributes
in class XSDConcreteComponentImpl
reconcileContents
protected void reconcileContents(org.w3c.dom.Element changedElement)
- Overrides:
reconcileContents
in class XSDConcreteComponentImpl
changeAttribute
protected void changeAttribute(org.eclipse.emf.ecore.EAttribute eAttribute)
- Overrides:
changeAttribute
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
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.