|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.datatype.xsd.TypeIncubator
derives a new type by adding facets.
Constructor Summary | |
TypeIncubator(XSDatatype baseType)
|
Method Summary | |
void |
addFacet(String name,
String strValue,
boolean fixed,
org.relaxng.datatype.ValidationContext context)
adds a facet to the type. |
XSDatatypeImpl |
derive(String newNameUri,
String newLocalName)
derives a new datatype from a datatype by facets that were set. |
void |
dump(PrintStream out)
dumps the contents to the given object. |
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. |
String |
getFacetNames()
gets names of the facets in this object this method is used to produce error messages. |
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. |
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. |
Vector |
getVector(String facetName)
gets a value of repeatable facet the behavior is undefined when the specified facetName doesn't exist in this map. |
boolean |
isEmpty()
returns true if no facet is added |
boolean |
isFixed(String facetName)
returns true if that facet is fixed. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TypeIncubator(XSDatatype baseType)
Method Detail |
public void addFacet(String name, String strValue, boolean fixed, org.relaxng.datatype.ValidationContext context) throws org.relaxng.datatype.DatatypeException
org.relaxng.datatype.DatatypeException
- when given facet is already specifiedpublic XSDatatypeImpl derive(String newNameUri, String newLocalName) throws org.relaxng.datatype.DatatypeException
org.relaxng.datatype.DatatypeException
- DatatypeException is thrown if derivation is somehow invalid.
For example, not applicable facets are applied, or enumeration
has invalid values, ... things like that.public void dump(PrintStream out)
public Object getFacet(String facetName)
public String getFacetNames()
public int getNonNegativeInteger(String facetName) throws org.relaxng.datatype.DatatypeException
BadTypeException
- if the parameter cannot be parsed as a non-negative integer
org.relaxng.datatype.DatatypeException
public int getPositiveInteger(String facetName) throws org.relaxng.datatype.DatatypeException
BadTypeException
- if the parameter cannot be parsed as a positive integer
org.relaxng.datatype.DatatypeException
public Vector getVector(String facetName)
public boolean isEmpty()
public boolean isFixed(String facetName)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |