| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final XSDatatypeImpl | baseType
base type |
| private static final String[][] | |
| private final Map | impl
storage for non-repeatable facets |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(String name, String strValue, boolean fixed, ValidationContext context)
Deprecated
please use the addFacet method, which is better named.
adds a facet to the type.
|
| public void | addFacet(String name, String strValue, boolean fixed, ValidationContext context)
adds a facet to the type. |
| private static void | checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2)
check (min,max) facet specification and makes sure that they are consistent |
| private boolean | |
| public XSDatatypeImpl | |
| public XSDatatypeImpl | |
| public void | |
| public Object | |
| public String | getFacetNames()
gets names of the facets in this object this method is used to produce error messages. |
| public int | getNonNegativeInteger(String facetName)
gets a value of non-repeatable facet as a non-negative integer the behavior is undefined when the specified facetName doesn't exist in this map. |
| public int | getPositiveInteger(String facetName)
gets a value of non-repeatable facet as a positive integer the behavior is undefined when the specified facetName doesn't exist in this map. |
| public Vector | |
| public boolean | |
| public boolean | |
| private static boolean | isRepeatable(String facetName)
returns true if the specified facet is a facet which can be set multiple times. |
| private static boolean | isValueFacet(String facetName)
returns true if the specified facet is a facet that needs value-space-level check. |
| private static DatatypeException | reportFacetInconsistency(String newName, DataTypeWithFacet o1, String facetName1, DataTypeWithFacet o2, String facetName2)
creates a BadTypeException with appropriate error message. |
| baseType | back to summary |
|---|---|
| private final XSDatatypeImpl baseType base type | |
| exclusiveFacetPairs | back to summary |
|---|---|
| private static final String[][] exclusiveFacetPairs | |
| impl | back to summary |
|---|---|
| private final Map<K, V> impl storage for non-repeatable facets | |
| TypeIncubator | back to summary |
|---|---|
| public TypeIncubator(XSDatatype baseType) | |
| add | back to summary |
|---|---|
| public void add(String name, String strValue, boolean fixed, ValidationContext context) throws DatatypeException
Deprecated please use the addFacet method, which is better named. adds a facet to the type. | |
| addFacet | back to summary |
|---|---|
| public void addFacet(String name, String strValue, boolean fixed, ValidationContext context) throws DatatypeException adds a facet to the type.
| |
| checkRangeConsistency | back to summary |
|---|---|
| private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException check (min,max) facet specification and makes sure that they are consistent
| |
| contains | back to summary |
|---|---|
| private boolean contains(String facetName) checks if the specified facet was added to this map | |
| derive | back to summary |
|---|---|
| public XSDatatypeImpl derive(String newName) throws DatatypeException
Deprecated
| |
| derive | back to summary |
|---|---|
| public XSDatatypeImpl derive(String newNameUri, String newLocalName) throws DatatypeException derives a new datatype from a datatype by facets that were set. It is completely legal to use null as the newTypeName parameter, which means the derivation of an anonymous datatype.
| |
| dump | back to summary |
|---|---|
| public void dump(PrintStream out) dumps the contents to the given object. this method is for debug use only. | |
| getFacet | back to summary |
|---|---|
| public Object getFacet(String facetName) gets a value of non-repeatable facet the behavior is undefined when the specified facetName doesn't exist in this map. | |
| getFacetNames | back to summary |
|---|---|
| public String getFacetNames() gets names of the facets in this object this method is used to produce error messages. | |
| getNonNegativeInteger | back to summary |
|---|---|
| public int getNonNegativeInteger(String facetName) throws DatatypeException gets a value of non-repeatable facet as a non-negative integer the behavior is undefined when the specified facetName doesn't exist in this map.
| |
| getPositiveInteger | back to summary |
|---|---|
| public int getPositiveInteger(String facetName) throws DatatypeException gets a value of non-repeatable facet as a positive integer the behavior is undefined when the specified facetName doesn't exist in this map.
| |
| getVector | back to summary |
|---|---|
| public Vector gets a value of repeatable facet the behavior is undefined when the specified facetName doesn't exist in this map. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() returns true if no facet is added | |
| isFixed | back to summary |
|---|---|
| public boolean isFixed(String facetName) returns true if that facet is fixed. the behavior is undefined when the specified facetName doesn't exist in this map. | |
| isRepeatable | back to summary |
|---|---|
| private static boolean isRepeatable(String facetName) returns true if the specified facet is a facet which can be set multiple times. | |
| isValueFacet | back to summary |
|---|---|
| private static boolean isValueFacet(String facetName) returns true if the specified facet is a facet that needs value-space-level check. | |
| reportFacetInconsistency | back to summary |
|---|---|
| private static DatatypeException reportFacetInconsistency(String newName, DataTypeWithFacet o1, String facetName1, DataTypeWithFacet o2, String facetName2) creates a BadTypeException with appropriate error message. this method is only useful for reporting facet consistency violation. | |
| FacetInfo | back to summary |
|---|---|
| public FacetInfo(Object value, boolean fixed) | |