Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.relaxng.datatype;

Creates a user-defined type by adding parameters to the pre-defined type.

James Clark
public interface DatatypeBuilder {

Adds a new parameter.

name The name of the parameter to be added.
strValue 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.
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.
	void addParameterString nameString strValueValidationContext context )
Derives a new Datatype from a Datatype by parameters that were already set through the addParameter method.

DatatypeException DatatypeException must be thrown if the derivation is somehow invalid. For example, a required parameter is missing, etc. The exception should contain a diagnosis message if possible.
New to GrepCode? Check out our FAQ X