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

pack-priv Class DatatypeBuilderImpl

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

DataTypeBuilder implementation. There is no paramater for any built-in and compatibility types.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private final Datatype
protected static final String

Constructor Summary

AccessConstructor and Description
pack-priv

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()

Implements org.relaxng.datatype.DatatypeBuilder.createDatatype.

Derives a new Datatype from a Datatype by parameters that were already set through the addParameter method.
protected String
localize(String propertyName, Object[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseTypeback to summary
private final Datatype baseType
ERR_PARAMETER_UNSUPPORTEDback to summary
protected static final String ERR_PARAMETER_UNSUPPORTED

Constructor Detail

DatatypeBuilderImplback to summary
pack-priv DatatypeBuilderImpl(Datatype baseType)

Method Detail

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

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.

Exceptions
DatatypeException:
When the given parameter is inappropriate for some reason. The callee is responsible to recover from this error. That is, the object should behave as if no such error was occured.
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.

localizeback to summary
protected String localize(String propertyName, Object[] args)