Package com.thaiopensource.datatype.xsd
Class DatatypeLibraryImpl
- java.lang.Object
-
- com.thaiopensource.datatype.xsd.DatatypeLibraryImpl
-
- All Implemented Interfaces:
DatatypeLibrary
public class DatatypeLibraryImpl extends java.lang.Object implements DatatypeLibrary
-
-
Constructor Summary
Constructors Constructor Description DatatypeLibraryImpl(RegexEngine regexEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatatypecreateDatatype(java.lang.String type)Gets or creates a pre-defined type.DatatypeBuildercreateDatatypeBuilder(java.lang.String localName)Creates a new instance of DatatypeBuilder.
-
-
-
Constructor Detail
-
DatatypeLibraryImpl
public DatatypeLibraryImpl(RegexEngine regexEngine)
-
-
Method Detail
-
createDatatypeBuilder
public DatatypeBuilder createDatatypeBuilder(java.lang.String localName) throws DatatypeException
Description copied from interface:DatatypeLibraryCreates a new instance of DatatypeBuilder. The callee should throw a DatatypeException in case of an error.- Specified by:
createDatatypeBuilderin interfaceDatatypeLibrary- Parameters:
localName- The local name of the base type.- Returns:
- A non-null valid datatype object.
- Throws:
DatatypeException
-
createDatatype
public Datatype createDatatype(java.lang.String type) throws DatatypeException
Description copied from interface:DatatypeLibraryGets 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:
createDatatypein interfaceDatatypeLibrary- Returns:
- A non-null valid datatype object.
- Throws:
DatatypeException
-
-