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

public Class ErrorDatatypeLibrary

extends Object
implements DatatypeLibrary, DatatypeBuilder
Class Inheritance
All Implemented Interfaces
org.relaxng.datatype.DatatypeBuilder, org.relaxng.datatype.DatatypeLibrary
Imports
com.sun.msv.datatype.xsd.StringType, org.relaxng.datatype.Datatype, .DatatypeBuilder, .DatatypeLibrary, .ValidationContext

Dummy DatatypeLibrary implementation which is used to recover from "unknown datatype library" error.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public static final ErrorDatatypeLibrary
theInstance

The sole instance of this class.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
addParameter(String
The name of the parameter to be added.
name
,
String
The raw value of the parameter. Caller may not normalize this value because any white space is potentially significant.
value
,
ValidationContext
The context information which can be used by the callee to acquire additional information. This context object is valid only during this method call. The callee may not keep a reference to this object.
context
)

Implements org.relaxng.datatype.DatatypeBuilder.addParameter.

Adds a new parameter.
public Datatype
createDatatype(String name)

Implements org.relaxng.datatype.DatatypeLibrary.createDatatype.

Gets or creates a pre-defined type.
public Datatype
createDatatype()

Implements org.relaxng.datatype.DatatypeBuilder.createDatatype.

Derives a new Datatype from a Datatype by parameters that were already set through the addParameter method.
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 ErrorDatatypeLibrary theInstance

The sole instance of this class.

Constructor Detail

ErrorDatatypeLibraryback to summary
private ErrorDatatypeLibrary()

Method Detail

addParameterback to summary
public void addParameter(String name, String value, ValidationContext context)

Implements org.relaxng.datatype.DatatypeBuilder.addParameter.

Doc from org.relaxng.datatype.DatatypeBuilder.addParameter.

Adds a new parameter.

Parameters
name:String

The name of the parameter to be added.

value:String

The raw value of the parameter. Caller may not normalize this value because any white space is potentially significant.

context:ValidationContext

The context information which can be used by the callee to acquire additional information. This context object is valid only during this method call. The callee may not keep a reference to this object.

createDatatypeback to summary
public Datatype createDatatype(String name)

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.

createDatatypeback to summary
public Datatype createDatatype()

Implements org.relaxng.datatype.DatatypeBuilder.createDatatype.

Doc from org.relaxng.datatype.DatatypeBuilder.createDatatype.

Derives a new Datatype from a Datatype by parameters that were already set through the addParameter method.

createDatatypeBuilderback to summary
public DatatypeBuilder createDatatypeBuilder(String name)

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.