|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A representation of the model object 'Type Definition'.
It is used to represent aspects common to
'Simple Type Definitions' and
'Complex Type Definitions'.
The following features are supported:
XSDPackage.getXSDTypeDefinition()| Method Summary | |
XSDAnnotation |
getAnnotation()
Returns the value of the 'Annotation' containment reference |
EList |
getAnnotations()
Returns the value of the 'Annotations' reference list. |
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()
Returns the value of the 'Complex Type' reference |
XSDAnnotation |
getDerivationAnnotation()
Returns the value of the 'Derivation Annotation' containment reference |
XSDTypeDefinition |
getRootType()
Returns the value of the 'Root Type' reference |
XSDSimpleTypeDefinition |
getSimpleType()
Returns the value of the 'Simple Type' reference |
void |
setAnnotation(XSDAnnotation value)
Sets the value of the ' Annotation' containment reference |
void |
setDerivationAnnotation(XSDAnnotation value)
Sets the value of the ' Derivation Annotation' containment reference |
| Methods inherited from interface org.eclipse.xsd.XSDRedefinableComponent |
isCircular |
| 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 |
| Method Detail |
public XSDAnnotation getAnnotation()
This concrete reference represents the direct annotation content of a complexType element or a simpleType element.
setAnnotation(XSDAnnotation),
XSDPackage.getXSDTypeDefinition_Annotation()public void setAnnotation(XSDAnnotation value)
Annotation' containment reference.
value - the new value of the 'Annotation' containment reference.getAnnotation()public XSDAnnotation getDerivationAnnotation()
This concrete reference represents the direct annotation content of a complex content extension, complex content restriction, simple content extension, simple content restriction, simple type restriction, simple type list, or simple type union element.
setDerivationAnnotation(XSDAnnotation),
XSDPackage.getXSDTypeDefinition_DerivationAnnotation()public void setDerivationAnnotation(XSDAnnotation value)
Derivation Annotation' containment reference.
value - the new value of the 'Derivation Annotation' containment reference.getDerivationAnnotation()public EList getAnnotations()
XSDAnnotation.
This represents the
complex type definition annotation or
simple type definition annotation
infoset property.
It is computed from the
annotation,
content annotation,
derivationAnnotation
and should typically not be modified directly.
XSDPackage.getXSDTypeDefinition_Annotations()public XSDTypeDefinition getRootType()
This walks the base types
until it hits that one that has the ur-type definition as it's base type.
XSDPackage.getXSDTypeDefinition_RootType()public XSDTypeDefinition getBaseType()
This represents the same result as either
the simple 'Base Type Definition' reference or
the complex 'Base Type Definition' reference.
XSDPackage.getXSDTypeDefinition_BaseType()public XSDSimpleTypeDefinition getSimpleType()
This represents either
the 'Simple Type Definition' itself or
the complex 'Content Type' reference,
if it is simple.
XSDPackage.getXSDTypeDefinition_SimpleType()public XSDParticle getComplexType()
This represents
the complex 'Content Type' reference,
if it is complex,
i.e., if it is a 'Particle'.
XSDPackage.getXSDTypeDefinition_ComplexType()
public XSDTypeDefinition getBadTypeDerivation(XSDTypeDefinition xsdTypeDefinition,
boolean extension,
boolean restriction)
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.
|
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 | ||||||||||