|
||||||||||
| 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 XSDComponentImplpublic boolean isRequired()
isRequired in interface XSDAttributeUseXSDAttributeUse.setRequired(boolean),
XSDPackage.getXSDAttributeUse_Required()public void setRequired(boolean newRequired)
setRequired in interface XSDAttributeUsenewRequired - the new value of the 'Required' attribute.XSDAttributeUse.isRequired()public java.lang.Object getValue()
getValue in interface XSDAttributeUseXSDAttributeUse.setValue(Object),
XSDPackage.getXSDAttributeUse_Value()public void setValue(java.lang.Object newValue)
setValue in interface XSDAttributeUsenewValue - the new value of the 'Value' attribute.XSDAttributeUse.getValue()public XSDConstraint getConstraint()
getConstraint in interface XSDAttributeUseXSDConstraint,
XSDAttributeUse.isSetConstraint(),
XSDAttributeUse.unsetConstraint(),
XSDAttributeUse.setConstraint(XSDConstraint),
XSDPackage.getXSDAttributeUse_Constraint()public void setConstraint(XSDConstraint newConstraint)
setConstraint in interface XSDAttributeUsenewConstraint - the new value of the 'Constraint' attribute.XSDConstraint,
XSDAttributeUse.isSetConstraint(),
XSDAttributeUse.unsetConstraint(),
XSDAttributeUse.getConstraint()public void unsetConstraint()
unsetConstraint in interface XSDAttributeUseXSDAttributeUse.isSetConstraint(),
XSDAttributeUse.getConstraint(),
XSDAttributeUse.setConstraint(XSDConstraint)public boolean isSetConstraint()
isSetConstraint in interface XSDAttributeUseXSDAttributeUse.unsetConstraint(),
XSDAttributeUse.getConstraint(),
XSDAttributeUse.setConstraint(XSDConstraint)public XSDAttributeUseCategory getUse()
getUse in interface XSDAttributeUseXSDAttributeUseCategory,
XSDAttributeUse.isSetUse(),
XSDAttributeUse.unsetUse(),
XSDAttributeUse.setUse(XSDAttributeUseCategory),
XSDPackage.getXSDAttributeUse_Use()public void setUse(XSDAttributeUseCategory newUse)
setUse in interface XSDAttributeUsenewUse - the new value of the 'Use' attribute.XSDAttributeUseCategory,
XSDAttributeUse.isSetUse(),
XSDAttributeUse.unsetUse(),
XSDAttributeUse.getUse()public void unsetUse()
unsetUse in interface XSDAttributeUseXSDAttributeUse.isSetUse(),
XSDAttributeUse.getUse(),
XSDAttributeUse.setUse(XSDAttributeUseCategory)public boolean isSetUse()
isSetUse in interface XSDAttributeUseXSDAttributeUse.unsetUse(),
XSDAttributeUse.getUse(),
XSDAttributeUse.setUse(XSDAttributeUseCategory)public java.lang.String getLexicalValue()
getLexicalValue in interface XSDAttributeUseXSDAttributeUse.setLexicalValue(String),
XSDPackage.getXSDAttributeUse_LexicalValue()public void setLexicalValue(java.lang.String newLexicalValue)
setLexicalValue in interface XSDAttributeUsenewLexicalValue - the new value of the 'Lexical Value' attribute.XSDAttributeUse.getLexicalValue()public XSDAttributeDeclaration getAttributeDeclaration()
getAttributeDeclaration in interface XSDAttributeUseXSDAttributeUse.setAttributeDeclaration(XSDAttributeDeclaration),
XSDPackage.getXSDAttributeUse_AttributeDeclaration()public void setAttributeDeclaration(XSDAttributeDeclaration newAttributeDeclaration)
setAttributeDeclaration in interface XSDAttributeUsenewAttributeDeclaration - the new value of the 'Attribute Declaration' reference.XSDAttributeUse.getAttributeDeclaration()public XSDAttributeDeclaration getContent()
getContent in interface XSDAttributeUseXSDAttributeUse.setContent(XSDAttributeDeclaration),
XSDPackage.getXSDAttributeUse_Content()public void setContent(XSDAttributeDeclaration newContent)
setContent in interface XSDAttributeUsenewContent - 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 InternalEObjecteGet in class XSDConcreteComponentImpl
public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface InternalEObjecteSet in class XSDConcreteComponentImplpublic void eUnset(int featureID)
eUnset in interface InternalEObjecteUnset in class XSDConcreteComponentImplpublic boolean eIsSet(int featureID)
eIsSet in interface InternalEObjecteIsSet in class XSDConcreteComponentImplpublic java.lang.String toString()
toString in class XSDConcreteComponentImplpublic org.w3c.dom.Element createElement()
createElement in class XSDConcreteComponentImplprotected void patch()
patch in class XSDConcreteComponentImplprotected void patchHelper()
protected boolean analyze()
analyze in class XSDConcreteComponentImplpublic void validate()
XSDConcreteComponentDiagnostics 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 XSDConcreteComponentvalidate in class XSDConcreteComponentImplXSDConcreteComponent.getDiagnostics(),
XSDConcreteComponent.clearDiagnostics()protected java.util.Collection<org.w3c.dom.Element> getContentNodes(org.w3c.dom.Element changedElement)
getContentNodes in class XSDConcreteComponentImplprotected void reconcileAttributes(org.w3c.dom.Element changedElement)
reconcileAttributes in class XSDConcreteComponentImplprotected void reconcileContents(org.w3c.dom.Element changedElement)
reconcileContents in class XSDConcreteComponentImplprotected 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 XSDConcreteComponentcloneConcreteComponent in class XSDConcreteComponentImpldeep - 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 | |||||||||