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

void ncsa::hdf::object::h5::H5ScalarDS::removeMetadata ( Object  info  )  throws HDF5Exception [inline, virtual]

Deletes an existing metadata from this data object.

info the metadata to delete.

Implements ncsa::hdf::object::DataFormat.

Definition at line 870 of file H5ScalarDS.java.

References attributeList, close(), getMetadata(), ncsa::hdf::object::Attribute::getName(), and open().

Referenced by test::unittests::H5ScalarDSTest::testRemoveMetadata(), and test::unittests::H5ScalarDSTest::testWriteMetadata().

        // only attribute metadata is supported.
        if (!(info instanceof Attribute)) {

        Attribute attr = (Attribute)info;
        int did = open();
        try {
            H5.H5Adelete(did, attr.getName());
            List attrList = getMetadata();
            nAttributes = attributeList.size();
        } finally {

Generated by  Doxygen 1.6.0   Back to index