org.relaxng.datatype
Interface DatatypeLibrary
- public interface DatatypeLibrary
one Datatype library
- Author:
- Kohsuke KAWAGUCHI
createDatatypeBuilder
public DatatypeBuilder createDatatypeBuilder(java.lang.String baseTypeLocalName)
throws DatatypeException
- creates a new type builder instance.
The callee should throw a DatatypeException in case of an error.
If an error is because of the undefined baseTypeLocalName, then
it can return null instead of throwing an exception.
- Parameters:
baseTypeLocalName
- local name of the base type.- Returns:
- null
The callee can return null if baseTypeLocalName is an undefined name.
getType
public Datatype getType(java.lang.String localTypeName)
throws DatatypeException
- gets a pre-defined type.
This is just a short-cut of createTypeIncubator(name).derive();
The callee should throw a DatatypeException in case of an error.
If the error is because of the undefined baseTypeLocalName, then
it can return null instead of throwing an exception.
- Returns:
- null
The callee can return null if localTypeName is an undefined name.