public class FacetImpl extends java.lang.Object implements Facet
Facet.Type
ENUMERATION, FRACTION_DIGITS, LENGTH, MAX_EXCLUSIVE, MAX_INCLUSIVE, MAX_LENGTH, MIN_EXCLUSIVE, MIN_INCLUSIVE, MIN_LENGTH, PATTERN, TOTAL_DIGITS
Constructor and Description |
---|
FacetImpl(XSType pType,
XSEnumeration[] pEnumerations)
Creates a new enumeration facet.
|
Modifier and Type | Method and Description |
---|---|
long |
getNumValue()
If the facet has the types
Facet.FRACTION_DIGITS or Facet.TOTAL_DIGITS :
Returns the facet value. |
Facet.Type |
getType()
Returns the facet type.
|
java.lang.String |
getValue()
If the facet has the types
Facet.MAX_EXCLUSIVE , Facet.MIN_EXCLUSIVE ,
Facet.MAX_INCLUSIVE , or Facet.MIN_INCLUSIVE : Returns the facet value. |
java.lang.String[] |
getValues()
If the facet has the types
Facet.ENUMERATION or Facet.PATTERN :
Used to fetch the possible values. |
public FacetImpl(XSType pType, XSEnumeration[] pEnumerations)
Creates a new enumeration facet.
public Facet.Type getType()
Facet
Returns the facet type.
public java.lang.String[] getValues()
Facet
If the facet has the types Facet.ENUMERATION
or Facet.PATTERN
:
Used to fetch the possible values.
public java.lang.String getValue()
Facet
If the facet has the types Facet.MAX_EXCLUSIVE
, Facet.MIN_EXCLUSIVE
,
Facet.MAX_INCLUSIVE
, or Facet.MIN_INCLUSIVE
: Returns the facet value.
public long getNumValue()
Facet
If the facet has the types Facet.FRACTION_DIGITS
or Facet.TOTAL_DIGITS
:
Returns the facet value.
getNumValue
in interface Facet