com.thaiopensource.relaxng.impl
Class BuiltinDatatypeBuilder
java.lang.Object
com.thaiopensource.relaxng.impl.BuiltinDatatypeBuilder
- All Implemented Interfaces:
- DatatypeBuilder
class BuiltinDatatypeBuilder
- extends Object
- implements DatatypeBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dt
private final Datatype dt
BuiltinDatatypeBuilder
BuiltinDatatypeBuilder(Datatype dt)
addParameter
public void addParameter(String name,
String value,
ValidationContext context)
throws DatatypeException
- Description copied from interface:
DatatypeBuilder
- Adds a new parameter.
- Specified by:
addParameter
in interface DatatypeBuilder
- Parameters:
name
- The name of the parameter to be added.value
- The raw value of the parameter. Caller may not normalize
this value because any white space is potentially significant.context
- 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.
- Throws:
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.
createDatatype
public Datatype createDatatype()
- Description copied from interface:
DatatypeBuilder
- Derives a new Datatype from a Datatype by parameters that
were already set through the addParameter method.
- Specified by:
createDatatype
in interface DatatypeBuilder