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
|
Function |
getFacetAsFunctionItem()
Get a function item that represents this Facet schema component.
|
java.lang.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
|
java.lang.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)
|
java.lang.CharSequence |
postprocess(java.lang.CharSequence input)
Apply the postprocessing defined by this facet
|
java.lang.CharSequence |
preprocess(java.lang.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, toLong
public boolean isConstraining()
isConstraining
in class Facet
public java.lang.String getName()
Facet
public java.lang.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 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 java.lang.CharSequence preprocess(java.lang.CharSequence input) throws ValidationException
input
- the lexical value, after whitespace normalization, to be convertedValidationException
public java.lang.CharSequence postprocess(java.lang.CharSequence input) throws ValidationException
input
- the lexical value to be convertedValidationException
public boolean testAtomicValue(AtomicValue value)
testAtomicValue
in class Facet
value
- the value to be testedpublic void serializeFacet(SchemaModelSerializer serializer) throws XPathException
Facet
serializeFacet
in class Facet
serializer
- receives the content for serializationXPathException
- if an error occurs writing the value to the outputpublic Function getFacetAsFunctionItem()
Facet
getFacetAsFunctionItem
in class Facet
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.