Package ucar.nc2.dataset
Class VariableDS.Builder<T extends VariableDS.Builder<T>>
- java.lang.Object
-
- ucar.nc2.Variable.Builder<T>
-
- ucar.nc2.dataset.VariableDS.Builder<T>
-
- Direct Known Subclasses:
CoordinateAxis.Builder
- Enclosing class:
- VariableDS
public abstract static class VariableDS.Builder<T extends VariableDS.Builder<T>> extends Variable.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description List<String>
coordSysNames
Set<NetcdfDataset.Enhance>
enhanceMode
DataType
orgDataType
String
orgFileTypeId
Variable
orgVar
-
Fields inherited from class ucar.nc2.Variable.Builder
cache, dataType, ncfile, parentBuilder, parentStructureBuilder, proxyReader, shortName, spiObject
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addCoordinateSystemName(String coordSysName)
T
addEnhanceMode(Set<NetcdfDataset.Enhance> enhanceMode)
VariableDS
build(Group parentGroup)
Normally this is called by Group.build()Variable.Builder<?>
copy()
Copy of this builder.T
copyFrom(VariableDS.Builder<?> builder)
T
copyFrom(Variable orgVar)
Copy metadata from orgVar.String
getDescription()
String
getUnits()
protected abstract T
self()
T
setDesc(String desc)
T
setEnhanceMode(Set<NetcdfDataset.Enhance> enhanceMode)
void
setFillValueIsMissing(boolean b)
void
setInvalidDataIsMissing(boolean b)
void
setMissingDataIsMissing(boolean b)
T
setOriginalDataType(DataType orgDataType)
T
setOriginalFileTypeId(String orgFileTypeId)
T
setOriginalName(String orgName)
T
setOriginalVariable(Variable orgVar)
T
setUnits(String units)
-
Methods inherited from class ucar.nc2.Variable.Builder
addAttribute, addAttributes, addDimension, addDimensions, copyFrom, getAttributeContainer, getDimensionName, getDimensionNames, getDimensions, getDimensionsAll, getElementSize, getEnumTypeName, getFirstDimensionName, getFullName, getParentGroupBuilder, getParentStructureBuilder, getRank, makeDimensionsString, makeSliceBuilder, replaceDimensionByName, resetCache, setAutoGen, setCachedData, setCaching, setDataType, setDimensions, setDimensionsAnonymous, setDimensionsByName, setElementSize, setEnumTypeName, setIsScalar, setName, setNcfile, setParentGroupBuilder, setProxyReader, setSPobject, toString
-
-
-
-
Method Detail
-
self
protected abstract T self()
- Specified by:
self
in classVariable.Builder<T extends VariableDS.Builder<T>>
-
setEnhanceMode
public T setEnhanceMode(Set<NetcdfDataset.Enhance> enhanceMode)
-
addEnhanceMode
public T addEnhanceMode(Set<NetcdfDataset.Enhance> enhanceMode)
-
addCoordinateSystemName
public void addCoordinateSystemName(String coordSysName)
-
setFillValueIsMissing
public void setFillValueIsMissing(boolean b)
-
setInvalidDataIsMissing
public void setInvalidDataIsMissing(boolean b)
-
setMissingDataIsMissing
public void setMissingDataIsMissing(boolean b)
-
copy
public Variable.Builder<?> copy()
Copy of this builder.- Overrides:
copy
in classVariable.Builder<T extends VariableDS.Builder<T>>
-
copyFrom
public T copyFrom(Variable orgVar)
Copy metadata from orgVar.- Overrides:
copyFrom
in classVariable.Builder<T extends VariableDS.Builder<T>>
-
copyFrom
public T copyFrom(VariableDS.Builder<?> builder)
-
getUnits
public String getUnits()
-
getDescription
public String getDescription()
-
build
public VariableDS build(Group parentGroup)
Normally this is called by Group.build()- Overrides:
build
in classVariable.Builder<T extends VariableDS.Builder<T>>
-
-