Package com.sun.msv.reader.datatype.xsd
Class LazyTypeIncubator
java.lang.Object
com.sun.msv.reader.datatype.xsd.LazyTypeIncubator
- All Implemented Interfaces:
XSTypeIncubator
Lazy XSTypeIncubator
This incubator is used to add facets to lazily created XSDatatypeExp object. Since the actual Datatype object is not available when facets are parsed, this object merely stores all facets when the addFacet method is called.
Once the actual Datatype is provided, this class uses ordinary TypeIncubator and builds a real type object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
store the information about one added facet. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XSDatatypeExp
base object.private final List
applied facets.private final GrammarReader
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
baseType
base object. -
reader
-
facets
applied facets. Order between facets are possibly significant.
-
-
Constructor Details
-
LazyTypeIncubator
-
-
Method Details
-
addFacet
public void addFacet(String name, String strValue, boolean fixed, org.relaxng.datatype.ValidationContext context) - Specified by:
addFacet
in interfaceXSTypeIncubator
-
derive
public XSDatatypeExp derive(String nsUri, String localName) throws org.relaxng.datatype.DatatypeException - Specified by:
derive
in interfaceXSTypeIncubator
- Throws:
org.relaxng.datatype.DatatypeException
-