Logo Search packages:      
Sourcecode: jhdf version File versions  Download package

ncsa::hdf::object::Attribute Class Reference

Inheritance diagram for ncsa::hdf::object::Attribute:

ncsa::hdf::object::Metadata

List of all members.


Detailed Description

An attribute is a (name, value) pair of metadata attached to a primary data object such as dataset, group or named datatype.

Like a dataset, an attribute has a name, datatype and dataspace.

For more details on attibutes, see ahref="http://hdfgroup.org/HDF5/doc/UG/index.html">HDF5User'sGuide</a><p>Thefollowingcodeisanexampleofanattributewith1Dintegerarrayoftwoelements.<pre>//Exampleofcreatingeanewattribute//ThenameofthenewattributeStringname="Datarange";//Creatinganunsigned1-byteintegerdatatypeDatatypetype=newDatatype(Datatype.CLASS_INTEGER,//class1,//sizeinbytesDatatype.ORDER_LE,//byteorderDatatype.SIGN_NONE);//signedorunsigned//1-Darrayofsizetwolong[]dims=2;//Thevalueoftheattributeint[]value=0,255;//CreateanewattributeAttributedataRange=newAttribute(name, type, dims);//SettheattributevaluedataRange.setValue(value);//SeeFileFormat.writeAttribute()forhowtoattachanattributetoanobject,@seencsa.hdf.object.FileFormat#writeAttribute(HObject, Attribute, boolean)</pre>@seencsa.hdf.object.Datatype@version1.19/4/2007@authorPeterX.Cao

Definition at line 65 of file Attribute.java.


Public Member Functions

 Attribute (String attrName, Datatype attrType, long[] attrDims, Object attrValue)
 Attribute (String attrName, Datatype attrType, long[] attrDims)
long[] getDataDims ()
String getName ()
int getRank ()
Datatype getType ()
Object getValue ()
boolean isUnsigned ()
void setValue (Object theValue)
String toString (String delimiter)

Static Public Attributes

static final long serialVersionUID = HObject.serialVersionUID

Private Attributes

long[] dims
boolean isUnsigned
final String name
int rank
final Datatype type
Object value

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index