|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.type.Facet
Represents the base type for XML Schema Facets
Field Summary | |
static java.lang.String |
ENUMERATION
|
static java.lang.String |
FRACTIONDIGITS
|
static java.lang.String |
LENGTH
|
static java.lang.String |
MAX_EXCLUSIVE
|
static java.lang.String |
MAX_INCLUSIVE
|
static java.lang.String |
MAX_LENGTH
|
static java.lang.String |
MIN_EXCLUSIVE
|
static java.lang.String |
MIN_INCLUSIVE
|
static java.lang.String |
MIN_LENGTH
|
static java.lang.String |
PATTERN
|
static java.lang.String |
TOTALDIGITS
|
static java.lang.String |
WHITESPACE
|
Constructor Summary | |
protected |
Facet()
|
Method Summary | |
void |
checkFacetRestriction(SimpleType base)
Check that this facet is legal when used on a type derived by restriction |
java.lang.String |
getName()
Returns the name of this Facet |
java.lang.String |
getValue()
Returns the character (String) representation of this facet |
boolean |
isMultivalued()
Returns true if this Facet can occur more than once, such as the "enumeration" facet. |
static Facet |
makeFacet(java.lang.String name,
java.lang.String value)
Factory method: creates a new Facet with the given name |
boolean |
testAtomicValue(AtomicValue value)
Test whether an atomic value conforms to this facet |
byte |
toByte()
Returns a byte representation of the value of this facet |
double |
toDouble()
Returns a double representation of the value of this facet |
float |
toFloat()
Returns a double representation of the value of this facet |
long |
toLong()
Returns a long representation of the value of this facet |
short |
toShort()
Returns an short representation of the value of this facet |
boolean |
validate(javax.xml.transform.ErrorListener errorListener)
Checks the validity of this Schema defintion. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ENUMERATION
public static final java.lang.String LENGTH
public static final java.lang.String PATTERN
public static final java.lang.String MAX_EXCLUSIVE
public static final java.lang.String MAX_INCLUSIVE
public static final java.lang.String MIN_EXCLUSIVE
public static final java.lang.String MIN_INCLUSIVE
public static final java.lang.String MAX_LENGTH
public static final java.lang.String MIN_LENGTH
public static final java.lang.String WHITESPACE
public static final java.lang.String TOTALDIGITS
public static final java.lang.String FRACTIONDIGITS
Constructor Detail |
protected Facet()
Method Detail |
public static Facet makeFacet(java.lang.String name, java.lang.String value) throws SchemaException
name
- the name of the Facetvalue
- the value of the Facet
SchemaException
public java.lang.String getName()
public java.lang.String getValue()
public boolean isMultivalued()
public long toLong() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public short toShort() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public float toFloat() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public double toDouble() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public byte toByte() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public void checkFacetRestriction(SimpleType base) throws SchemaException
base
- the type from which the restricted type is derived
SchemaException
- if the facet is not legalpublic boolean validate(javax.xml.transform.ErrorListener errorListener) throws SchemaException
SchemaException
- when this Schema definition
is invalid.public boolean testAtomicValue(AtomicValue value)
value
- the value to be tested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |