FreeHEP API
Version current

hep.io.hbook
Class CompositeHbookObject

java.lang.Object
  extended byhep.io.hbook.HbookObject
      extended byhep.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.

Source Code:
CompositeHbookObject.java

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()

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 current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.