public class PreprocessFacet extends Facet
| Constructor and Description |
|---|
PreprocessFacet() |
PreprocessFacet(Assertion action,
Assertion reverseAction) |
| 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
|
Assertion |
getAction()
Get the XPath expression representing the action performed by this facet, represented as
an Assertion object
|
FunctionItem |
getFacetAsFunctionItem()
Get a function item that represents this Facet schema component.
|
String |
getName()
Returns the name of this Facet
|
Assertion |
getReverseAction()
Get the XPath expression representing the reverse action performed by this facet, represented as
an Assertion object
|
String |
getValue()
Returns the lexical representation of this facet
|
boolean |
isConstraining()
Ask whether this is a constraining facet (as distinct from a pre-lexical facet)
|
CharSequence |
postprocess(CharSequence input)
Apply the postprocessing defined by this facet
|
CharSequence |
preprocess(CharSequence input)
Apply the preprocessing defined by this facet
|
void |
serializeFacet(SchemaModelSerializer serializer)
Serialize this facet when externalizing the schema component model
|
void |
setAction(Assertion action)
Set the XPath expression representing the action performed by this facet, represented as
an Assertion object
|
void |
setReverseAction(Assertion action)
Set the XPath expression representing the reverse action performed by this facet, represented as
an Assertion object
|
boolean |
testAtomicValue(AtomicValue value)
Test whether an atomic value conforms to this facet
|
getMessage, getWhitespaceAction, isFacetName, isFixed, isNewlyIntroduced, makeFacet, setFixed, setMessage, testLength, testListValue, toLongpublic boolean isConstraining()
isConstraining in class Facetpublic String getValue()
public Assertion getAction()
public Assertion getReverseAction()
public void setAction(Assertion action)
public void setReverseAction(Assertion action)
public void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException, ValidationException
checkFacetRestriction in class Facetbase - 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 CharSequence preprocess(CharSequence input) throws ValidationException
input - the lexical value, after whitespace normalization, to be convertedValidationExceptionpublic CharSequence postprocess(CharSequence input) throws ValidationException
input - the lexical value to be convertedValidationExceptionpublic boolean testAtomicValue(AtomicValue value)
testAtomicValue in class Facetvalue - the value to be testedpublic void serializeFacet(SchemaModelSerializer serializer) throws XPathException
FacetserializeFacet in class Facetserializer - receives the content for serializationXPathException - if an error occurs writing the value to the outputpublic FunctionItem getFacetAsFunctionItem()
FacetgetFacetAsFunctionItem in class FacetCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.