|
||||||||||
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 an XML Schema Facet. Most facets are represented by subclasses of this class, the only exception is whiteSpace.
Field Summary | |
static int |
COLLAPSE
|
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 int |
PRESERVE
The values PRESERVE, REPLACE, and COLLAPSE represent the three options for whitespace normalization. |
static int |
REPLACE
|
static java.lang.String |
TOTALDIGITS
|
protected java.lang.String |
value
The value of this facet as a string |
static java.lang.String |
WHITESPACE
|
Constructor Summary | |
Facet()
|
Method Summary | |
boolean |
appliesToWholeList()
Test whether this is a facet that can be used to test the normalized value of a list type. |
void |
checkFacetRestriction(SimpleType type,
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 |
int |
getWhitespaceAction()
Get the whitespace action required by this facet: one of PRESERVE, REPLACE, or COLLAPSE. |
boolean |
isFixed()
Test if the facet is defined in the schema with fixed="true" |
void |
setFixed(boolean fixed)
Set whether the facet is defined as fixed |
boolean |
testAtomicValue(AtomicValue value)
Test whether an atomic value conforms to this facet |
boolean |
testLength(int count)
Test whether the length of a list conforms to this facet. |
long |
toLong()
Returns the numeric value of this facet |
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
protected java.lang.String value
public static final int PRESERVE
public static final int REPLACE
public static final int COLLAPSE
Constructor Detail |
public Facet()
Method Detail |
public boolean isFixed()
public void setFixed(boolean fixed)
fixed
- true if the facet is fixedpublic java.lang.String getName()
public java.lang.String getValue()
public long toLong() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public void checkFacetRestriction(SimpleType type, SimpleType base) throws SchemaException
type
- the type on which the facet is definedbase
- the type from which the restricted type is derived
SchemaException
- if the facet is not legalpublic boolean appliesToWholeList()
public boolean testAtomicValue(AtomicValue value)
value
- the value to be tested
public boolean testLength(int count)
public int getWhitespaceAction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |