public class Field extends QTestBaseModel<Field>
NL, properties, RESERVED_NAME| Constructor and Description |
|---|
Field()
Creates the field instance.
|
| Modifier and Type | Method and Description |
|---|---|
Field |
addAllowedValue(AllowedValue allowedValue)
Add allowed value to field.
|
Field |
clone() |
java.lang.String |
elementName() |
java.util.List<AllowedValue> |
getAllowedValues()
Return the list of allowed values.
|
java.lang.String |
getAttributeType() |
DataType |
getDataType() |
int |
getDataTypeId() |
java.lang.Long |
getId() |
java.lang.String |
getLabel() |
java.lang.Integer |
getOrder() |
java.lang.String |
getOriginName() |
java.lang.String |
getSearchKey() |
java.lang.Boolean |
isActive() |
java.lang.Boolean |
isConstrained() |
java.lang.Boolean |
isFreeTextSearch() |
java.lang.Boolean |
isMultiple() |
java.lang.Boolean |
isRequired() |
java.lang.Boolean |
isSearchable() |
java.lang.Boolean |
isSystemField() |
Field |
setActive(java.lang.Boolean active) |
Field |
setAllowedValues(java.util.List<AllowedValue> allowedValues)
Sets the list of allowed value objects.
|
Field |
setAttributeType(java.lang.String attributeType)
Sets the attribute type.
|
Field |
setConstrained(java.lang.Boolean constrained)
Sets the field constrained value.
|
Field |
setDataType(DataType dataType)
Sets the field data type.
|
Field |
setDataTypeId(int dataTypeId) |
Field |
setFreeTextSearch(java.lang.Boolean freeTextSearch)
Sets the free text search flag value.
|
Field |
setId(java.lang.Long id)
Sets the field identifier value.
|
Field |
setLabel(java.lang.String label)
Sets field label.
|
Field |
setMultiple(java.lang.Boolean multiple)
Sets the multiple flag value.
|
Field |
setOrder(java.lang.Integer order)
Sets the field order.
|
Field |
setOriginName(java.lang.String originName) |
Field |
setRequired(java.lang.Boolean required)
Sets the required flag.
|
Field |
setSearchable(java.lang.Boolean searchable)
Sets the field searchable flag value.
|
Field |
setSearchKey(java.lang.String searchKey)
Sets the field search key value.
|
Field |
setSystemField(java.lang.Boolean systemField)
Sets the system field flag.
|
java.lang.String |
toString() |
Field |
withActive(java.lang.Boolean active) |
Field |
withAllowedValues(java.util.List<AllowedValue> allowedValues)
Sets the list of allowed value objects and return itself.
|
Field |
withAttributeType(java.lang.String attributeType)
Sets the attribute type value and return itself.
|
Field |
withConstrained(java.lang.Boolean constrained)
Sets the field constrained value and return itself.
|
Field |
withDataType(DataType dataType)
Sets the field data type and return current instance.
|
Field |
withFreeTextSearch(java.lang.Boolean freeTextSearch)
Sets the free text search flag value and return current field instance.
|
Field |
withId(java.lang.Long id)
Sets the field identifier value and return itself.
|
Field |
withLabel(java.lang.String label)
Sets the field label value and return itself.
|
Field |
withMultiple(java.lang.Boolean multiple)
Sets the multiple flag value and return itself.
|
Field |
withOrder(java.lang.Integer order)
Sets the field order and return itself.
|
Field |
withOriginName(java.lang.String originName) |
Field |
withRequired(java.lang.Boolean required)
Sets the required flag and return itself.
|
Field |
withSearchable(java.lang.Boolean searchable)
Sets the field searchable flag value and return itself.
|
Field |
withSearchKey(java.lang.String searchKey)
Sets the field search key value and return itself.
|
Field |
withSystemField(java.lang.Boolean systemField)
Sets the system field flag and return field instance.
|
getBinaryFromInputStream, getLinks, getWebUrl, setLinks, setWebUrl, validateInputStream, withLinks, withWebUrlappendPropertiesTo, appendPropertiesTo, asDate, asDate, asInteger, asInteger, asLong, asLong, asString, asString, getProperties, getProperty, getPropertyMap, hasProperties, hasProperty, isVisible, jsonElementName, removeProperty, setPropertiesFrom, setProperty, toJsonpublic java.lang.Long getId()
public Field setId(java.lang.Long id)
id - the given field identifier value to set.public Field withId(java.lang.Long id)
id - the given field identifier value to set.public java.lang.String getLabel()
public Field setLabel(java.lang.String label)
label - the given field label value to set.public Field withLabel(java.lang.String label)
label - the given field label value.public java.lang.String getOriginName()
public Field setOriginName(java.lang.String originName)
originName - originNamepublic Field withOriginName(java.lang.String originName)
originName - originNamepublic java.lang.Boolean isRequired()
public Field setRequired(java.lang.Boolean required)
required - the given required flag value to set.public Field withRequired(java.lang.Boolean required)
required - the givne required flag value to set.public java.lang.Boolean isConstrained()
public Field setConstrained(java.lang.Boolean constrained)
constrained - the given field constrained value to set.public Field withConstrained(java.lang.Boolean constrained)
constrained - the given field constrained value to set.public java.lang.Boolean isSearchable()
public Field setSearchable(java.lang.Boolean searchable)
searchable - the given searchable flag value to set.public Field withSearchable(java.lang.Boolean searchable)
searchable - the given searchable flag value to set.public java.lang.Boolean isFreeTextSearch()
public Field setFreeTextSearch(java.lang.Boolean freeTextSearch)
freeTextSearch - the given free text search flag value to set.public Field withFreeTextSearch(java.lang.Boolean freeTextSearch)
freeTextSearch - the given free text search flag value to set.public java.lang.String getSearchKey()
public Field setSearchKey(java.lang.String searchKey)
searchKey - the given search key value to set.public Field withSearchKey(java.lang.String searchKey)
searchKey - the given search key value to set.public int getDataTypeId()
public DataType getDataType()
public Field setDataTypeId(int dataTypeId)
public Field setDataType(DataType dataType)
dataType - the given field data type.public Field withDataType(DataType dataType)
dataType - the given field data type.public java.lang.Integer getOrder()
public Field setOrder(java.lang.Integer order)
order - the given field order value to set.public Field withOrder(java.lang.Integer order)
order - the given field order value to set.public java.lang.Boolean isMultiple()
public Field setMultiple(java.lang.Boolean multiple)
multiple - the given multiple flag value to set.public Field withMultiple(java.lang.Boolean multiple)
multiple - the given multiple flag value to set.public java.lang.String getAttributeType()
public Field setAttributeType(java.lang.String attributeType)
attributeType - the given attribute type to set.public Field withAttributeType(java.lang.String attributeType)
attributeType - the given attribute type value to set.public java.lang.Boolean isSystemField()
public Field setSystemField(java.lang.Boolean systemField)
systemField - the given flag that mark the field is system field or not.public Field withSystemField(java.lang.Boolean systemField)
systemField - the given flag that mark the field is system field or not.public java.lang.Boolean isActive()
public Field setActive(java.lang.Boolean active)
active - activepublic Field withActive(java.lang.Boolean active)
active - activepublic java.util.List<AllowedValue> getAllowedValues()
public Field setAllowedValues(java.util.List<AllowedValue> allowedValues)
allowedValues - the given the list of allowed value objects to set.public Field withAllowedValues(java.util.List<AllowedValue> allowedValues)
allowedValues - the given list of allowed value objects to set.public Field addAllowedValue(AllowedValue allowedValue)
allowedValue - the given allowed value object to add.public Field clone()
clone in class PropertyContainerpublic java.lang.String elementName()
elementName in class PropertyContainerpublic java.lang.String toString()
toString in class PropertyContainer