Package edu.cornell.mannlib.vedit.util
Class FormUtils
- java.lang.Object
-
- edu.cornell.mannlib.vedit.util.FormUtils
-
public class FormUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormUtils.NegativeIntegerException
-
Field Summary
Fields Modifier and Type Field Description protected static intBASE_10protected static org.apache.commons.logging.Loglogprotected static List<Class>SUPPORTED_TYPE_LISTprotected static Class[]SUPPORTED_TYPES
-
Constructor Summary
Constructors Constructor Description FormUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>beanParamMapFromString(String params)Decodes a Base-64-encoded String of format key:value;key2:value2;key3:value, and puts the keys and values in a Mapstatic voidbeanSet(Object newObj, String field, String value)static voidbeanSet(Object newObj, String field, String value, EditProcessObject epo)static List<Option>makeOptionListFromBeans(List beanList, String valueField, String bodyField, String selectedValue, String selectedBody)static List<Option>makeOptionListFromBeans(List beanList, String valueField, String bodyField, String selectedValue, String selectedBody, boolean forceSelectedInclusion)static List<Option>makeOptionListOfNotDisjointClasses(WebappDaoFactory wadf, String baseVclassUri, String selectedUri)static List<Option>makeOptionListOfSubVClasses(WebappDaoFactory wadf, String parentVClassUri, String selectedVClassURI)static List<Option>makeVClassOptionList(WebappDaoFactory wadf, String selectedVClassURI)static voidpopulateFormFromBean(Object bean, String action, EditProcessObject epo, FormObject foo, Map<String,String> BadValuesHash)Populates form objects with bean valuesstatic voidpopulateFormFromBean(Object bean, String action, FormObject foo)static voidpopulateFormFromBean(Object bean, String action, FormObject foo, Map<String,String> badValuesHash)
-
-
-
Field Detail
-
log
protected static final org.apache.commons.logging.Log log
-
BASE_10
protected static final int BASE_10
- See Also:
- Constant Field Values
-
SUPPORTED_TYPES
protected static final Class[] SUPPORTED_TYPES
-
-
Method Detail
-
populateFormFromBean
public static void populateFormFromBean(Object bean, String action, FormObject foo)
-
populateFormFromBean
public static void populateFormFromBean(Object bean, String action, FormObject foo, Map<String,String> badValuesHash)
-
populateFormFromBean
public static void populateFormFromBean(Object bean, String action, EditProcessObject epo, FormObject foo, Map<String,String> BadValuesHash)
Populates form objects with bean values
-
makeOptionListFromBeans
public static List<Option> makeOptionListFromBeans(List beanList, String valueField, String bodyField, String selectedValue, String selectedBody)
-
makeOptionListFromBeans
public static List<Option> makeOptionListFromBeans(List beanList, String valueField, String bodyField, String selectedValue, String selectedBody, boolean forceSelectedInclusion)
-
makeVClassOptionList
public static List<Option> makeVClassOptionList(WebappDaoFactory wadf, String selectedVClassURI)
-
makeOptionListOfSubVClasses
public static List<Option> makeOptionListOfSubVClasses(WebappDaoFactory wadf, String parentVClassUri, String selectedVClassURI)
-
makeOptionListOfNotDisjointClasses
public static List<Option> makeOptionListOfNotDisjointClasses(WebappDaoFactory wadf, String baseVclassUri, String selectedUri)
-
beanSet
public static void beanSet(Object newObj, String field, String value, EditProcessObject epo)
-
-