Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AttrRec |
build()
Build the AttrRec instance
|
AttrRec.Builder |
setDescription(String description)
The description of an attribute
|
AttrRec.Builder |
setFreeText(boolean freeText)
Indicates whether the field accepts free text.
|
AttrRec.Builder |
setId(long id)
The ID number for an attribute
|
AttrRec.Builder |
setUnits(List<String> units)
A list of possible units associated with the attribute
|
AttrRec.Builder |
setValidation(AttrValidationRec validation)
Additional validation rules if the attribute is free text
|
AttrRec.Builder |
setValues(List<String> values)
A list of possible attribute values if the free text is not accepted
|
AttrRec.Builder |
setVariant(boolean variant)
Indicates whether the attribute is a variant
|
public AttrRec.Builder setId(long id)
id
- the id to setpublic AttrRec.Builder setDescription(String description)
description
- the description to setpublic AttrRec.Builder setFreeText(boolean freeText)
freeText
- the freeText to setpublic AttrRec.Builder setVariant(boolean variant)
variant
- the variant to setpublic AttrRec.Builder setValues(List<String> values)
values
- the values to setpublic AttrRec.Builder setUnits(List<String> units)
units
- the units to setpublic AttrRec.Builder setValidation(AttrValidationRec validation)
validation
- the validation to setpublic AttrRec build()
Copyright © 2017. All rights reserved.