| org.relaxng.datatype.DatatypeBuilder
All known Subclasses: org.relaxng.datatype.helpers.ParameterlessDatatypeBuilder,
DatatypeBuilder | public interface DatatypeBuilder (Code) | | Creates a user-defined type by adding parameters to
the pre-defined type.
author: James Clark author: Kohsuke KAWAGUCHI |
Method Summary | |
void | addParameter(String name, String strValue, ValidationContext context) Adds a new parameter.
Parameters: name - The name of the parameter to be added. Parameters: strValue - The raw value of the parameter. | Datatype | createDatatype() Derives a new Datatype from a Datatype by parameters that
were already set through the addParameter method.
exception: DatatypeException - DatatypeException must be thrown if the derivation issomehow invalid. |
addParameter | void addParameter(String name, String strValue, ValidationContext context) throws DatatypeException(Code) | | Adds a new parameter.
Parameters: name - The name of the parameter to be added. Parameters: strValue - The raw value of the parameter. Caller may not normalizethis value because any white space is potentially significant. Parameters: context - The context information which can be used by the callee toacquire additional information. This context object isvalid only during this method call. The callee may notkeep a reference to this object. exception: 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 errorwas occured. |
createDatatype | Datatype createDatatype() throws DatatypeException(Code) | | Derives a new Datatype from a Datatype by parameters that
were already set through the addParameter method.
exception: DatatypeException - DatatypeException must be thrown if the derivation issomehow invalid. For example, a required parameter is missing,etc. The exception should contain a diagnosis messageif possible. |
|
|