public class BasicFieldData extends Object implements PresentationElement.FieldInfo
PresentationElement.FieldInfo
.Constructor and Description |
---|
BasicFieldData(String nameIn,
String textIn,
int typeIn,
Value valueIn,
String castType)
Creates a new BasicFieldData.
|
Modifier and Type | Method and Description |
---|---|
String |
getCastType()
Gets the type the value to which this BasicFieldData applies must be
casted in order to access the field, or null if no cast is needed.
|
String |
getName()
Gets the field name.
|
String |
getText()
Gets the text for the field.
|
int |
getType()
Gets the field type.
|
Value |
getValue()
Gets the field value.
|
boolean |
isNull()
Determines if the field holds a null value.
|
public BasicFieldData(String nameIn, String textIn, int typeIn, Value valueIn, String castType)
nameIn
- the field name.textIn
- the field value text.typeIn
- the field type. One of
PresentationElement.FI_OBJECT
and
PresentationElement.FI_PRIMITIVE
.valueIn
- the field value.castType
- name of type needed in cast to access the field, or null
if no cast is needed.public String getCastType()
public String getName()
getName
in interface PresentationElement.FieldInfo
public String getText()
getText
in interface PresentationElement.FieldInfo
public int getType()
getType
in interface PresentationElement.FieldInfo
PresentationElement.FI_OBJECT
,
PresentationElement.FI_PRIMITIVE
, and PresentationElement.FI_ERROR
.public Value getValue()
public boolean isNull()
isNull
in interface PresentationElement.FieldInfo