Package com.opencloud.rem.common.form
Class Form
- java.lang.Object
-
- com.opencloud.rem.common.form.Form
-
- All Implemented Interfaces:
Serializable
public class Form extends Object implements Serializable
Represents a generic form schema.
Use
FormBuilder
to construct a new form schema.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Field>
getFields()
Gets the fields that are part of this form schema.String
getName()
Gets the name of this form.boolean
hasIdField()
Gets whether or not this form contains an ID field.String
toString()
-
-
-
Method Detail
-
getName
public String getName()
Gets the name of this form.- Returns:
- name of this form or
null
if unset
-
getFields
public Map<String,Field> getFields()
Gets the fields that are part of this form schema.- Returns:
- an unmodifiable map of
Field
s keyed by their name - may be empty, but nevernull
-
hasIdField
public boolean hasIdField()
Gets whether or not this form contains an ID field.- Returns:
true
if any field in this form is marked as an ID field
-
-