Package com.thaiopensource.datatype.xsd
Class DatatypeLibraryImpl
java.lang.Object
com.thaiopensource.datatype.xsd.DatatypeLibraryImpl
- All Implemented Interfaces:
DatatypeLibrary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateDatatype
(String type) Gets or creates a pre-defined type.createDatatypeBuilder
(String localName) Creates a new instance of DatatypeBuilder.
-
Constructor Details
-
DatatypeLibraryImpl
-
-
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:
localName
- 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
-