public class JBossXSSimpleTypeDefinition extends JBossXSTypeDefinition implements XSSimpleTypeDefinition
anonymous, baseType, isFinal
name, namespace
FACET_ENUMERATION, FACET_FRACTIONDIGITS, FACET_LENGTH, FACET_MAXEXCLUSIVE, FACET_MAXINCLUSIVE, FACET_MAXLENGTH, FACET_MINEXCLUSIVE, FACET_MININCLUSIVE, FACET_MINLENGTH, FACET_NONE, FACET_PATTERN, FACET_TOTALDIGITS, FACET_WHITESPACE, ORDERED_FALSE, ORDERED_PARTIAL, ORDERED_TOTAL, VARIETY_ABSENT, VARIETY_ATOMIC, VARIETY_LIST, VARIETY_UNION
COMPLEX_TYPE, SIMPLE_TYPE
Constructor and Description |
---|
JBossXSSimpleTypeDefinition() |
JBossXSSimpleTypeDefinition(XSSimpleTypeDefinition xs) |
Modifier and Type | Method and Description |
---|---|
void |
addLexicalEnumeration(String enumeration) |
XSObjectList |
getAnnotations()
A sequence of [annotations] or an empty
XSObjectList . |
boolean |
getBounded()
Fundamental Facet: bounded.
|
short |
getBuiltInKind()
Returns the closest built-in type category this type represents or
derived from.
|
short |
getDefinedFacets()
[facets]: all facets defined on this type.
|
XSObjectList |
getFacets()
A list of constraining facets if it exists, otherwise an empty
XSObjectList . |
boolean |
getFinite()
Fundamental Facet: cardinality.
|
short |
getFixedFacets()
[facets]: all defined facets for this type which are fixed.
|
XSSimpleTypeDefinition |
getItemType()
If variety is
list the item type definition (an atomic or
union simple type definition) is available, otherwise
null . |
StringList |
getLexicalEnumeration()
A list of enumeration values if it exists, otherwise an empty
StringList . |
String |
getLexicalFacetValue(short arg0)
Convenience method.
|
StringList |
getLexicalPattern()
A list of pattern values if it exists, otherwise an empty
StringList . |
XSObjectList |
getMemberTypes()
If variety is
union the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise an empty XSObjectList . |
XSObjectList |
getMultiValueFacets()
A list of enumeration and pattern constraining facets if it exists,
otherwise an empty
XSObjectList . |
String |
getName()
The name of type
NCName , as defined in XML Namespaces, of
this declaration specified in the {name} property of the
component or null if the definition of this component
does not have a {name} property. |
String |
getNamespace()
The [target namespace] of this object, or
null if it is
unspecified. |
boolean |
getNumeric()
Fundamental Facet: numeric.
|
short |
getOrdered()
Fundamental Facet: ordered.
|
XSSimpleTypeDefinition |
getPrimitiveType()
If variety is
atomic the primitive type definition (a
built-in primitive datatype definition or the simple ur-type
definition) is available, otherwise null . |
short |
getType()
Get the type
|
short |
getTypeCategory()
Return whether this type definition is a simple type or complex type.
|
short |
getVariety()
[variety]: one of {atomic, list, union} or absent.
|
boolean |
isDefinedFacet(short arg0)
Convenience method.
|
boolean |
isFixedFacet(short arg0)
Convenience method.
|
derivedFrom, derivedFromType, getAnonymous, getBaseType, getFinal, isFinal, setAnonymous, setBaseType, setFinal
equals, getNamespaceItem, hashCode, setName, setNamespace, setNamespaceItem, setType
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
derivedFrom, derivedFromType, getAnonymous, getBaseType, getFinal, isFinal
getNamespaceItem
public JBossXSSimpleTypeDefinition()
public JBossXSSimpleTypeDefinition(XSSimpleTypeDefinition xs)
public short getVariety()
XSSimpleTypeDefinition
getVariety
in interface XSSimpleTypeDefinition
public XSSimpleTypeDefinition getPrimitiveType()
XSSimpleTypeDefinition
atomic
the primitive type definition (a
built-in primitive datatype definition or the simple ur-type
definition) is available, otherwise null
.getPrimitiveType
in interface XSSimpleTypeDefinition
public short getBuiltInKind()
XSSimpleTypeDefinition
INTEGER_DV
is returned.getBuiltInKind
in interface XSSimpleTypeDefinition
public XSSimpleTypeDefinition getItemType()
XSSimpleTypeDefinition
list
the item type definition (an atomic or
union simple type definition) is available, otherwise
null
.getItemType
in interface XSSimpleTypeDefinition
public XSObjectList getMemberTypes()
XSSimpleTypeDefinition
union
the list of member type definitions (a
non-empty sequence of simple type definitions) is available,
otherwise an empty XSObjectList
.getMemberTypes
in interface XSSimpleTypeDefinition
public short getDefinedFacets()
XSSimpleTypeDefinition
getDefinedFacets
in interface XSSimpleTypeDefinition
public boolean isDefinedFacet(short arg0)
XSSimpleTypeDefinition
isDefinedFacet
in interface XSSimpleTypeDefinition
arg0
- The name of the facet.public short getFixedFacets()
XSSimpleTypeDefinition
getFixedFacets
in interface XSSimpleTypeDefinition
public boolean isFixedFacet(short arg0)
XSSimpleTypeDefinition
isFixedFacet
in interface XSSimpleTypeDefinition
arg0
- The name of the facet.public String getLexicalFacetValue(short arg0)
XSSimpleTypeDefinition
enumeration
and pattern
facets.getLexicalFacetValue
in interface XSSimpleTypeDefinition
arg0
- The name of the facet, i.e.
FACET_LENGTH, FACET_TOTALDIGITS
.
To retrieve the value for a pattern or
an enumeration, see enumeration
and
pattern
.facetName
for
this simple type definition or null
.public StringList getLexicalEnumeration()
XSSimpleTypeDefinition
StringList
.getLexicalEnumeration
in interface XSSimpleTypeDefinition
public void addLexicalEnumeration(String enumeration)
public StringList getLexicalPattern()
XSSimpleTypeDefinition
StringList
.getLexicalPattern
in interface XSSimpleTypeDefinition
public short getOrdered()
XSSimpleTypeDefinition
getOrdered
in interface XSSimpleTypeDefinition
public boolean getFinite()
XSSimpleTypeDefinition
getFinite
in interface XSSimpleTypeDefinition
public boolean getBounded()
XSSimpleTypeDefinition
getBounded
in interface XSSimpleTypeDefinition
public boolean getNumeric()
XSSimpleTypeDefinition
getNumeric
in interface XSSimpleTypeDefinition
public XSObjectList getFacets()
XSSimpleTypeDefinition
XSObjectList
. Note: This method must not be used to
retrieve values for enumeration
and pattern
facets.getFacets
in interface XSSimpleTypeDefinition
public XSObjectList getMultiValueFacets()
XSSimpleTypeDefinition
XSObjectList
.getMultiValueFacets
in interface XSSimpleTypeDefinition
public XSObjectList getAnnotations()
XSSimpleTypeDefinition
XSObjectList
.getAnnotations
in interface XSSimpleTypeDefinition
public short getType()
getType
in interface XSObject
getType
in class JBossXSObject
public short getTypeCategory()
getTypeCategory
in interface XSTypeDefinition
getTypeCategory
in class JBossXSTypeDefinition
public String getName()
JBossXSObject
NCName
, as defined in XML Namespaces, of
this declaration specified in the {name}
property of the
component or null
if the definition of this component
does not have a {name}
property. For anonymous types,
the processor must construct and expose an anonymous type name that
is distinct from the name of every named type and the name of every
other anonymous type.getName
in interface XSObject
getName
in class JBossXSObject
public String getNamespace()
JBossXSObject
null
if it is
unspecified.getNamespace
in interface XSObject
getNamespace
in class JBossXSObject
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.