Modifier and Type | Class and Description |
---|---|
static class |
AttrRec.Builder
AttrRec builder
|
Modifier | Constructor and Description |
---|---|
protected |
AttrRec(AttrRec.Builder b)
Build it
|
Modifier and Type | Method and Description |
---|---|
static AttrRec |
fromJson(javax.json.JsonObject json)
Turn jet json into an instance of this
|
String |
getDescription()
The description of an attribute
|
long |
getId()
The ID number for an attribute
|
List<String> |
getUnits()
A list of possible units associated with the attribute
|
AttrValidationRec |
getValidation()
Additional validation rules if the attribute is free text
|
List<String> |
getValues()
A list of possible attribute values if the free text is not accepted
|
boolean |
isFreeText()
Indicates whether the field accepts free text.
|
boolean |
isVariant()
Indicates whether the attribute is a variant
|
javax.json.JsonObject |
toJSON()
Turn this into jet json
|
protected AttrRec(AttrRec.Builder b)
b
- builderpublic static AttrRec fromJson(javax.json.JsonObject json)
json
- jet jsonpublic long getId()
public String getDescription()
public boolean isFreeText()
public boolean isVariant()
public List<String> getValues()
public List<String> getUnits()
public AttrValidationRec getValidation()
Copyright © 2017. All rights reserved.