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

public Class CompatibilityDatatypeLibrary

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

RELAX NG DTD compatibility datatype library. This implementation relies on Sun XML Datatypes Library. Compatibility datatypes library available through http://relaxng.org/ns/compatibility/datatypes/1.0.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public static final String
namespaceURI

namespace URI of the compatibility datatypes library.

Constructor Summary

AccessConstructor and Description
public

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

namespaceURIback to summary
public static final String namespaceURI

namespace URI of the compatibility datatypes library.

Constructor Detail

CompatibilityDatatypeLibraryback to summary
public CompatibilityDatatypeLibrary()

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.