|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XSDTypeDefinition
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<XSDAnnotation> |
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 |
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 |
---|
XSDAnnotation getAnnotation()
This concrete reference represents the direct annotation content of a complexType element or a simpleType element.
setAnnotation(XSDAnnotation)
,
XSDPackage.getXSDTypeDefinition_Annotation()
void setAnnotation(XSDAnnotation value)
Annotation
' containment reference.
value
- the new value of the 'Annotation' containment reference.getAnnotation()
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()
void setDerivationAnnotation(XSDAnnotation value)
Derivation Annotation
' containment reference.
value
- the new value of the 'Derivation Annotation' containment reference.getDerivationAnnotation()
EList<XSDAnnotation> 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()
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()
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()
XSDSimpleTypeDefinition getSimpleType()
This represents either
the 'Simple Type Definition
' itself or
the complex 'Content Type
' reference,
if it is simple
.
XSDPackage.getXSDTypeDefinition_SimpleType()
XSDParticle getComplexType()
This represents
the complex 'Content Type
' reference,
if it is complex
,
i.e., if it is a 'Particle
'.
XSDPackage.getXSDTypeDefinition_ComplexType()
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 |