Package com.sun.tools.rngom.dt.builtin
Class BuiltinDatatypeLibrary
java.lang.Object
com.sun.tools.rngom.dt.builtin.BuiltinDatatypeLibrary
- All Implemented Interfaces:
DatatypeLibrary
-
Method Summary
Modifier and TypeMethodDescriptioncreateDatatype
(String type) Gets or creates a pre-defined type.createDatatypeBuilder
(String type) Creates a new instance of DatatypeBuilder.
-
Method Details
-
createDatatypeBuilder
Description copied from interface:DatatypeLibrary
Creates a new instance of DatatypeBuilder. The callee should throw a DatatypeException in case of an error.- Specified by:
createDatatypeBuilder
in interfaceDatatypeLibrary
- Parameters:
type
- The local name of the base type.- Returns:
- A non-null valid datatype object.
- Throws:
DatatypeException
-
createDatatype
Description copied from interface:DatatypeLibrary
Gets or creates a pre-defined type. This is just a short-cut ofcreateDatatypeBuilder(typeLocalName).createDatatype();
The callee should throw a DatatypeException in case of an error.- Specified by:
createDatatype
in interfaceDatatypeLibrary
- Returns:
- A non-null valid datatype object.
- Throws:
DatatypeException
-