|
||||||||||
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.XSDNamedComponentImpl
org.eclipse.xsd.impl.XSDRedefinableComponentImpl
org.eclipse.xsd.impl.XSDTypeDefinitionImpl
public abstract class XSDTypeDefinitionImpl
An implementation of the model object 'Type Definition'.
The following features are implemented:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.xsd.impl.XSDNamedComponentImpl |
---|
XSDNamedComponentImpl.Comparator, XSDNamedComponentImpl.StringPairComparator, XSDNamedComponentImpl.XSDNamedComponentList<E extends java.lang.Object & XSDNamedComponent> |
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 int |
analysisState
|
protected XSDAnnotation |
annotation
The cached value of the ' Annotation ' containment reference |
protected EList<XSDAnnotation> |
annotations
The cached value of the ' Annotations ' reference list |
protected XSDAnnotation |
derivationAnnotation
The cached value of the ' Derivation Annotation ' containment reference |
Fields inherited from class org.eclipse.xsd.impl.XSDRedefinableComponentImpl |
---|
CIRCULAR_EDEFAULT |
Fields inherited from class org.eclipse.xsd.impl.XSDNamedComponentImpl |
---|
ALIAS_NAME_EDEFAULT, ALIAS_URI_EDEFAULT, name, NAME_EDEFAULT, QNAME_EDEFAULT, TARGET_NAMESPACE_EDEFAULT, targetNamespace, URI_EDEFAULT |
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 |
XSDTypeDefinitionImpl()
|
Method Summary | |
---|---|
protected boolean |
analyze()
|
NotificationChain |
basicSetAnnotation(XSDAnnotation newAnnotation,
NotificationChain msgs)
|
NotificationChain |
basicSetDerivationAnnotation(XSDAnnotation newDerivationAnnotation,
NotificationChain msgs)
|
static XSDTypeDefinition |
createTypeDefinition(org.w3c.dom.Node node)
|
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()
|
EList<XSDAnnotation> |
getAnnotations()
|
XSDTypeDefinition |
getBadTypeDerivation(XSDTypeDefinition xsdTypeDefinition,
boolean extension,
boolean restriction)
Returns the first type between this and the given one, that derives from it's base in a way not permitted as constrained by Type Derivation OK Complex and Simple. |
XSDTypeDefinition |
getBaseType()
Returns the value of the 'Base Type' reference |
XSDParticle |
getComplexType()
|
XSDAnnotation |
getDerivationAnnotation()
|
static XSDTypeDefinition |
getLowestCommonAncestor(java.util.Collection<? extends XSDTypeDefinition> xsdTypeDefinitions)
|
XSDTypeDefinition |
getRootType()
Returns the value of the 'Root Type' reference |
XSDSimpleTypeDefinition |
getSimpleType()
Returns the value of the 'Simple Type' reference |
protected void |
handleAnalysis()
|
boolean |
isCircular()
|
protected void |
patch()
|
void |
setAnnotation(XSDAnnotation newAnnotation)
|
void |
setDerivationAnnotation(XSDAnnotation newDerivationAnnotation)
|
Methods inherited from class org.eclipse.xsd.impl.XSDRedefinableComponentImpl |
---|
getCircular |
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.xsd.XSDNamedComponent |
---|
getAliasName, getAliasURI, getName, getQName, getQName, getTargetNamespace, getURI, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, hasURI, setName, setTargetNamespace |
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 XSDAnnotation annotation
Annotation
' containment reference.
getAnnotation()
protected XSDAnnotation derivationAnnotation
Derivation Annotation
' containment reference.
getDerivationAnnotation()
protected EList<XSDAnnotation> annotations
Annotations
' reference list.
getAnnotations()
protected int analysisState
Constructor Detail |
---|
protected XSDTypeDefinitionImpl()
Method Detail |
---|
public static XSDTypeDefinition createTypeDefinition(org.w3c.dom.Node node)
protected EClass eStaticClass()
eStaticClass
in class XSDRedefinableComponentImpl
public XSDAnnotation getAnnotation()
getAnnotation
in interface XSDTypeDefinition
XSDTypeDefinition.setAnnotation(XSDAnnotation)
,
XSDPackage.getXSDTypeDefinition_Annotation()
public void setAnnotation(XSDAnnotation newAnnotation)
setAnnotation
in interface XSDTypeDefinition
newAnnotation
- the new value of the 'Annotation' containment reference.XSDTypeDefinition.getAnnotation()
public NotificationChain basicSetAnnotation(XSDAnnotation newAnnotation, NotificationChain msgs)
public XSDAnnotation getDerivationAnnotation()
getDerivationAnnotation
in interface XSDTypeDefinition
XSDTypeDefinition.setDerivationAnnotation(XSDAnnotation)
,
XSDPackage.getXSDTypeDefinition_DerivationAnnotation()
public void setDerivationAnnotation(XSDAnnotation newDerivationAnnotation)
setDerivationAnnotation
in interface XSDTypeDefinition
newDerivationAnnotation
- the new value of the 'Derivation Annotation' containment reference.XSDTypeDefinition.getDerivationAnnotation()
public NotificationChain basicSetDerivationAnnotation(XSDAnnotation newDerivationAnnotation, NotificationChain msgs)
public EList<XSDAnnotation> getAnnotations()
getAnnotations
in interface XSDTypeDefinition
XSDPackage.getXSDTypeDefinition_Annotations()
protected void patch()
patch
in class XSDNamedComponentImpl
protected boolean analyze()
analyze
in class XSDConcreteComponentImpl
protected void handleAnalysis()
public static XSDTypeDefinition getLowestCommonAncestor(java.util.Collection<? extends XSDTypeDefinition> xsdTypeDefinitions)
public XSDTypeDefinition getBaseType()
XSDTypeDefinition
This represents the same result as either
the simple 'Base Type Definition
' reference or
the complex 'Base Type Definition
' reference.
getBaseType
in interface XSDTypeDefinition
XSDPackage.getXSDTypeDefinition_BaseType()
public XSDTypeDefinition getRootType()
XSDTypeDefinition
This walks the base types
until it hits that one that has the ur-type definition as it's base type.
getRootType
in interface XSDTypeDefinition
XSDPackage.getXSDTypeDefinition_RootType()
public XSDSimpleTypeDefinition getSimpleType()
XSDTypeDefinition
This represents either
the 'Simple Type Definition
' itself or
the complex 'Content Type
' reference,
if it is simple
.
getSimpleType
in interface XSDTypeDefinition
XSDPackage.getXSDTypeDefinition_SimpleType()
public XSDParticle getComplexType()
getComplexType
in interface XSDTypeDefinition
XSDPackage.getXSDTypeDefinition_ComplexType()
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 XSDRedefinableComponentImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class XSDNamedComponentImpl
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class XSDNamedComponentImpl
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class XSDRedefinableComponentImpl
public boolean isCircular()
XSDRedefinableComponentImpl
isCircular
in interface XSDRedefinableComponent
isCircular
in class XSDRedefinableComponentImpl
XSDPackage.getXSDRedefinableComponent_Circular()
public XSDTypeDefinition getBadTypeDerivation(XSDTypeDefinition xsdTypeDefinition, boolean extension, boolean restriction)
XSDTypeDefinition
null
if the derivation is valid;
the result is the UR-type
,
if this type is not related to the given type;
otherwise, the result is the base with the blocked derivation method.
getBadTypeDerivation
in interface XSDTypeDefinition
|
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 |