org.relaxng.datatype
Interface DatatypeLibrary
- TypeLibrary
A Datatype library
createDatatype
public Datatype createDatatype(String typeLocalName)
throws DatatypeException
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.
- A non-null valid datatype object.
createDatatypeBuilder
public DatatypeBuilder createDatatypeBuilder(String baseTypeLocalName)
throws DatatypeException
Creates a new instance of DatatypeBuilder.
The callee should throw a DatatypeException in case of an error.
baseTypeLocalName
- The local name of the base type.
- A non-null valid datatype object.