1 package org.relaxng.datatype;
\r
6 * @author <a href="mailto:jjc@jclark.com">James Clark</a>
\r
7 * @author <a href="mailto:kohsuke.kawaguchi@sun.com">Kohsuke KAWAGUCHI</a>
\r
9 public interface DatatypeLibrary {
\r
12 * Creates a new instance of DatatypeBuilder.
\r
14 * The callee should throw a DatatypeException in case of an error.
\r
16 * @param baseTypeLocalName
\r
17 * The local name of the base type.
\r
20 * A non-null valid datatype object.
\r
22 DatatypeBuilder createDatatypeBuilder( String baseTypeLocalName )
\r
23 throws DatatypeException;
\r
26 * Gets or creates a pre-defined type.
\r
28 * This is just a short-cut of
\r
29 * <code>createDatatypeBuilder(typeLocalName).createDatatype();</code>
\r
31 * The callee should throw a DatatypeException in case of an error.
\r
34 * A non-null valid datatype object.
\r
36 Datatype createDatatype( String typeLocalName ) throws DatatypeException;
\r