public class Field extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
String |
displayName()
Gets the name to display for this field.
|
String |
getAttribute(String name)
Gets the specified attribute for this field.
|
String |
getDescription()
Gets the description for this field.
|
String |
getDisplayName()
Gets the display name for this field.
|
FieldType |
getFieldType()
Gets the
FieldType for this field. |
FieldValueProvider |
getFieldValueProvider()
Gets the
FieldValueProvider for this field. |
String |
getName()
Gets the name of this field.
|
boolean |
hasAttribute(String name)
Gets whether or not this field has the specified attribute.
|
boolean |
hasFieldValueProvider()
Gets whether or not this field has a
FieldValueProvider . |
boolean |
isId()
Gets whether or not this is an ID field.
|
boolean |
isNullable()
Gets whether or not this field is nullable.
|
boolean |
isReadable()
Gets whether or not this field is readable.
|
boolean |
isRequired()
Gets whether or not this field is required.
|
boolean |
isWritable()
Gets whether or not this field is writable.
|
String |
toString() |
public String getName()
null
public String getDisplayName()
null
if unsetpublic FieldType getFieldType()
FieldType
for this field.FieldType
- never null
public String getDescription()
null
if unsetpublic boolean isId()
true
if this field is an ID fieldpublic boolean isRequired()
true
if this field is requiredpublic boolean isReadable()
true
if this field is readablepublic boolean isWritable()
true
if this field is writablepublic boolean hasAttribute(String name)
name
- the name of the attribute to checktrue
if this field has the specified attributepublic String getAttribute(String name)
name
- the name of the attribute to getnull
public boolean hasFieldValueProvider()
FieldValueProvider
.true
if this field has a FieldValueProvider
public FieldValueProvider getFieldValueProvider()
FieldValueProvider
for this field.FieldValueProvider
or null
if unsetpublic boolean isNullable()
Gets whether or not this field is nullable.
To be nullable a field must meet all of the following conditions:
true
if this field is nullablepublic String displayName()
displayName
if set, otherwise the name