|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.netcdf.NetcdfWrapper
public abstract class NetcdfWrapper
Abstract "decorator" class for wrapping a Netcdf
object. All
method invocations of the Netcdf
API are forwarded to a contained
Netcdf
object. This class is designed to be extended.
Constructor Summary | |
---|---|
protected |
NetcdfWrapper(Netcdf netcdf)
Constructs from a netCDF object. |
Method Summary | |
---|---|
boolean |
contains(java.lang.Object oo)
Tests an object is in this dataset. |
boolean |
contains(java.lang.String name)
Tests if the Variable identified by name is in this dataset. |
Variable |
get(java.lang.String name)
Retrieve the variable associated with a name. |
Attribute |
getAttribute(java.lang.String name)
Returns a global, netCDF attribute by name. |
AttributeSet |
getAttributes()
Returns the set of global, netCDF attributes in this dataset. |
DimensionSet |
getDimensions()
Returns all the netCDF dimensions in this dataset. |
Netcdf |
getNetcdf()
Returns the wrapped Netcdf object. |
VariableIterator |
iterator()
Returns an iterator over the variables. |
int |
size()
Returns the number of variables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NetcdfWrapper(Netcdf netcdf) throws java.lang.NullPointerException
netcdf
- The netCDF dataset to be wrapped.NullPointerException
- if the argument is null
.
java.lang.NullPointerException
Method Detail |
---|
public final Netcdf getNetcdf()
Netcdf
object.
Netcdf
object.public int size()
size
in interface Netcdf
public VariableIterator iterator()
iterator
in interface Netcdf
VariableIterator
public Variable get(java.lang.String name)
null
is returned.
get
in interface Netcdf
name
- Name of the desired variable.
null
.public boolean contains(java.lang.String name)
name
is in this dataset.
contains
in interface Netcdf
name
- Name of the desired variable.
true
if and only if this dataset
contains the named variable.public boolean contains(java.lang.Object oo)
contains
in interface Netcdf
oo
- An object.
true
if and only if this dataset
contains oo
.public DimensionSet getDimensions()
getDimensions
in interface Netcdf
public AttributeSet getAttributes()
getAttributes
in interface Netcdf
public Attribute getAttribute(java.lang.String name)
null
is returned.
getAttribute
in interface Netcdf
The
- name of the attribute.
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |