Package ucar.nc2
Class Structure.Builder<T extends Structure.Builder<T>>
- java.lang.Object
-
- ucar.nc2.Variable.Builder<T>
-
- ucar.nc2.Structure.Builder<T>
-
- Direct Known Subclasses:
Sequence.Builder
,StructureDS.Builder
- Enclosing class:
- Structure
public abstract static class Structure.Builder<T extends Structure.Builder<T>> extends Variable.Builder<T>
A builder of Structures.
-
-
Field Summary
Fields Modifier and Type Field Description List<Variable.Builder<?>>
vbuilders
-
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 Concrete Methods Modifier and Type Method Description T
addMemberVariable(Variable.Builder<?> v)
T
addMemberVariables(List<Variable.Builder<?>> vars)
Structure
build(Group parentGroup)
Normally this is only called by Group.build()Optional<Variable.Builder<?>>
findMemberVariable(String name)
boolean
removeMemberVariable(String memberName)
Remove memeber variable, if present.boolean
replaceMemberVariable(Variable.Builder<?> replacement)
Remove member variable, if present.-
Methods inherited from class ucar.nc2.Variable.Builder
addAttribute, addAttributes, addDimension, addDimensions, copy, copyFrom, copyFrom, getAttributeContainer, getDimensionName, getDimensionNames, getDimensions, getDimensionsAll, getElementSize, getEnumTypeName, getFirstDimensionName, getFullName, getParentGroupBuilder, getParentStructureBuilder, getRank, makeDimensionsString, makeSliceBuilder, replaceDimensionByName, resetCache, self, setAutoGen, setCachedData, setCaching, setDataType, setDimensions, setDimensionsAnonymous, setDimensionsByName, setElementSize, setEnumTypeName, setIsScalar, setName, setNcfile, setParentGroupBuilder, setProxyReader, setSPobject, toString
-
-
-
-
Field Detail
-
vbuilders
public List<Variable.Builder<?>> vbuilders
-
-
Method Detail
-
addMemberVariable
public T addMemberVariable(Variable.Builder<?> v)
-
addMemberVariables
public T addMemberVariables(List<Variable.Builder<?>> vars)
-
removeMemberVariable
public boolean removeMemberVariable(String memberName)
Remove memeber variable, if present. Return whether it was present
-
replaceMemberVariable
public boolean replaceMemberVariable(Variable.Builder<?> replacement)
Remove member variable, if present. Return whether it was present
-
findMemberVariable
public Optional<Variable.Builder<?>> findMemberVariable(String name)
-
build
public Structure build(Group parentGroup)
Normally this is only called by Group.build()- Overrides:
build
in classVariable.Builder<T extends Structure.Builder<T>>
-
-