All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class hep.analysis.AbstractNTupleEventData

java.lang.Object
   |
   +----hep.analysis.AbstractNTupleEventData

public abstract class AbstractNTupleEventData
extends Object
implements NTupleEventData
Extend this class to get a simple implementation of the NTupleEventData interface. By default, this class implements all of the NTupleEventData methods but throws an EventDataException from each. Therefore, a subclass should override the methods corresponding to the types it wants to support and leave the remaining method implementations to throw exceptions.

See Also:
NTupleEventData, EventDataException

Constructor Index

 o AbstractNTupleEventData()

Method Index

 o findColumn(String)
Returns the integer index for the column specified by name.
 o getBoolean(int)
Override if your subclass supports boolean data types.
 o getBoolean(String)
Override if your subclass supports boolean data types.
 o getDate(int)
Override if your subclass supports Date data types.
 o getDate(String)
Override if your subclass supports Date data types.
 o getDouble(int)
Override if your subclass supports double data types.
 o getDouble(String)
Override if your subclass supports double data types.
 o getInt(int)
Override if your subclass supports int data types.
 o getInt(String)
Override if your subclass supports int data types.
 o getObject(int)
Override if your subclass supports Object data types.
 o getObject(String)
Override if your subclass supports Object data types.
 o getString(int)
Override if your subclass supports String data types.
 o getString(String)
Override if your subclass supports String data types.

Constructors

 o AbstractNTupleEventData
 public AbstractNTupleEventData()

Methods

 o getDouble
 public double getDouble(String name)
Override if your subclass supports double data types. Throws an EventDataException if not overridden.

Parameters:
name - the name of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getInt
 public int getInt(String name)
Override if your subclass supports int data types. Throws an EventDataException if not overridden.

Parameters:
name - the name of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getDate
 public Date getDate(String name)
Override if your subclass supports Date data types. Throws an EventDataException if not overridden.

Parameters:
name - the name of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getString
 public String getString(String name)
Override if your subclass supports String data types. Throws an EventDataException if not overridden.

Parameters:
name - the name of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getBoolean
 public boolean getBoolean(String name)
Override if your subclass supports boolean data types. Throws an EventDataException if not overridden.

Parameters:
name - the name of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getObject
 public Object getObject(String name)
Override if your subclass supports Object data types. Throws an EventDataException if not overridden.

Parameters:
name - the name of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getDouble
 public double getDouble(int column)
Override if your subclass supports double data types. Throws an EventDataException if not overridden.

Parameters:
column - the integer index of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getInt
 public int getInt(int column)
Override if your subclass supports int data types. Throws an EventDataException if not overridden.

Parameters:
column - the integer index of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getDate
 public Date getDate(int column)
Override if your subclass supports Date data types. Throws an EventDataException if not overridden.

Parameters:
column - the integer index of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getString
 public String getString(int column)
Override if your subclass supports String data types. Throws an EventDataException if not overridden.

Parameters:
column - the integer index of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getBoolean
 public boolean getBoolean(int column)
Override if your subclass supports boolean data types. Throws an EventDataException if not overridden.

Parameters:
column - the integer index of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden
 o getObject
 public Object getObject(int column)
Override if your subclass supports Object data types. Throws an EventDataException if not overridden.

Parameters:
column - the integer index of the field you want a value for
Returns:
the value of the specified field for the event that this object represents
Throws: EventDataException
if not overridden

All Packages  Class Hierarchy  This Package  Previous  Next  Index