Package org.grails.web.binding
Interface StructuredPropertyEditor
-
- All Known Implementing Classes:
StructuredDateEditor
public interface StructuredPropertyEditorA PropertyEditor that is able to edit structured properties (properties made up of multiple field values). The #assemble method takes the required type and a map of field values and create an instance of the required type.- Since:
- 1.0.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectassemble(java.lang.Class type, java.util.Map fieldValues)Assemble and bind a property value from the specified fieldValues and the given typejava.util.ListgetOptionalFields()java.util.ListgetRequiredFields()
-
-
-
Method Detail
-
getRequiredFields
java.util.List getRequiredFields()
- Returns:
- The required fields
-
getOptionalFields
java.util.List getOptionalFields()
- Returns:
- The optional fields
-
assemble
java.lang.Object assemble(java.lang.Class type, java.util.Map fieldValues) throws java.lang.IllegalArgumentExceptionAssemble and bind a property value from the specified fieldValues and the given type- Parameters:
type- The typefieldValues- The field values- Returns:
- A bound property
- Throws:
java.lang.IllegalArgumentException- Thrown in one of the field values is illegal
-
-