visad.data.hdf5.hdf5objects
Class HDF5Group
- java.lang.Object
-
- visad.data.hdf5.hdf5objects.HDF5Object
-
- visad.data.hdf5.hdf5objects.HDF5Group
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- HDF5GroupAdapted
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/
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description HDF5Group()Constructs an HDF5GroupHDF5Group(int loc_id, java.lang.String name)Opens an existing HDF5 Group.HDF5Group(int loc_id, java.lang.String gname, int name_length)Creates a new HDF5 Group.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddMember(java.lang.Object member)Adds a new member to the group.booleancontains(java.lang.Object member)Tests if the specified object is a member of this group.java.lang.ObjectgetMemberAt(int memberIndex)Returns the member at index memberIndexintgetMemberCount()Returns the number of members the HDF5Group containsjava.util.VectorgetMembers()Returns the members of the groupHDF5GroupgetParent()Returns the parent of the groupbooleanisEmpty()Returns true if the HDF5Group has no memberbooleanisRoot()Returns true if the HDF5Group is the root groupbooleanremoveMember(java.lang.Object member)Removes the member from this groupvoidremoveMemberAt(int index)Deletes the component at the specified index.voidsetParent(HDF5Group p)Sets the parent of this groupjava.lang.StringtoString()Converts this object to a String representation.-
Methods inherited from class visad.data.hdf5.hdf5objects.HDF5Object
getDescription, getID, getName, getShortName, getType, init, setID, setShortName, setType
-
-
-
-
Constructor Detail
-
HDF5Group
public HDF5Group()
Constructs an HDF5Group
-
HDF5Group
public HDF5Group(int loc_id, java.lang.String gname, int name_length)Creates a new HDF5 Group.- Parameters:
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.
-
HDF5Group
public HDF5Group(int loc_id, java.lang.String name)Opens an existing HDF5 Group.- Parameters:
loc_id- The file or group identifier..name- The absolute or relative name of the new group..
-
-
Method Detail
-
setParent
public void setParent(HDF5Group p)
Sets the parent of this group- Parameters:
p- the parent of the HDF5Group
-
contains
public boolean contains(java.lang.Object member)
Tests if the specified object is a member of this group.- Parameters:
member- a member- Returns:
- true if the specified object is a member of the group; false otherwise.
-
addMember
public void addMember(java.lang.Object member)
Adds a new member to the group.- Parameters:
member- the new member to be added to the group
-
removeMemberAt
public void removeMemberAt(int index)
Deletes the component at the specified index.
-
removeMember
public boolean removeMember(java.lang.Object member)
Removes the member from this group- Parameters:
member- the member to be removed.- Returns:
- true if the member was a component of this vector; false otherwise.
-
getMembers
public java.util.Vector getMembers()
Returns the members of the group
-
getParent
public HDF5Group getParent()
Returns the parent of the group
-
getMemberAt
public java.lang.Object getMemberAt(int memberIndex)
Returns the member at index memberIndex- Parameters:
memberIndex- the index of the group member
-
getMemberCount
public int getMemberCount()
Returns the number of members the HDF5Group contains
-
isEmpty
public boolean isEmpty()
Returns true if the HDF5Group has no member
-
isRoot
public boolean isRoot()
Returns true if the HDF5Group is the root group
-
toString
public java.lang.String toString()
Converts this object to a String representation.- Overrides:
toStringin classHDF5Object- Returns:
- a string representation of this object
-
-
DMelt 3.0 © DataMelt by jWork.ORG