public class Field
extends java.lang.Object
Constructor and Description |
---|
Field(java.lang.String name,
FieldType type,
java.lang.Object value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.List<FileDto> |
getAsFileList()
Gets the field value as file list object.
|
java.lang.Long |
getAsLong()
Gets the field value as long object.
|
java.lang.String |
getAsString()
Gets the field value as string object.
|
java.util.List<java.lang.String> |
getAsStringList()
Gets the field value as string list.
|
java.util.List<Record> |
getAsSubtable()
Gets the field value as a sub table.
|
UserDto |
getAsUserInfo()
Gets the field value as user info object.
|
java.util.List<UserDto> |
getAsUserList()
Gets the field value as user list object.
|
FieldType |
getFieldType()
Gets the field type.
|
LazyUploader |
getLazyUploader()
Gets the lazy uploader.
|
java.lang.String |
getName()
Gets the field name.
|
java.lang.Object |
getValue()
Gets the field value.
|
boolean |
isEmpty()
returns if the value is empty.
|
boolean |
isLazyUpload()
return whether the lazy uploader was set.
|
void |
setFieldType(FieldType fieldType)
Sets the field type.
|
void |
setLazyUploader(LazyUploader lazyUploader)
Sets the lazy uploader.
|
void |
setName(java.lang.String name)
Sets the field name.
|
void |
setValue(java.lang.Object value)
Sets the field value.
|
public Field(java.lang.String name, FieldType type, java.lang.Object value)
name
- field nametype
- field typevalue
- field valuepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- field namepublic FieldType getFieldType()
public void setFieldType(FieldType fieldType)
fieldType
- field type objectpublic java.lang.Object getValue()
public boolean isEmpty()
public void setValue(java.lang.Object value)
value
- an object represents the field valuepublic java.lang.String getAsString()
public java.lang.Long getAsLong()
public java.util.List<java.lang.String> getAsStringList()
public UserDto getAsUserInfo()
public java.util.List<FileDto> getAsFileList()
public java.util.List<UserDto> getAsUserList()
public java.util.List<Record> getAsSubtable()
public boolean isLazyUpload()
public void setLazyUploader(LazyUploader lazyUploader)
lazyUploader
- uploaderpublic LazyUploader getLazyUploader()