Top Description Constructors Methods
com.sun.msv.datatype.xsd.ngimpl

public Class DataTypeLibraryImpl

extends Object
implements DatatypeLibrary, DatatypeLibraryFactory
Class Inheritance
All Implemented Interfaces
org.relaxng.datatype.DatatypeLibraryFactory, org.relaxng.datatype.DatatypeLibrary
Imports
com.sun.msv.datatype.xsd.DatatypeFactory, .XSDatatype, org.relaxng.datatype.Datatype, .DatatypeBuilder, .DatatypeException, .DatatypeLibrary, .DatatypeLibraryFactory

DatatypeLibrary implementation for Sun XML Datatypes Library.
Author
Kohsuke KAWAGUCHI

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements org.relaxng.datatype.DatatypeLibrary.createDatatype.

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

Implements org.relaxng.datatype.DatatypeLibrary.createDatatypeBuilder.

Creates a new instance of DatatypeBuilder.
public DatatypeLibrary
createDatatypeLibrary(String uri)

Implements org.relaxng.datatype.DatatypeLibraryFactory.createDatatypeLibrary.

Creates a new instance of a DatatypeLibrary that supports the specified namespace URI.
private XSDatatype
getType(String typeName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DataTypeLibraryImplback to summary
public DataTypeLibraryImpl()

Method Detail

createDatatypeback to summary
public Datatype createDatatype(String typeName) 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 typeName) 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
typeName:String

The local name of the base type.

Returns:DatatypeBuilder

A non-null valid datatype object.

createDatatypeLibraryback to summary
public DatatypeLibrary createDatatypeLibrary(String uri)

Implements org.relaxng.datatype.DatatypeLibraryFactory.createDatatypeLibrary.

Doc from org.relaxng.datatype.DatatypeLibraryFactory.createDatatypeLibrary.

Creates a new instance of a DatatypeLibrary that supports the specified namespace URI.

Returns:DatatypeLibrary

null if the specified namespace URI is not supported.

getTypeback to summary
private XSDatatype getType(String typeName) throws DatatypeException