|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hep.analysis.AbstractEventData
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.
NTupleEventData
,
EventDataException
Constructor Summary | |
AbstractEventData()
|
Method Summary | |
boolean |
getBoolean(int column)
Override if your subclass supports boolean data types. |
boolean |
getBoolean(java.lang.String name)
Override if your subclass supports boolean data types. |
java.util.Date |
getDate(int column)
Override if your subclass supports Date data types. |
java.util.Date |
getDate(java.lang.String name)
Override if your subclass supports Date data types. |
double |
getDouble(int column)
Override if your subclass supports double data types. |
double |
getDouble(java.lang.String name)
Override if your subclass supports double data types. |
int |
getInt(int column)
Override if your subclass supports int data types. |
int |
getInt(java.lang.String name)
Override if your subclass supports int data types. |
java.lang.Object |
getObject(int column)
Override if your subclass supports Object data types. |
java.lang.Object |
getObject(java.lang.String name)
Override if your subclass supports Object data types. |
java.lang.String |
getString(int column)
Override if your subclass supports String data types. |
java.lang.String |
getString(java.lang.String name)
Override if your subclass supports String data types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hep.analysis.NTupleEventData |
findColumn |
Constructor Detail |
public AbstractEventData()
Method Detail |
public double getDouble(java.lang.String name)
double
data types. Throws
an EventDataException if not overridden.getDouble
in interface NTupleEventData
name
- the name of the field you want a value forEventDataException
- if not overriddenpublic int getInt(java.lang.String name)
int
data types. Throws
an EventDataException if not overridden.getInt
in interface NTupleEventData
name
- the name of the field you want a value forEventDataException
- if not overriddenpublic java.util.Date getDate(java.lang.String name)
getDate
in interface NTupleEventData
name
- the name of the field you want a value forEventDataException
- if not overriddenpublic java.lang.String getString(java.lang.String name)
getString
in interface NTupleEventData
name
- the name of the field you want a value forEventDataException
- if not overriddenpublic boolean getBoolean(java.lang.String name)
boolean
data types. Throws
an EventDataException if not overridden.getBoolean
in interface NTupleEventData
name
- the name of the field you want a value forEventDataException
- if not overriddenpublic java.lang.Object getObject(java.lang.String name)
getObject
in interface NTupleEventData
name
- the name of the field you want a value forEventDataException
- if not overriddenpublic double getDouble(int column)
double
data types. Throws
an EventDataException if not overridden.getDouble
in interface NTupleEventData
column
- the integer index of the field you want a value forEventDataException
- if not overriddenpublic int getInt(int column)
int
data types. Throws
an EventDataException if not overridden.getInt
in interface NTupleEventData
column
- the integer index of the field you want a value forEventDataException
- if not overriddenpublic java.util.Date getDate(int column)
getDate
in interface NTupleEventData
column
- the integer index of the field you want a value forEventDataException
- if not overriddenpublic java.lang.String getString(int column)
getString
in interface NTupleEventData
column
- the integer index of the field you want a value forEventDataException
- if not overriddenpublic boolean getBoolean(int column)
boolean
data types. Throws
an EventDataException if not overridden.getBoolean
in interface NTupleEventData
column
- the integer index of the field you want a value forEventDataException
- if not overriddenpublic java.lang.Object getObject(int column)
getObject
in interface NTupleEventData
column
- the integer index of the field you want a value forEventDataException
- if not overridden
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |