Package com.sun.msv.reader.datatype.xsd
Class LazyTypeIncubator
- java.lang.Object
-
- com.sun.msv.reader.datatype.xsd.LazyTypeIncubator
-
- All Implemented Interfaces:
XSTypeIncubator
class LazyTypeIncubator extends java.lang.Object implements XSTypeIncubator
Lazy XSTypeIncubatorThis 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 Classes Modifier and Type Class Description private classLazyTypeIncubator.Facetstore the information about one added facet.
-
Field Summary
Fields Modifier and Type Field Description private XSDatatypeExpbaseTypebase object.private java.util.Listfacetsapplied facets.private GrammarReaderreader
-
Constructor Summary
Constructors Constructor Description LazyTypeIncubator(XSDatatypeExp base, GrammarReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFacet(java.lang.String name, java.lang.String strValue, boolean fixed, org.relaxng.datatype.ValidationContext context)XSDatatypeExpderive(java.lang.String nsUri, java.lang.String localName)
-
-
-
Field Detail
-
baseType
private final XSDatatypeExp baseType
base object.
-
reader
private final GrammarReader reader
-
facets
private final java.util.List facets
applied facets. Order between facets are possibly significant.
-
-
Constructor Detail
-
LazyTypeIncubator
public LazyTypeIncubator(XSDatatypeExp base, GrammarReader reader)
-
-
Method Detail
-
addFacet
public void addFacet(java.lang.String name, java.lang.String strValue, boolean fixed, org.relaxng.datatype.ValidationContext context)- Specified by:
addFacetin interfaceXSTypeIncubator
-
derive
public XSDatatypeExp derive(java.lang.String nsUri, java.lang.String localName) throws org.relaxng.datatype.DatatypeException
- Specified by:
derivein interfaceXSTypeIncubator- Throws:
org.relaxng.datatype.DatatypeException
-
-