public static class Attribute.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Attribute |
build() |
Attribute.Builder |
setDataType(DataType dataType) |
Attribute.Builder |
setEnumType(EnumTypedef enumtype) |
Attribute.Builder |
setName(java.lang.String name) |
Attribute.Builder |
setNumericValue(java.lang.Number val,
boolean isUnsigned) |
Attribute.Builder |
setStringValue(java.lang.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(java.util.List<java.lang.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(java.lang.String name)
public Attribute.Builder setNumericValue(java.lang.Number val, boolean isUnsigned)
public Attribute.Builder setStringValue(java.lang.String svalue)
svalue
- value of Attributepublic Attribute.Builder setValues(Array arr)
public Attribute.Builder setValues(java.util.List<java.lang.Object> values, boolean unsigned)