Package com.sun.tools.rngdatatype
Interface DatatypeLibrary
- All Known Implementing Classes:
BuiltinDatatypeLibrary
public interface DatatypeLibrary
A Datatype library
- Author:
- James Clark, Kohsuke KAWAGUCHI
-
Method Summary
Modifier and TypeMethodDescriptioncreateDatatype
(String typeLocalName) Gets or creates a pre-defined type.createDatatypeBuilder
(String baseTypeLocalName) Creates a new instance of DatatypeBuilder.
-
Method Details
-
createDatatypeBuilder
Creates a new instance of DatatypeBuilder. The callee should throw a DatatypeException in case of an error.- Parameters:
baseTypeLocalName
- The local name of the base type.- Returns:
- A non-null valid datatype object.
- Throws:
DatatypeException
-
createDatatype
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.- Returns:
- A non-null valid datatype object.
- Throws:
DatatypeException
-