FreeHEP API
Version v1.2.2

hep.io.hbook
Class CompositeHbookObject

java.lang.Object
  |
  +--hep.io.hbook.HbookObject
        |
        +--hep.io.hbook.CompositeHbookObject
Direct Known Subclasses:
Tuple

public class CompositeHbookObject
extends HbookObject

An HbookObject which can have children. This class can represent either a directory in a hbook file, in which case the children will be the directory entries, or a tuple, in which case the children will be tuple columns.


Method Summary
 HbookObject getChild(int index)
          Get child by index
 HbookObject getChild(String name)
          Get an object by name.
 Enumeration getChildren()
          Get an enumeration of the children.
 int getIndex(String name)
          Get the index of a named object.
 int nChildren()
          Get the number of children
 String toString()
           
 
Methods inherited from class hep.io.hbook.HbookObject
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getChild

public final HbookObject getChild(int index)
Get child by index

Parameters:
index - The index of the object to retreive (0 to n-1)

getChild

public final HbookObject getChild(String name)
Get an object by name. For tuples the name is the column name.


getChildren

public Enumeration getChildren()
Get an enumeration of the children.


toString

public String toString()
Overrides:
toString in class Object

nChildren

public final int nChildren()
Get the number of children


getIndex

public final int getIndex(String name)
Get the index of a named object.


FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.