API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.relaxng.datatype. DatatypeBuilder View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

font color='#880088'>
package org.relaxng.datatype;

/**
 * Creates a user-defined type by adding parameters to
 * the pre-defined type.
 * 
 * @author <a href="mailto:jjc@jclark.com">James Clark</a>
 * @author <a href="mailto:kohsuke.kawaguchi@sun.com">Kohsuke KAWAGUCHI</a>
 */
public interface DatatypeBuilder {
	
	/**
	 * Adds a new parameter.
	 *
	 * @param name
	 *		The name of the parameter to be added.
	 * @param strValue
	 *		The raw value of the parameter. Caller may not normalize
	 *		this value because any white space is potentially significant.
	 * @param 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.
	 * @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 error
	 *		was occured.
	 */
	void addParameter( String name, String strValue, ValidationContext context )
		throws DatatypeException;
	
	/**
	 * 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 is
	 *		somehow invalid. For example, a required parameter is missing,
	 *		etc. The exception should contain a diagnosis message
	 *		if possible.
	 */
	Datatype createDatatype() throws DatatypeException;
}

Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar