com.thaiopensource.relaxng.impl
Class BuiltinDatatypeLibrary
java.lang.Object
com.thaiopensource.relaxng.impl.BuiltinDatatypeLibrary
- All Implemented Interfaces:
- DatatypeLibrary
public class BuiltinDatatypeLibrary
- extends Object
- implements DatatypeLibrary
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tokenDatatypeBuilder
private final DatatypeBuilder tokenDatatypeBuilder
stringDatatypeBuilder
private final DatatypeBuilder stringDatatypeBuilder
BuiltinDatatypeLibrary
public BuiltinDatatypeLibrary()
createDatatypeBuilder
public DatatypeBuilder createDatatypeBuilder(String type)
throws DatatypeException
- 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 interface DatatypeLibrary
- Parameters:
type
- The local name of the base type.
- Returns:
- A non-null valid datatype object.
- Throws:
DatatypeException
createDatatype
public Datatype createDatatype(String type)
throws DatatypeException
- Description copied from interface:
DatatypeLibrary
- Gets or creates a pre-defined type.
This is just a short-cut of
createDatatypeBuilder(typeLocalName).createDatatype();
The callee should throw a DatatypeException in case of an error.
- Specified by:
createDatatype
in interface DatatypeLibrary
- Returns:
- A non-null valid datatype object.
- Throws:
DatatypeException