org.whattf.datatype
Class Html5DatatypeLibrary

java.lang.Object
  extended by org.whattf.datatype.Html5DatatypeLibrary
All Implemented Interfaces:
DatatypeLibrary

public class Html5DatatypeLibrary
extends Object
implements DatatypeLibrary

Factory for HTML5 datatypes.

Version:
$Id: Html5DatatypeLibrary.java,v 1.6 2006/11/21 09:49:14 hsivonen Exp $
Author:
hsivonen

Constructor Summary
Html5DatatypeLibrary()
           
 
Method Summary
 Datatype createDatatype(String typeLocalName)
          The factory method for the datatypes of this library.
 DatatypeBuilder createDatatypeBuilder(String baseTypeLocalName)
          Returns a DatatypeBuilder for a named datatype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Html5DatatypeLibrary

public Html5DatatypeLibrary()
Method Detail

createDatatypeBuilder

public DatatypeBuilder createDatatypeBuilder(String baseTypeLocalName)
                                      throws DatatypeException
Returns a DatatypeBuilder for a named datatype. This method is unnecessary for direct access. Just use createDatatype.

Specified by:
createDatatypeBuilder in interface DatatypeLibrary
Parameters:
baseTypeLocalName - the local name
Returns:
a ParameterlessDatatypeBuilder for the local name
Throws:
DatatypeException
See Also:
DatatypeLibrary.createDatatypeBuilder(java.lang.String)

createDatatype

public Datatype createDatatype(String typeLocalName)
                        throws DatatypeException
The factory method for the datatypes of this library.

Specified by:
createDatatype in interface DatatypeLibrary
Parameters:
typeLocalName - the local name
Returns:
a Datatype instance for the local name
Throws:
DatatypeException
See Also:
DatatypeLibrary.createDatatype(java.lang.String)