|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.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)
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 assertion| Method Detail |
|---|
public String getName()
Facet
getName in class Facetpublic String getValue()
Facet
getValue in class Facet
public void checkFacetRestriction(UserSimpleType type,
SimpleType base)
throws SchemaException
checkFacetRestriction in class Facetbase - the type from which the restricted type is derivedtype - the type on which the facet is defined
SchemaException - if the facet is not legalpublic boolean testAtomicValue(AtomicValue value)
testAtomicValue in class Facetvalue - the value to be tested
public boolean testListValue(Value value)
testListValue in class Facetvalue - the value to be tested
public void serializeFacet(SchemaModelSerializer serializer)
throws XPathException
serializeFacet in class Facetserializer - receives the content for serialization
XPathException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||