Modifier and Type | Method and Description |
---|---|
Attribute |
build() |
Attribute.Builder |
setDataType(DataType dataType) |
Attribute.Builder |
setEnumType(EnumTypedef enumtype) |
Attribute.Builder |
setName(String name) |
Attribute.Builder |
setNumericValue(Number val,
boolean isUnsigned) |
Attribute.Builder |
setStringValue(String svalue)
Set the value as a String, trimming trailing zeros
|
Attribute.Builder |
setValues(Array arr)
Set the values from an Array, and the DataType from values.getElementType().
|
Attribute.Builder |
setValues(List<Object> values,
boolean unsigned)
Set the values from a list of String or one of the primitives
Integer, Float, Double, Short, Long, Integer, Byte.
|
public Attribute build()
public Attribute.Builder setDataType(DataType dataType)
public Attribute.Builder setEnumType(EnumTypedef enumtype)
public Attribute.Builder setName(String name)
public Attribute.Builder setNumericValue(Number val, boolean isUnsigned)
public Attribute.Builder setStringValue(String svalue)
svalue
- value of Attributepublic Attribute.Builder setValues(Array arr)
public Attribute.Builder setValues(List<Object> values, boolean unsigned)