public class WhitespaceFacet extends Facet
Constructor and Description |
---|
WhitespaceFacet() |
Modifier and Type | Method and Description |
---|---|
void |
checkFacetRestriction(UserSimpleType type,
SimpleType base,
SchemaCompiler compiler)
Check that this facet is legal when used on a type derived by restriction
|
FunctionItem |
getFacetAsFunctionItem()
Get a function item that represents this Facet schema component.
|
String |
getName()
Returns the name of this Facet
|
String |
getValue()
Returns the lexical representation of this facet
|
int |
getWhitespaceAction()
Get the whitespace action required: one of PRESERVE, REPLACE, or COLLAPSE
|
boolean |
isConstraining()
Ask whether this is a constraining facet (as distinct from a pre-lexical facet)
|
void |
setValue(String value) |
boolean |
testAtomicValue(AtomicValue value)
Test whether an atomic value conforms to this facet
|
getMessage, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testLength, testListValue, toLong
public boolean isConstraining()
isConstraining
in class Facet
public void setValue(String value) throws SchemaException
SchemaException
public String getValue()
public int getWhitespaceAction()
getWhitespaceAction
in class Facet
public void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException
checkFacetRestriction
in class Facet
base
- the type from which the restricted type is derivedcompiler
- type
- the type on which the facet is definedSchemaException
- if the facet is not legalValidationException
- if a value is found that does not conform to the facetpublic boolean testAtomicValue(AtomicValue value)
testAtomicValue
in class Facet
value
- the value to be testedpublic FunctionItem getFacetAsFunctionItem()
Facet
getFacetAsFunctionItem
in class Facet
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.