Package ucar.nc2
Class Attribute.Builder
- java.lang.Object
-
- ucar.nc2.Attribute.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 zerosAttribute.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.Attribute.Builder
setValues(Array arr)
Set the values from an Array, and the DataType from values.getElementType().
-
-
-
Method Detail
-
setName
public Attribute.Builder setName(String name)
-
setDataType
public Attribute.Builder setDataType(DataType dataType)
-
setEnumType
public Attribute.Builder setEnumType(EnumTypedef enumtype)
-
setNumericValue
public Attribute.Builder setNumericValue(Number val, boolean isUnsigned)
-
setStringValue
public Attribute.Builder setStringValue(String svalue)
Set the value as a String, trimming trailing zeros- Parameters:
svalue
- value of Attribute
-
setValues
public 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.
-
setValues
public Attribute.Builder setValues(Array arr)
Set the values from an Array, and the DataType from values.getElementType().
-
build
public Attribute build()
-
-