| 
|||||||
| 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.EnumerationFacet
public class EnumerationFacet
Represents a single enumeration facet defined on a simple type. Note that unlike other
 facets, a value cannot be validated against a single enumeration facet; for this reason
 all the individual enumeration facets are assembled into an EnumerationFacetSet which
 is a pseudo-facet used to perform the validation.
| Field Summary | 
|---|
| Fields inherited from class com.saxonica.schema.Facet | 
|---|
ENUMERATION, FRACTIONDIGITS, LENGTH, MAX_EXCLUSIVE, MAX_INCLUSIVE, MAX_LENGTH, MIN_EXCLUSIVE, MIN_INCLUSIVE, MIN_LENGTH, PATTERN, TOTALDIGITS, WHITESPACE | 
| Fields inherited from interface com.saxonica.schema.SerializableSchemaComponent | 
|---|
ALL_COMPOSITOR, ATOMIC_TYPE, ATTRIBUTE_DECL, ATTRIBUTE_GROUP, ATTRIBUTE_GROUP_REF, ATTRIBUTE_USE, ATTRIBUTE_WILDCARD, CHOICE_COMPOSITOR, COMPLEX_TYPE, ELEMENT_DECL, ELEMENT_PARTICLE, ELEMENT_WILDCARD, FACET, KEY, KEYREF, LIST_TYPE, MODEL_GROUP, MODEL_GROUP_REF, NOTATION, SEQUENCE_COMPOSITOR, UNION_TYPE, UNIQUE | 
| Constructor Summary | |
|---|---|
EnumerationFacet()
 | 
|
| Method Summary | |
|---|---|
 void | 
checkFacetRestriction(UserSimpleType type,
                      SimpleType base)
Check that this facet is legal when used on a type derived by restriction  | 
 String | 
getName()
Get the name of this facet  | 
 AtomicValue | 
getTypedValue(UserAtomicType type)
Get the typed value of the enumeration value  | 
 void | 
setNamespaceContext(NamespaceResolver map)
Save the namespace context for this enumeration value.  | 
 void | 
setValue(String value)
Set the value of this facet  | 
 boolean | 
testAtomicValue(AtomicValue value)
Test whether an atomic value conforms to this facet  | 
| Methods inherited from class com.saxonica.schema.Facet | 
|---|
appliesToWholeList, getComponentTypeCode, getValue, getWhitespaceAction, isFixed, isNewlyIntroduced, serialize, setFixed, testLength, toLong | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public EnumerationFacet()
| Method Detail | 
|---|
public String getName()
getName in class Facetpublic void setValue(String value)
value - the raw enumeration value as written in the schema
public AtomicValue getTypedValue(UserAtomicType type)
                          throws SchemaException,
                                 UnresolvedReferenceException
type - the simple type containing this facet
SchemaException
UnresolvedReferenceException
public void checkFacetRestriction(UserSimpleType type,
                                  SimpleType base)
                           throws SchemaException,
                                  UnresolvedReferenceException
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 value is not legal given the base type
UnresolvedReferenceExceptionpublic void setNamespaceContext(NamespaceResolver map)
map - a NamespaceResolver mapping namespace prefixes (as strings) onto namespace URIs (as strings)public boolean testAtomicValue(AtomicValue value)
testAtomicValue in class Facetvalue - the value to be tested
  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||