1 16 package org.apache.cocoon.forms.datatype.typeimpl; 17 18 import org.apache.cocoon.forms.datatype.Datatype; 19 import org.apache.cocoon.forms.datatype.DatatypeManager; 20 import org.w3c.dom.Element ; 21 22 28 public class IntegerTypeBuilder extends AbstractDatatypeBuilder { 29 public Datatype build(Element datatypeElement, boolean arrayType, DatatypeManager datatypeManager) throws Exception { 30 IntegerType type = new IntegerType(); 31 type.setArrayType(arrayType); 32 type.setBuilder(this); 33 34 buildValidationRules(datatypeElement, type, datatypeManager); 35 buildConvertor(datatypeElement, type); 36 37 return type; 38 } 39 } 40 | Popular Tags |