Home » Open-JDK-6.b17-src » org.relaxng » datatype » helpers » [javadoc | source]
org.relaxng.datatype.helpers
public final class: ParameterlessDatatypeBuilder [javadoc | source]
java.lang.Object
   org.relaxng.datatype.helpers.ParameterlessDatatypeBuilder

All Implemented Interfaces:
    DatatypeBuilder

Dummy implementation of DatatypeBuilder . This implementation can be used for Datatypes which have no parameters. Any attempt to add parameters will be rejected.

Typical usage would be:


class MyDatatypeLibrary implements DatatypeLibrary {
    ....
    DatatypeBuilder createDatatypeBuilder( String typeName ) {
        return new ParameterleessDatatypeBuilder(createDatatype(typeName));
    }
    ....
}
Constructor:
 public ParameterlessDatatypeBuilder(Datatype baseType) 
Method from org.relaxng.datatype.helpers.ParameterlessDatatypeBuilder Summary:
addParameter,   createDatatype
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.relaxng.datatype.helpers.ParameterlessDatatypeBuilder Detail:
 public  void addParameter(String name,
    String strValue,
    ValidationContext context) throws DatatypeException 
 public Datatype createDatatype() throws DatatypeException