Class FieldTypes
java.lang.Object
com.onenetwork.platform.common.field.FieldTypes
public class FieldTypes
extends java.lang.Object
List of all available
FieldType
as static constants.-
Field Summary
Fields Modifier and Type Field Description static FieldType
ADDRESS
The Address field type represents an international mailing address.static FieldType
ATTACHMENTS
The Attachment field type contains an Attachment object which refers to a document such as a presentation, zip file, etc.static FieldType
BOOLEAN
Refers to a booelan data type; values will be of type Boolean.static FieldType
COMPOSITE
Composite fields are used to define fields that need multiple fields to give them a complete definition.static FieldType
CURRENCY
Refers to the currency field type; values will be of typeDouble
.static FieldType
DATE
Refers to a date data type; values will be of typeCalendar
.static FieldType
DATE_RANGE
Refers to a Date Range field; values will be of typeDateRange
static FieldType
DOUBLE
Refers to the double field type; values will be of typeDouble
.static FieldType
DURATION
Represents an amount of time, in ISO 8601 format.static FieldType
DYNA_FIELD
Represents the dynamic field which is a runtime-defined field which can part of the key for a model.static FieldType
ERROR
This field type is used to represent an error on a model.static FieldType
FLOAT
Represents the float data type; value will be of typeFloat
.static FieldType
HYPERLINK
Represents a hyper link field; value will be of type String.static FieldType
INTEGER
Represents an integer field type; returned value will be of typeInteger
static FieldType
LONG
Represents a long field type; returned value will be of typeLong
static FieldType
MODEL_LINK
A Model Link field represents a reference from one model to another.static FieldType
STATE
Represents a state field on a model; value is of type Stringstatic FieldType
STRING
Represents a string field; value will be of type String.static FieldType
STRING_ENUMERATION
Represents a string enumeration; value will be of type String. -
Constructor Summary
Constructors Constructor Description FieldTypes()
-
Method Summary
-
Field Details
-
ADDRESS
The Address field type represents an international mailing address. It consists of various address field components, where each component specifies one of street, city, state, zip, etc. The required components and optional components may vary for different country codes TheAddress
object is used to represent an ADDRESS field value. Example of creating an address object:AddressService addressSrv = Services.get(AddressService.class); Address address = addressSrv.createAddress(Country.US); address.set(AddressComponentType.STREET_1, "4055 Valley View Ln"); address.set(AddressComponentType.CITY, "Dallas"); address.set(AddressComponentType.STATE, "TX");
-
ATTACHMENTS
The Attachment field type contains an Attachment object which refers to a document such as a presentation, zip file, etc. Thecom.onenetwork.platform.data.model.Attachment
object is used to represent an ATTACHMENT field value. -
BOOLEAN
Refers to a booelan data type; values will be of type Boolean. -
COMPOSITE
Composite fields are used to define fields that need multiple fields to give them a complete definition. One such example would be a volume field, which is a combination of the quantity and unit of measure. A composite value will be represented as aList
of objects with each element in the array being the individual field of the component. -
CURRENCY
Refers to the currency field type; values will be of typeDouble
. -
DATE
Refers to a date data type; values will be of typeCalendar
. -
DATE_RANGE
Refers to a Date Range field; values will be of typeDateRange
-
DOUBLE
Refers to the double field type; values will be of typeDouble
. -
DURATION
Represents an amount of time, in ISO 8601 format. (PnYnMnDTnHnMnS) See http://en.wikipedia.org/wiki/ISO_8601#Durations -
DYNA_FIELD
Represents the dynamic field which is a runtime-defined field which can part of the key for a model. It will also be possible to have non-key DynaFields. -
ERROR
This field type is used to represent an error on a model. Value will be of typeStatusMessage
-
FLOAT
Represents the float data type; value will be of typeFloat
. -
HYPERLINK
Represents a hyper link field; value will be of type String. The User Interface will not do any escaping of hyperlink fields, allowing them to render natively. -
INTEGER
Represents an integer field type; returned value will be of typeInteger
-
LONG
Represents a long field type; returned value will be of typeLong
-
MODEL_LINK
A Model Link field represents a reference from one model to another. Value will be of typeModelLinkKey
. This object contains the surrogate id of the referenced object, along with its natural key components. -
STATE
Represents a state field on a model; value is of type String -
STRING
Represents a string field; value will be of type String. -
STRING_ENUMERATION
Represents a string enumeration; value will be of type String.
-
-
Constructor Details
-
FieldTypes
public FieldTypes()
-