org.kohsuke.rngom.dt.builtin
Class BuiltinDatatypeLibrary

java.lang.Object
  extended by org.kohsuke.rngom.dt.builtin.BuiltinDatatypeLibrary
All Implemented Interfaces:
DatatypeLibrary

public class BuiltinDatatypeLibrary
extends Object
implements DatatypeLibrary


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
 

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


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.