public class HDF5Group extends HDF5Object
This class is a container for the parameters to the HDF5 Group Object.
HDF5 group is a grouping structure containing instances of zero or more groups or datasets, together with supporting metadata.
Working with groups and group members is similar in many ways to working with directories and files in UNIX. As with UNIX directories and files, objects in an HDF5 file are often described by giving their full (or absolute) path names
For details of the HDF5 libraries, see the HDF5 Documentation at: http://hdf.ncsa.uiuc.edu/HDF5/doc/
Modifier and Type | Field and Description |
---|---|
protected Vector |
members
members of the group
|
protected HDF5Group |
parent
the parent group
|
Constructor and Description |
---|
HDF5Group()
Constructs an HDF5Group
|
HDF5Group(int loc_id,
String name)
Opens an existing HDF5 Group.
|
HDF5Group(int loc_id,
String gname,
int name_length)
Creates a new HDF5 Group.
|
Modifier and Type | Method and Description |
---|---|
void |
addMember(Object member)
Adds a new member to the group.
|
boolean |
contains(Object member)
Tests if the specified object is a member of this group.
|
protected void |
finalize()
finalize() is called by the garbage collector on the object when garbage
collection determines that there are no more references to the object.
|
Object |
getMemberAt(int memberIndex)
Returns the member at index memberIndex
|
int |
getMemberCount()
Returns the number of members the HDF5Group contains
|
Vector |
getMembers()
Returns the members of the group
|
HDF5Group |
getParent()
Returns the parent of the group
|
boolean |
isEmpty()
Returns true if the HDF5Group has no member
|
boolean |
isRoot()
Returns true if the HDF5Group is the root group
|
boolean |
removeMember(Object member)
Removes the member from this group
|
void |
removeMemberAt(int index)
Deletes the component at the specified index.
|
void |
setParent(HDF5Group p)
Sets the parent of this group
|
String |
toString()
Converts this object to a String representation.
|
getDescription, getID, getName, getShortName, getType, init, setID, setShortName, setType
protected Vector members
protected HDF5Group parent
public HDF5Group()
public HDF5Group(int loc_id, String gname, int name_length)
loc_id
- The file or group identifier.gname
- The absolute or relative name of the new group.name_length
- The maximum length of the name.public HDF5Group(int loc_id, String name)
loc_id
- The file or group identifier..name
- The absolute or relative name of the new group..public void setParent(HDF5Group p)
p
- the parent of the HDF5Grouppublic boolean contains(Object member)
member
- a memberpublic void addMember(Object member)
member
- the new member to be added to the grouppublic void removeMemberAt(int index)
public boolean removeMember(Object member)
member
- the member to be removed.public Vector getMembers()
public HDF5Group getParent()
public Object getMemberAt(int memberIndex)
memberIndex
- the index of the group memberpublic int getMemberCount()
public boolean isEmpty()
public boolean isRoot()
public String toString()
toString
in class HDF5Object
protected void finalize() throws Throwable
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.