|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.schema.Facet com.saxonica.schema.AssertionFacet
public class AssertionFacet
Represents an assertion facet on a schema-defined simple type.
Constructor Summary | |
---|---|
AssertionFacet(Assertion assertion)
Create a assertion facet |
Method Summary | |
---|---|
void |
checkFacetRestriction(UserSimpleType type,
SimpleType base,
SchemaCompiler compiler)
Check that this facet is legal when used on a type derived by restriction |
String |
getName()
Returns the name of this Facet |
String |
getValue()
Returns the lexical representation of the value of this facet |
void |
serializeFacet(SchemaModelSerializer serializer)
Serialize this facet |
boolean |
testAtomicValue(AtomicValue value)
Test whether an atomic value conforms to this facet |
boolean |
testListValue(Value value)
Test whether a list value conforms to this facet. |
Methods inherited from class com.saxonica.schema.Facet |
---|
getMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, setFixed, setMessage, testLength, toLong |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssertionFacet(Assertion assertion)
assertion
- the assertionMethod Detail |
---|
public String getName()
Facet
getName
in class Facet
public String getValue()
Facet
getValue
in class Facet
public void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException
checkFacetRestriction
in class Facet
type
- the derived typebase
- the type from which the restricted type is derivedcompiler
- the schema compiler
SchemaException
- if the facet is not legalpublic boolean testAtomicValue(AtomicValue value)
testAtomicValue
in class Facet
value
- the value to be tested
public boolean testListValue(Value value)
testListValue
in class Facet
value
- the value to be tested
public void serializeFacet(SchemaModelSerializer serializer) throws XPathException
serializeFacet
in class Facet
serializer
- receives the content for serialization
XPathException
- if an error occurs writing the value to the output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |