com.thaiopensource.relaxng.impl
Class CompatibilityDatatypeLibrary

java.lang.Object
  extended by com.thaiopensource.relaxng.impl.CompatibilityDatatypeLibrary
All Implemented Interfaces:
DatatypeLibrary

 class CompatibilityDatatypeLibrary
extends Object
implements DatatypeLibrary


Field Summary
private  DatatypeLibraryFactory factory
           
private  DatatypeLibrary xsdDatatypeLibrary
           
 
Constructor Summary
CompatibilityDatatypeLibrary(DatatypeLibraryFactory factory)
           
 
Method Summary
 Datatype createDatatype(String type)
          Gets or creates a pre-defined type.
 DatatypeBuilder createDatatypeBuilder(String type)
          Creates a new instance of DatatypeBuilder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private final DatatypeLibraryFactory factory

xsdDatatypeLibrary

private DatatypeLibrary xsdDatatypeLibrary
Constructor Detail

CompatibilityDatatypeLibrary

CompatibilityDatatypeLibrary(DatatypeLibraryFactory factory)
Method Detail

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