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 26 public class StringTypeBuilder extends AbstractDatatypeBuilder { 27 28 public Datatype build(Element datatypeElement, boolean arrayType, DatatypeManager datatypeManager) throws Exception { 29 StringType type = new StringType(); 30 type.setArrayType(arrayType); 31 type.setBuilder(this); 32 33 buildValidationRules(datatypeElement, type, datatypeManager); 34 buildConvertor(datatypeElement, type); 35 36 return type; 37 } 38 } 39 | Popular Tags |