|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.xsd.impl.XSDConcreteComponentImpl
org.eclipse.xsd.impl.XSDComponentImpl
org.eclipse.xsd.impl.XSDAttributeUseImpl
public class XSDAttributeUseImpl
An implementation of the model object 'Attribute Use'.
The following features are implemented:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
---|
XSDConcreteComponentImpl.XSDContentsEList |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter> |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
InternalEObject.EStore |
Field Summary | |
---|---|
protected XSDAttributeDeclaration |
attributeDeclaration
The cached value of the ' Attribute Declaration ' reference |
protected XSDConstraint |
constraint
The cached value of the ' Constraint ' attribute |
protected static XSDConstraint |
CONSTRAINT_EDEFAULT
The default value of the ' Constraint ' attribute |
protected static int |
CONSTRAINT_ESETFLAG
The flag representing whether the Constraint attribute has been set |
protected XSDAttributeDeclaration |
content
The cached value of the ' Content ' containment reference |
protected static java.lang.String |
LEXICAL_VALUE_EDEFAULT
The default value of the ' Lexical Value ' attribute |
protected java.lang.String |
lexicalValue
The cached value of the ' Lexical Value ' attribute |
protected static boolean |
REQUIRED_EDEFAULT
The default value of the ' Required ' attribute |
protected static int |
REQUIRED_EFLAG
The flag representing the value of the ' Required ' attribute |
protected XSDAttributeUseCategory |
use
The cached value of the ' Use ' attribute |
protected static XSDAttributeUseCategory |
USE_EDEFAULT
The default value of the ' Use ' attribute |
protected static int |
USE_ESETFLAG
The flag representing whether the Use attribute has been set |
protected java.lang.Object |
value
The cached value of the ' Value ' attribute |
protected static java.lang.Object |
VALUE_EDEFAULT
The default value of the ' Value ' attribute |
Fields inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
---|
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ELEMENT_EDEFAULT, ERROR, FATAL, forceResolve, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
---|---|
protected |
XSDAttributeUseImpl()
|
Method Summary | |
---|---|
protected void |
adoptContent(EReference eReference,
XSDConcreteComponent xsdConcreteComponent)
|
protected boolean |
analyze()
|
NotificationChain |
basicSetContent(XSDAttributeDeclaration newContent,
NotificationChain msgs)
|
protected void |
changeAttribute(EAttribute eAttribute)
|
XSDConcreteComponent |
cloneConcreteComponent(boolean deep,
boolean shareDOM)
Creates a clone of the component. |
static XSDAttributeUse |
createAttributeUse(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)
|
XSDAttributeDeclaration |
getAttributeDeclaration()
|
XSDConstraint |
getConstraint()
|
XSDAttributeDeclaration |
getContent()
|
protected java.util.Collection<org.w3c.dom.Element> |
getContentNodes(org.w3c.dom.Element changedElement)
|
java.lang.String |
getLexicalValue()
|
XSDAttributeUseCategory |
getUse()
|
java.lang.Object |
getValue()
|
boolean |
isRequired()
|
boolean |
isSetConstraint()
|
boolean |
isSetUse()
|
protected void |
orphanContent(EReference eReference,
XSDConcreteComponent xsdConcreteComponent)
|
protected void |
patch()
|
protected void |
patchHelper()
|
protected void |
reconcileAttributes(org.w3c.dom.Element changedElement)
|
protected void |
reconcileContents(org.w3c.dom.Element changedElement)
|
void |
setAttributeDeclaration(XSDAttributeDeclaration newAttributeDeclaration)
|
void |
setConstraint(XSDConstraint newConstraint)
|
void |
setContent(XSDAttributeDeclaration newContent)
|
void |
setLexicalValue(java.lang.String newLexicalValue)
|
void |
setRequired(boolean newRequired)
|
void |
setUse(XSDAttributeUseCategory newUse)
|
void |
setValue(java.lang.Object newValue)
|
static java.util.List<XSDAttributeUse> |
sortAttributeUses(java.util.Collection<XSDAttributeUse> xsdAttributeUses)
|
java.lang.String |
toString()
|
void |
unsetConstraint()
|
void |
unsetUse()
|
void |
validate()
Validates whether this component conforms to the constraints defined in the XML Schema standard. |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Field Detail |
---|
protected static final boolean REQUIRED_EDEFAULT
Required
' attribute.
isRequired()
,
Constant Field Valuesprotected static final int REQUIRED_EFLAG
Required
' attribute.
isRequired()
,
Constant Field Valuesprotected static final java.lang.Object VALUE_EDEFAULT
Value
' attribute.
getValue()
protected java.lang.Object value
Value
' attribute.
getValue()
protected static final XSDConstraint CONSTRAINT_EDEFAULT
Constraint
' attribute.
getConstraint()
protected XSDConstraint constraint
Constraint
' attribute.
getConstraint()
protected static final int CONSTRAINT_ESETFLAG
protected static final XSDAttributeUseCategory USE_EDEFAULT
Use
' attribute.
getUse()
protected XSDAttributeUseCategory use
Use
' attribute.
getUse()
protected static final int USE_ESETFLAG
protected static final java.lang.String LEXICAL_VALUE_EDEFAULT
Lexical Value
' attribute.
getLexicalValue()
protected java.lang.String lexicalValue
Lexical Value
' attribute.
getLexicalValue()
protected XSDAttributeDeclaration attributeDeclaration
Attribute Declaration
' reference.
getAttributeDeclaration()
protected XSDAttributeDeclaration content
Content
' containment reference.
getContent()
Constructor Detail |
---|
protected XSDAttributeUseImpl()
Method Detail |
---|
public static XSDAttributeUse createAttributeUse(org.w3c.dom.Node node)
public static java.util.List<XSDAttributeUse> sortAttributeUses(java.util.Collection<XSDAttributeUse> xsdAttributeUses)
protected EClass eStaticClass()
eStaticClass
in class XSDComponentImpl
public boolean isRequired()
isRequired
in interface XSDAttributeUse
XSDAttributeUse.setRequired(boolean)
,
XSDPackage.getXSDAttributeUse_Required()
public void setRequired(boolean newRequired)
setRequired
in interface XSDAttributeUse
newRequired
- the new value of the 'Required' attribute.XSDAttributeUse.isRequired()
public java.lang.Object getValue()
getValue
in interface XSDAttributeUse
XSDAttributeUse.setValue(Object)
,
XSDPackage.getXSDAttributeUse_Value()
public void setValue(java.lang.Object newValue)
setValue
in interface XSDAttributeUse
newValue
- the new value of the 'Value' attribute.XSDAttributeUse.getValue()
public XSDConstraint getConstraint()
getConstraint
in interface XSDAttributeUse
XSDConstraint
,
XSDAttributeUse.isSetConstraint()
,
XSDAttributeUse.unsetConstraint()
,
XSDAttributeUse.setConstraint(XSDConstraint)
,
XSDPackage.getXSDAttributeUse_Constraint()
public void setConstraint(XSDConstraint newConstraint)
setConstraint
in interface XSDAttributeUse
newConstraint
- the new value of the 'Constraint' attribute.XSDConstraint
,
XSDAttributeUse.isSetConstraint()
,
XSDAttributeUse.unsetConstraint()
,
XSDAttributeUse.getConstraint()
public void unsetConstraint()
unsetConstraint
in interface XSDAttributeUse
XSDAttributeUse.isSetConstraint()
,
XSDAttributeUse.getConstraint()
,
XSDAttributeUse.setConstraint(XSDConstraint)
public boolean isSetConstraint()
isSetConstraint
in interface XSDAttributeUse
XSDAttributeUse.unsetConstraint()
,
XSDAttributeUse.getConstraint()
,
XSDAttributeUse.setConstraint(XSDConstraint)
public XSDAttributeUseCategory getUse()
getUse
in interface XSDAttributeUse
XSDAttributeUseCategory
,
XSDAttributeUse.isSetUse()
,
XSDAttributeUse.unsetUse()
,
XSDAttributeUse.setUse(XSDAttributeUseCategory)
,
XSDPackage.getXSDAttributeUse_Use()
public void setUse(XSDAttributeUseCategory newUse)
setUse
in interface XSDAttributeUse
newUse
- the new value of the 'Use' attribute.XSDAttributeUseCategory
,
XSDAttributeUse.isSetUse()
,
XSDAttributeUse.unsetUse()
,
XSDAttributeUse.getUse()
public void unsetUse()
unsetUse
in interface XSDAttributeUse
XSDAttributeUse.isSetUse()
,
XSDAttributeUse.getUse()
,
XSDAttributeUse.setUse(XSDAttributeUseCategory)
public boolean isSetUse()
isSetUse
in interface XSDAttributeUse
XSDAttributeUse.unsetUse()
,
XSDAttributeUse.getUse()
,
XSDAttributeUse.setUse(XSDAttributeUseCategory)
public java.lang.String getLexicalValue()
getLexicalValue
in interface XSDAttributeUse
XSDAttributeUse.setLexicalValue(String)
,
XSDPackage.getXSDAttributeUse_LexicalValue()
public void setLexicalValue(java.lang.String newLexicalValue)
setLexicalValue
in interface XSDAttributeUse
newLexicalValue
- the new value of the 'Lexical Value' attribute.XSDAttributeUse.getLexicalValue()
public XSDAttributeDeclaration getAttributeDeclaration()
getAttributeDeclaration
in interface XSDAttributeUse
XSDAttributeUse.setAttributeDeclaration(XSDAttributeDeclaration)
,
XSDPackage.getXSDAttributeUse_AttributeDeclaration()
public void setAttributeDeclaration(XSDAttributeDeclaration newAttributeDeclaration)
setAttributeDeclaration
in interface XSDAttributeUse
newAttributeDeclaration
- the new value of the 'Attribute Declaration' reference.XSDAttributeUse.getAttributeDeclaration()
public XSDAttributeDeclaration getContent()
getContent
in interface XSDAttributeUse
XSDAttributeUse.setContent(XSDAttributeDeclaration)
,
XSDPackage.getXSDAttributeUse_Content()
public void setContent(XSDAttributeDeclaration newContent)
setContent
in interface XSDAttributeUse
newContent
- the new value of the 'Content' containment reference.XSDAttributeUse.getContent()
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseRemove
in class XSDConcreteComponentImpl
public NotificationChain basicSetContent(XSDAttributeDeclaration newContent, NotificationChain msgs)
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class XSDConcreteComponentImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class XSDConcreteComponentImpl
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class XSDConcreteComponentImpl
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class XSDConcreteComponentImpl
public java.lang.String toString()
toString
in class XSDConcreteComponentImpl
public org.w3c.dom.Element createElement()
createElement
in class XSDConcreteComponentImpl
protected void patch()
patch
in class XSDConcreteComponentImpl
protected void patchHelper()
protected boolean analyze()
analyze
in class XSDConcreteComponentImpl
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 java.util.Collection<org.w3c.dom.Element> getContentNodes(org.w3c.dom.Element changedElement)
getContentNodes
in class XSDConcreteComponentImpl
protected void reconcileAttributes(org.w3c.dom.Element changedElement)
reconcileAttributes
in class XSDConcreteComponentImpl
protected void reconcileContents(org.w3c.dom.Element changedElement)
reconcileContents
in class XSDConcreteComponentImpl
protected void changeAttribute(EAttribute eAttribute)
changeAttribute
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 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
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |