Top Description Fields Constructors Methods
com.sun.msv.grammar.relaxng.datatype

public Class BuiltinDatatypeLibrary

extends Object
implements DatatypeLibrary
Class Inheritance
All Implemented Interfaces
org.relaxng.datatype.DatatypeLibrary
Imports
org.relaxng.datatype.Datatype, .DatatypeBuilder, .DatatypeException, .DatatypeLibrary

RELAX NG built-in datatypes. This implementation relies on Sun XML Datatypes Library.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public static final BuiltinDatatypeLibrary
theInstance

the sole instance of this class.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Datatype
createDatatype(String name)

Implements org.relaxng.datatype.DatatypeLibrary.createDatatype.

Gets or creates a pre-defined type.
public DatatypeBuilder
createDatatypeBuilder(String
The local name of the base type.
name
)

Implements org.relaxng.datatype.DatatypeLibrary.createDatatypeBuilder.

Creates a new instance of DatatypeBuilder.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

theInstanceback to summary
public static final BuiltinDatatypeLibrary theInstance

the sole instance of this class.

Constructor Detail

BuiltinDatatypeLibraryback to summary
protected BuiltinDatatypeLibrary()

Method Detail

createDatatypeback to summary
public Datatype createDatatype(String name) throws DatatypeException

Implements org.relaxng.datatype.DatatypeLibrary.createDatatype.

Doc from org.relaxng.datatype.DatatypeLibrary.createDatatype.

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.

Returns:Datatype

A non-null valid datatype object.

createDatatypeBuilderback to summary
public DatatypeBuilder createDatatypeBuilder(String name) throws DatatypeException

Implements org.relaxng.datatype.DatatypeLibrary.createDatatypeBuilder.

Doc from org.relaxng.datatype.DatatypeLibrary.createDatatypeBuilder.

Creates a new instance of DatatypeBuilder. The callee should throw a DatatypeException in case of an error.

Parameters
name:String

The local name of the base type.

Returns:DatatypeBuilder

A non-null valid datatype object.