public class Field extends Object implements Serializable
Describes the name and data type at a field.
| Constructor and Description |
|---|
Field() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
The name of the field.
|
String |
getType()
The datatype of the field.
|
int |
hashCode() |
void |
setName(String name)
The name of the field.
|
void |
setType(FieldType type)
The datatype of the field.
|
void |
setType(String type)
The datatype of the field.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Field |
withName(String name)
The name of the field.
|
Field |
withType(FieldType type)
The datatype of the field.
|
Field |
withType(String type)
The datatype of the field.
|
public String getName()
The name of the field.
The name of the field.
public void setName(String name)
The name of the field.
name - The name of the field.
public Field withName(String name)
The name of the field.
Returns a reference to this object so that method calls can be chained together.
name - The name of the field.
public String getType()
The datatype of the field.
Constraints:
Allowed Values: Number, String, Boolean
The datatype of the field.
FieldTypepublic void setType(String type)
The datatype of the field.
Constraints:
Allowed Values: Number, String, Boolean
type - The datatype of the field.
FieldTypepublic Field withType(String type)
The datatype of the field.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Number, String, Boolean
type - The datatype of the field.
FieldTypepublic void setType(FieldType type)
The datatype of the field.
Constraints:
Allowed Values: Number, String, Boolean
type - The datatype of the field.
FieldTypepublic Field withType(FieldType type)
The datatype of the field.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Number, String, Boolean
type - The datatype of the field.
FieldTypepublic String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.