|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object
'Simple Type Definition'.
For the methods named getEffectiveXyzFacet,
effective means that the value of the property
is computed based on the direct facets of this type, or,
if the facet is not present,
is computed recursively from the base type
.
The following features are supported:
Variety
Final
Lexical Final
Valid Facets
Contents
Facet Contents
Facets
Member Type Definitions
Fundamental Facets
Base Type Definition
Primitive Type Definition
Item Type Definition
Root Type Definition
Min Facet
Max Facet
Max Inclusive Facet
Min Inclusive Facet
Min Exclusive Facet
Max Exclusive Facet
Length Facet
White Space Facet
Enumeration Facets
Pattern Facets
Cardinality Facet
Numeric Facet
Max Length Facet
Min Length Facet
Total Digits Facet
Fraction Digits Facet
Ordered Facet
Bounded Facet
Effective Max Facet
Effective White Space Facet
Effective Max Length Facet
Effective Fraction Digits Facet
Effective Pattern Facet
Effective Enumeration Facet
Effective Total Digits Facet
Effective Min Length Facet
Effective Length Facet
Effective Min Facet
Synthetic Facets
XSDPackage.getXSDSimpleTypeDefinition()
Nested Class Summary | |
static interface |
XSDSimpleTypeDefinition.Assessment
Information gathered during the assessment a literal with respect to a ' Simple Type Definition '.
|
Method Summary | |
XSDSimpleTypeDefinition.Assessment |
assess(Node node)
Returns an assessment of the node. |
XSDSimpleTypeDefinition.Assessment |
assess(String literal)
Returns an assessment of the literal. |
int |
compareLiterals(String literal1,
String literal2)
Returns -1 , 0 , or 1 ,
depending on the order of the value of each of the given literals. |
int |
compareValues(Object value1,
Object value2)
Returns -1 , 0 , or 1 ,
depending on the order of the value s. |
boolean |
equalLiterals(String literal1,
String literal2)
Returns whether the value of each of the given literals are equal. |
boolean |
equalValues(Object value1,
Object value2)
Returns whether the value s are equal. |
XSDSimpleTypeDefinition |
getBaseTypeDefinition()
Returns the value of the 'Base Type Definition' reference |
XSDBoundedFacet |
getBoundedFacet()
Returns the value of the 'Bounded Facet' reference |
String |
getCanonicalLiteral(String literal)
Returns the canonical literal of the literal with respect to this simple type definition. |
XSDCardinalityFacet |
getCardinalityFacet()
Returns the value of the 'Cardinality Facet' reference |
EList |
getContents()
Returns the value of the 'Contents' containment reference list. |
XSDEnumerationFacet |
getEffectiveEnumerationFacet()
Returns the value of the 'Effective Enumeration Facet' reference |
XSDFractionDigitsFacet |
getEffectiveFractionDigitsFacet()
Returns the value of the 'Effective Fraction Digits Facet' reference |
XSDLengthFacet |
getEffectiveLengthFacet()
Returns the value of the 'Effective Length Facet' reference |
XSDMaxFacet |
getEffectiveMaxFacet()
Returns the value of the 'Effective Max Facet' reference |
XSDMaxLengthFacet |
getEffectiveMaxLengthFacet()
Returns the value of the 'Effective Max Length Facet' reference |
XSDMinFacet |
getEffectiveMinFacet()
Returns the value of the 'Effective Min Facet' reference |
XSDMinLengthFacet |
getEffectiveMinLengthFacet()
Returns the value of the 'Effective Min Length Facet' reference |
XSDPatternFacet |
getEffectivePatternFacet()
Returns the value of the 'Effective Pattern Facet' reference |
XSDTotalDigitsFacet |
getEffectiveTotalDigitsFacet()
Returns the value of the 'Effective Total Digits Facet' reference |
XSDWhiteSpaceFacet |
getEffectiveWhiteSpaceFacet()
Returns the value of the 'Effective White Space Facet' reference |
EList |
getEnumerationFacets()
Returns the value of the 'Enumeration Facets' reference list. |
EList |
getFacetContents()
Returns the value of the 'Facet Contents' containment reference list. |
EList |
getFacets()
Returns the value of the 'Facets' reference list. |
EList |
getFinal()
Returns the value of the 'Final' attribute list. |
XSDFractionDigitsFacet |
getFractionDigitsFacet()
Returns the value of the 'Fraction Digits Facet' reference |
EList |
getFundamentalFacets()
Returns the value of the 'Fundamental Facets' containment reference list. |
XSDSimpleTypeDefinition |
getItemTypeDefinition()
Returns the value of the 'Item Type Definition' reference |
XSDLengthFacet |
getLengthFacet()
Returns the value of the 'Length Facet' reference |
EList |
getLexicalFinal()
Returns the value of the 'Lexical Final' attribute list. |
XSDMaxExclusiveFacet |
getMaxExclusiveFacet()
Returns the value of the 'Max Exclusive Facet' reference |
XSDMaxFacet |
getMaxFacet()
Returns the value of the 'Max Facet' reference |
XSDMaxInclusiveFacet |
getMaxInclusiveFacet()
Returns the value of the 'Max Inclusive Facet' reference |
XSDMaxLengthFacet |
getMaxLengthFacet()
Returns the value of the 'Max Length Facet' reference |
EList |
getMemberTypeDefinitions()
Returns the value of the 'Member Type Definitions' reference list. |
XSDMinExclusiveFacet |
getMinExclusiveFacet()
Returns the value of the 'Min Exclusive Facet' reference |
XSDMinFacet |
getMinFacet()
Returns the value of the 'Min Facet' reference |
XSDMinInclusiveFacet |
getMinInclusiveFacet()
Returns the value of the 'Min Inclusive Facet' reference |
XSDMinLengthFacet |
getMinLengthFacet()
Returns the value of the 'Min Length Facet' reference |
String |
getNormalizedLiteral(String literal)
Returns the normalized value of the literal with respect to this simple type definition. |
XSDNumericFacet |
getNumericFacet()
Returns the value of the 'Numeric Facet' reference |
XSDOrderedFacet |
getOrderedFacet()
Returns the value of the 'Ordered Facet' reference |
EList |
getPatternFacets()
Returns the value of the 'Pattern Facets' reference list. |
XSDSimpleTypeDefinition |
getPrimitiveTypeDefinition()
Returns the value of the 'Primitive Type Definition' reference |
XSDSimpleTypeDefinition |
getRootTypeDefinition()
Returns the value of the 'Root Type Definition' reference |
String |
getStringFinal()
Returns the String value of the ' Final ' attribute list |
String |
getStringLexicalFinal()
Returns the String value of the ' Lexical Final ' attribute list |
EList |
getSyntheticFacets()
Returns the value of the 'Synthetic Facets' containment reference list. |
XSDTotalDigitsFacet |
getTotalDigitsFacet()
Returns the value of the 'Total Digits Facet' reference |
EList |
getValidFacets()
Returns the value of the 'Valid Facets' attribute list. |
Object |
getValue(String literal)
Returns the value of the literal in the value space of this simple type definition. |
XSDVariety |
getVariety()
Returns the value of the 'Variety' attribute. |
XSDWhiteSpaceFacet |
getWhiteSpaceFacet()
Returns the value of the 'White Space Facet' reference |
boolean |
isSetLexicalFinal()
Returns whether the value of the ' Lexical Final ' attribute list is set |
boolean |
isSetVariety()
Returns whether the value of the ' Variety ' attribute is set |
boolean |
isValidLiteral(String literal)
Returns whether the literal is valid with respect to this simple type definition. |
void |
setBaseTypeDefinition(XSDSimpleTypeDefinition value)
Sets the value of the ' Base Type Definition ' reference |
void |
setItemTypeDefinition(XSDSimpleTypeDefinition value)
Sets the value of the ' Item Type Definition ' reference |
void |
setPrimitiveTypeDefinition(XSDSimpleTypeDefinition value)
Sets the value of the ' Primitive Type Definition ' reference |
void |
setStringLexicalFinal(String lexicalFinal)
Sets the String value of the ' Lexical Final ' attribute |
void |
setVariety(XSDVariety value)
Sets the value of the ' Variety ' attribute |
void |
unsetLexicalFinal()
Unsets the value of the ' Lexical Final ' attribute list |
void |
unsetVariety()
Unsets the value of the ' Variety ' attribute |
Methods inherited from interface org.eclipse.xsd.XSDTypeDefinition |
getAnnotation, getAnnotations, getBadTypeDerivation, getBaseType, getComplexType, getDerivationAnnotation, getRootType, getSimpleType, setAnnotation, setDerivationAnnotation |
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 XSDVariety getVariety()
XSDVariety
.
This represents the
variety
infoset property.
It is computed based on the presence or absence of
an item type
or of member types
,
and should not be set directly.
XSDVariety
,
isSetVariety()
,
unsetVariety()
,
setVariety(XSDVariety)
,
XSDPackage.getXSDSimpleTypeDefinition_Variety()
public void setVariety(XSDVariety value)
Variety
' attribute.
value
- the new value of the 'Variety' attribute.XSDVariety
,
isSetVariety()
,
unsetVariety()
,
getVariety()
public void unsetVariety()
Variety
' attribute.
isSetVariety()
,
getVariety()
,
setVariety(XSDVariety)
public boolean isSetVariety()
Variety
' attribute is set.
unsetVariety()
,
getVariety()
,
setVariety(XSDVariety)
public EList getFinal()
XSDSimpleFinal
.
The literals are from the enumeration XSDSimpleFinal
.
This represents the
final
infoset property.
It is computed from the lexical final
and should not typically be modified directly.
getStringFinal()
,
XSDSimpleFinal
,
XSDPackage.getXSDSimpleTypeDefinition_Final()
public String getStringFinal()
Final
' attribute list.
getFinal()
public EList getLexicalFinal()
XSDSimpleFinal
.
The literals are from the enumeration XSDSimpleFinal
.
This concrete attribute list represents the value of the final attribute.
getStringLexicalFinal()
,
XSDSimpleFinal
,
isSetLexicalFinal()
,
unsetLexicalFinal()
,
XSDPackage.getXSDSimpleTypeDefinition_LexicalFinal()
public void unsetLexicalFinal()
Lexical Final
' attribute list.
isSetLexicalFinal()
,
getLexicalFinal()
public boolean isSetLexicalFinal()
Lexical Final
' attribute list is set.
unsetLexicalFinal()
,
getLexicalFinal()
public String getStringLexicalFinal()
Lexical Final
' attribute list.
getLexicalFinal()
,
setStringLexicalFinal(java.lang.String)
public void setStringLexicalFinal(String lexicalFinal)
Lexical Final
' attribute.
lexicalFinal
- the new value of the 'Lexical Final' attribute.getLexicalFinal()
,
getStringLexicalFinal()
public EList getValidFacets()
String
.
This computed attribute list represents the
facet name
of each type of facet that is valid for this simple type definition.
XSDPackage.getXSDSimpleTypeDefinition_ValidFacets()
public EList getContents()
XSDSimpleTypeDefinition
.
This concrete reference list represents the anonymous simple type definition content of a restriction, list, or union element.
XSDPackage.getXSDSimpleTypeDefinition_Contents()
public EList getFacetContents()
XSDConstrainingFacet
.
This concrete reference list represents the facet contents of a restriction. There are convenience methods named getXyzFacet that provide direct access to the individual facets. There are, however, no methods named setXyzFacet; one should add facets to this list or remove facets from this list in order to effect change.
XSDPackage.getXSDSimpleTypeDefinition_FacetContents()
public EList getFacets()
XSDConstrainingFacet
.
This represents the
facets
infoset property.
It is computed from the facet contents
and should typically not be modified directly.
XSDPackage.getXSDSimpleTypeDefinition_Facets()
public EList getMemberTypeDefinitions()
XSDSimpleTypeDefinition
.
This represents the member type definitions infoset property. When constructing a union type, each anonymous member type should be added to both this list and to the contents list:
xsdSimpleTypeDefinition.getMemberTypeDefinitions().add(anonymousMemberType); xsdSimpleTypeDefinition.getContents()
().add(anonymousMemberType); Thevariety
is determined automatically by the presence of member type definitions.
XSDPackage.getXSDSimpleTypeDefinition_MemberTypeDefinitions()
public EList getFundamentalFacets()
XSDFundamentalFacet
.
This represents the fundamental facets infoset property. It is computed and should typically not be modified directly.
XSDPackage.getXSDSimpleTypeDefinition_FundamentalFacets()
public XSDSimpleTypeDefinition getBaseTypeDefinition()
This represents the base type definition infoset property.
setBaseTypeDefinition(XSDSimpleTypeDefinition)
,
XSDPackage.getXSDSimpleTypeDefinition_BaseTypeDefinition()
public void setBaseTypeDefinition(XSDSimpleTypeDefinition value)
Base Type Definition
' reference.
value
- the new value of the 'Base Type Definition' reference.getBaseTypeDefinition()
public XSDSimpleTypeDefinition getPrimitiveTypeDefinition()
This represents the primitive type definition infoset property.
setPrimitiveTypeDefinition(XSDSimpleTypeDefinition)
,
XSDPackage.getXSDSimpleTypeDefinition_PrimitiveTypeDefinition()
public void setPrimitiveTypeDefinition(XSDSimpleTypeDefinition value)
Primitive Type Definition
' reference.
value
- the new value of the 'Primitive Type Definition' reference.getPrimitiveTypeDefinition()
public XSDSimpleTypeDefinition getItemTypeDefinition()
This represents the item type definition infoset property. When constructing a list type, an anonymous item type should be both set using this method and added to the contents list:
xsdSimpleTypeDefinition.setItemTypeDefinition().add(itemType);
xsdSimpleTypeDefinition.getContents()
().add(itemType);
The variety
is determined automatically by the presence of an item type definition.
setItemTypeDefinition(XSDSimpleTypeDefinition)
,
XSDPackage.getXSDSimpleTypeDefinition_ItemTypeDefinition()
public void setItemTypeDefinition(XSDSimpleTypeDefinition value)
Item Type Definition
' reference.
value
- the new value of the 'Item Type Definition' reference.getItemTypeDefinition()
public XSDSimpleTypeDefinition getRootTypeDefinition()
This walks the base type definitions
until it hits that one that has the ur-type definition as it's base type definition.
XSDPackage.getXSDSimpleTypeDefinition_RootTypeDefinition()
public XSDMinFacet getMinFacet()
This represents the XSDMinFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_MinFacet()
public XSDMaxFacet getMaxFacet()
This represents the XSDMaxFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_MaxFacet()
public XSDMaxInclusiveFacet getMaxInclusiveFacet()
This represents the XSDMaxInclusiveFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_MaxInclusiveFacet()
public XSDMinInclusiveFacet getMinInclusiveFacet()
This represents the XSDMinInclusiveFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_MinInclusiveFacet()
public XSDMinExclusiveFacet getMinExclusiveFacet()
This represents the XSDMinExclusiveFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_MinExclusiveFacet()
public XSDMaxExclusiveFacet getMaxExclusiveFacet()
This represents the XSDMaxExclusiveFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_MaxExclusiveFacet()
public XSDLengthFacet getLengthFacet()
This represents the XSDLengthFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_LengthFacet()
public XSDWhiteSpaceFacet getWhiteSpaceFacet()
This represents the XSDWhiteSpaceFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_WhiteSpaceFacet()
public EList getEnumerationFacets()
XSDEnumerationFacet
.
This represents the XSDEnumerationFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_EnumerationFacets()
public EList getPatternFacets()
XSDPatternFacet
.
This represents the XSDPatternFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_PatternFacets()
public XSDCardinalityFacet getCardinalityFacet()
This represents the XSDCardinalityFacet
of the fundamental facets
.
XSDPackage.getXSDSimpleTypeDefinition_CardinalityFacet()
public XSDNumericFacet getNumericFacet()
This represents the XSDNumericFacet
of the fundamental facets
.
XSDPackage.getXSDSimpleTypeDefinition_NumericFacet()
public XSDMaxLengthFacet getMaxLengthFacet()
This represents the XSDMaxLengthFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_MaxLengthFacet()
public XSDMinLengthFacet getMinLengthFacet()
This represents the XSDMinLengthFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_MinLengthFacet()
public XSDTotalDigitsFacet getTotalDigitsFacet()
This represents the XSDTotalDigitsFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_TotalDigitsFacet()
public XSDFractionDigitsFacet getFractionDigitsFacet()
This represents the XSDFractionDigitsFacet
of the facet contents
.
XSDPackage.getXSDSimpleTypeDefinition_FractionDigitsFacet()
public XSDOrderedFacet getOrderedFacet()
This represents the XSDOrderedFacet
of the fundamental facets
.
XSDPackage.getXSDSimpleTypeDefinition_OrderedFacet()
public XSDBoundedFacet getBoundedFacet()
This represents the XSDBoundedFacet
of the fundamental facets
.
XSDPackage.getXSDSimpleTypeDefinition_BoundedFacet()
public XSDMaxFacet getEffectiveMaxFacet()
This represents the XSDMaxFacet
of the facets
.
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMaxFacet()
public XSDWhiteSpaceFacet getEffectiveWhiteSpaceFacet()
This represents the XSDWhiteSpaceFacet
of the facets
.
XSDPackage.getXSDSimpleTypeDefinition_EffectiveWhiteSpaceFacet()
public XSDMaxLengthFacet getEffectiveMaxLengthFacet()
This represents the XSDMaxLengthFacet
of the facets
.
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMaxLengthFacet()
public XSDFractionDigitsFacet getEffectiveFractionDigitsFacet()
This represents the XSDFractionDigitsFacet
of the facets
.
XSDPackage.getXSDSimpleTypeDefinition_EffectiveFractionDigitsFacet()
public XSDPatternFacet getEffectivePatternFacet()
This represents the XSDPatternFacet
of the facets
.
To iterate through each pattern that applies for this type,
use the list returned by getEffectivePatternFacet().getValue
().
XSDPackage.getXSDSimpleTypeDefinition_EffectivePatternFacet()
public XSDEnumerationFacet getEffectiveEnumerationFacet()
This represents the XSDEnumerationFacet
of the facets
.
To iterate through each enumerator which is a legal value of this type,
use the list returned by getEffectiveEnumerationFacet().getValue
().
XSDPackage.getXSDSimpleTypeDefinition_EffectiveEnumerationFacet()
public XSDTotalDigitsFacet getEffectiveTotalDigitsFacet()
This represents the XSDTotalDigitsFacet
of the facets
.
XSDPackage.getXSDSimpleTypeDefinition_EffectiveTotalDigitsFacet()
public XSDMinLengthFacet getEffectiveMinLengthFacet()
This represents the XSDMinLengthFacet
of the facets
.
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMinLengthFacet()
public XSDLengthFacet getEffectiveLengthFacet()
This represents the XSDLengthFacet
of the facets
.
XSDPackage.getXSDSimpleTypeDefinition_EffectiveLengthFacet()
public XSDMinFacet getEffectiveMinFacet()
This represents the XSDMinLengthFacet
of the facets
.
XSDPackage.getXSDSimpleTypeDefinition_EffectiveMinFacet()
public EList getSyntheticFacets()
XSDFacet
.
This represents the facets infoset property, if the rules require a synthesized facet.
XSDPackage.getXSDSimpleTypeDefinition_SyntheticFacets()
public XSDSimpleTypeDefinition.Assessment assess(Node node)
assess(java.lang.String)
public XSDSimpleTypeDefinition.Assessment assess(String literal)
assess(org.w3c.dom.Node)
public boolean isValidLiteral(String literal)
assess
ing that the literal has no diagnostics.
literal
- a literal.
public Object getValue(String literal)
Built-in Primitive Datatype | Corresponding Java Type |
---|---|
anyListType | java.util.List |
anyURI | java.lang.String |
base64Binary | org.eclipse.xsd.util.XSDUtil.ByteSequence | boolean | java.lang.Boolean | dateTime | int [] | date | int [] | decimal | java.math.BigDecimal | double | java.lang.Double | duration | int [] | float | java.lang.Float | gDay | int [] | gMonth | int [] | gMonthDay | int [] | gYear | int [] | gYearMonth | int [] | hexBinary | org.eclipse.xsd.util.XSDUtil.ByteSequence | NOTATION | java.lang.String | QName | java.lang.String | string | java.lang.String | time | int [] |
All time-based values are represented as in Xerces.
literal
- a literal.
public String getNormalizedLiteral(String literal)
literal
- a literal.
public String getCanonicalLiteral(String literal)
literal
- a literal.
public int compareLiterals(String literal1, String literal2)
-1
, 0
, or 1
,
depending on the order
of the value
of each of the given literals.
literal1
- a literal.literal2
- another literal.
-1
, 0
, or 1
, depending on the order of the value of each of the given literals.public int compareValues(Object value1, Object value2)
-1
, 0
, or 1
,
depending on the order
of the value
s.
value1
- a value.value2
- another value.
-1
, 0
, or 1
, depending on the order of the values.public boolean equalLiterals(String literal1, String literal2)
value
of each of the given literals are equal.
literal1
- a literal.literal2
- another literal.
value
of each of the given literals are equal.public boolean equalValues(Object value1, Object value2)
value
s are equal.
value1
- a literal.value2
- another literal.
value
s are equal.
|
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 |