1 package org.relaxng.datatype.helpers; 2 3 import org.relaxng.datatype.*; 4 5 25 public final class ParameterlessDatatypeBuilder implements DatatypeBuilder { 26 27 28 private final Datatype baseType; 29 30 public ParameterlessDatatypeBuilder( Datatype baseType ) { 31 this.baseType = baseType; 32 } 33 34 public void addParameter( String name, String strValue, ValidationContext context ) 35 throws DatatypeException { 36 throw new DatatypeException(); 37 } 38 39 public Datatype createDatatype() throws DatatypeException { 40 return baseType; 41 } 42 } 43 | Popular Tags |