public class FormUtils extends Object
Constructor and Description |
---|
FormUtils() |
Modifier and Type | Method and Description |
---|---|
static FormElement |
getFormElement(Map<PropertyGroup,List<FormElement>> formsElements,
String propertyName)
Retrieve the form element from a PropertyGroups definition.
|
static List<FormElement> |
getPropertyGroupForms(Map<PropertyGroup,List<FormElement>> formsElements,
String groupName)
Retrieve the form elements from a PropertyGroup definition.
|
static Map<String,FormElement> |
getPropertyGroupFormsMap(Map<PropertyGroup,List<FormElement>> formsElements,
String groupName)
Retrieve the form elements from a PropertyGroup definition.
|
static String |
getSelectLabel(String propertyName,
String value)
Resolve Property Select Label.
|
static Map<PropertyGroup,List<FormElement>> |
parsePropertyGroupsForms(String pgDefFile)
Parse PropertyGroups.xml definitions
|
static List<FormElement> |
parseReportParameters(InputStream is)
Parse params.xml definitions
|
static Map<String,List<FormElement>> |
parseWorkflowForms(InputStream is)
Parse form.xml definitions
|
static void |
resetPropertyGroupsForms()
Force PropertyGroups.xml re-read in the next petition.
|
static Map<String,String> |
toString(FormElement fe)
Get form element type
|
public static Map<String,List<FormElement>> parseWorkflowForms(InputStream is) throws ParseException
ParseException
public static List<FormElement> parseReportParameters(InputStream is) throws ParseException
ParseException
public static Map<PropertyGroup,List<FormElement>> parsePropertyGroupsForms(String pgDefFile) throws IOException, ParseException
pgDefFile
- Path to file where is the Property Groups definition.IOException
ParseException
public static void resetPropertyGroupsForms()
public static List<FormElement> getPropertyGroupForms(Map<PropertyGroup,List<FormElement>> formsElements, String groupName)
public static Map<String,FormElement> getPropertyGroupFormsMap(Map<PropertyGroup,List<FormElement>> formsElements, String groupName)
public static FormElement getFormElement(Map<PropertyGroup,List<FormElement>> formsElements, String propertyName)
public static String getSelectLabel(String propertyName, String value) throws IOException, ParseException
IOException
ParseException
public static Map<String,String> toString(FormElement fe)
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.