Package ucar.nc2
Class Attribute.Builder
java.lang.Object
ucar.nc2.Attribute.Builder
- Enclosing class:
- Attribute
A builder for Attributes
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setDataType(DataType dataType) setEnumType(EnumTypedef enumtype) setNumericValue(Number val, boolean isUnsigned) setStringValue(String svalue) Set the value as a String, trimming trailing zerosSet the values from a list of String or one of the primitives Integer, Float, Double, Short, Long, Integer, Byte.Set the values from an Array, and the DataType from values.getElementType().
-
Method Details
-
setName
-
setDataType
-
setEnumType
-
setNumericValue
-
setStringValue
Set the value as a String, trimming trailing zeros- Parameters:
svalue- value of Attribute
-
setValues
Set the values from a list of String or one of the primitives Integer, Float, Double, Short, Long, Integer, Byte. -
setValues
Set the values from an Array, and the DataType from values.getElementType(). -
build
-