public class ExplicitTimezoneFacet extends Facet
| Modifier and Type | Field and Description |
|---|---|
static int |
OPTIONAL |
static int |
PROHIBITED |
static int |
REQUIRED |
| Constructor and Description |
|---|
ExplicitTimezoneFacet()
Create an explicitTimezone facet
|
| 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
|
Function |
getFacetAsFunctionItem()
Get a function item that represents this Facet schema component.
|
java.lang.String |
getName()
Returns the name of this Facet
|
java.lang.String |
getValue()
Returns the lexical representation of the value of this facet
|
void |
setValue(java.lang.String value) |
boolean |
testAtomicValue(AtomicValue value)
Test whether an atomic value conforms to this facet
|
getMessage, getWhitespaceAction, isConstraining, isFacetName, isFixed, isNewlyIntroduced, makeFacet, serializeFacet, setFixed, setMessage, testLength, testListValue, toLongpublic static final int OPTIONAL
public static final int REQUIRED
public static final int PROHIBITED
public ExplicitTimezoneFacet()
public java.lang.String getName()
Facetpublic java.lang.String getValue()
Facetpublic void setValue(java.lang.String value)
throws SchemaException
SchemaExceptionpublic void checkFacetRestriction(UserSimpleType type, SimpleType base, SchemaCompiler compiler) throws SchemaException
checkFacetRestriction in class Facetbase - the type from which the restricted type is derivedcompiler - the schema compilertype - the type on which the facet is definedSchemaException - if the facet is not legalpublic boolean testAtomicValue(AtomicValue value)
testAtomicValue in class Facetvalue - the value to be testedpublic Function getFacetAsFunctionItem()
FacetgetFacetAsFunctionItem in class FacetCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.