public class Form extends Object
| Modifier and Type | Field and Description |
|---|---|
private Map<String,MetadataComment[]> |
_comments |
private Map<String,Object> |
_fields |
| Constructor and Description |
|---|
Form() |
| Modifier and Type | Method and Description |
|---|---|
BinaryField |
getBinaryField(String fieldName)
Returns the named field's value as
BinaryField. |
SimpleField<Boolean> |
getBooleanArray(String fieldName)
Returns the named field's value as boolean array.
|
MetadataComment[] |
getCommentArray(String metadataName)
Return the array of comments for the named field.
|
Form |
getCompositeField(String fieldName)
Returns the named field's value as
Form. |
SimpleField<Content> |
getContentArray(String fieldName)
Returns the named field's value as a content array.
|
SimpleField<Date> |
getDateArray(String fieldName)
Returns the named field's value as Date array.
|
SimpleField<Double> |
getDoubleArray(String fieldName)
Returns the named field's value as double array.
|
ExternalizableField |
getExternalizableField(String fieldName)
Returns the named field's value as a
ExternalizableField |
AbstractField |
getField(String fieldName)
Get a non-typed field.
|
Set<String> |
getFieldNames()
Returns an array containing field names.
|
SimpleField<Long> |
getLongArray(String fieldName)
Returns the named field's value as long array.
|
SimpleField<MultilingualString> |
getMultilingualStringArray(String fieldName)
Returns the named field's value as MultilingualString array.
|
ReferenceField |
getReferenceField(String fieldName)
Returns the named field's value as
ReferenceField. |
RepeaterField |
getRepeaterField(String fieldName)
Returns the named field's value as
RepeaterField. |
RichTextField |
getRichTextField(String fieldName)
Returns the named field's value as
RichTextField. |
SimpleField<String> |
getStringArray(String fieldName)
Returns the named field's value as String array.
|
SubContentField |
getSubContentField(String fieldName)
Returns the named field's value as
SubContentField. |
SimpleField<UserIdentity> |
getUserArray(String fieldName)
Returns the named field's value as UserIdentity array.
|
void |
setCommentsField(String fieldName,
MetadataComment[] comments)
Set the comment of a field
|
void |
setCompositeField(String fieldName,
Form compositeField)
Set a composite field.
|
void |
setField(String fieldName,
AbstractField values)
Set a multi-valued date field.
|
String |
toString() |
private final Map<String,MetadataComment[]> _comments
public Form()
public Set<String> getFieldNames()
public Form getCompositeField(String fieldName)
Form.fieldName - the field name.Form.public void setCompositeField(String fieldName, Form compositeField)
fieldName - the field name.compositeField - the composite field.public RepeaterField getRepeaterField(String fieldName)
RepeaterField.fieldName - the field name.RepeaterField.public RichTextField getRichTextField(String fieldName)
RichTextField.fieldName - the field name.public BinaryField getBinaryField(String fieldName)
BinaryField.fieldName - the field name.public SubContentField getSubContentField(String fieldName)
SubContentField.fieldName - the field name.public ReferenceField getReferenceField(String fieldName)
ReferenceField.fieldName - the field name.public SimpleField<String> getStringArray(String fieldName)
fieldName - the field name.public SimpleField<Date> getDateArray(String fieldName)
fieldName - the field name.public SimpleField<Long> getLongArray(String fieldName)
fieldName - the field name.public SimpleField<Double> getDoubleArray(String fieldName)
fieldName - the field name.public SimpleField<Boolean> getBooleanArray(String fieldName)
fieldName - the field name.public SimpleField<UserIdentity> getUserArray(String fieldName)
fieldName - the field name.public SimpleField<MultilingualString> getMultilingualStringArray(String fieldName)
fieldName - the field name.public SimpleField<Content> getContentArray(String fieldName)
fieldName - the field name.public ExternalizableField getExternalizableField(String fieldName)
ExternalizableFieldfieldName - the field name.public void setField(String fieldName, AbstractField values)
fieldName - the field name.values - the Date array containing values of this field.public AbstractField getField(String fieldName)
fieldName - The name of the fieldpublic MetadataComment[] getCommentArray(String metadataName)
metadataName - the field name.public void setCommentsField(String fieldName, MetadataComment[] comments)
fieldName - The field namecomments - The array of metadata comments