|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jlab.coda.jevio.BaseStructure org.jlab.coda.jevio.EvioBank org.jlab.coda.jevio.EvioEvent
public class EvioEvent
An event is really just the outer, primary bank. That is, the first structure in an event (aka logical record, aka
buffer) must be a bank, probably a bank of banks.
The Event trivially extends bank, just so there can be a distinct EvioEvent
class, for clarity.
Field Summary | |
---|---|
static java.lang.String |
ELEMENT_NAME
The XML record tag for an event. |
Constructor Summary | |
---|---|
EvioEvent()
Explicit null constructor for evio event. |
|
EvioEvent(BankHeader bankHeader)
Constructor using a provided BankHeader. |
|
EvioEvent(int tag,
DataType dataType,
int num)
This is a general constructor to use for an EvioEvent. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Deep clone of BaseStructure does most of the work. |
java.lang.String |
getDictionaryXML()
Get the XML dictionary associated with this event if there is one. |
int |
getEventNumber()
This returns a number [1..] indicating which event this was in the event file from which it was read. |
javax.swing.tree.DefaultTreeModel |
getTreeModel()
Get the tree model representing this event. |
java.lang.String |
getXMLElementName()
Get the element name for the bank for writing to XML. |
boolean |
hasDictionaryXML()
Is there an XML dictionary associated with this event? |
void |
insert(BaseStructure child,
BaseStructure parent)
Inserts a child structure into the event's JTree. |
void |
setDictionaryXML(java.lang.String dictionaryXML)
Set the XML dictionary associated with this event. |
void |
setEventNumber(int eventNumber)
This sets a number [1..] indicating which event this was in the event file from which it was read. |
java.lang.String |
toString()
Create a string representation of the event. |
void |
toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
Write this event structure out as an XML record. |
Methods inherited from class org.jlab.coda.jevio.EvioBank |
---|
getAttachment, getStructureType, setAttachment |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELEMENT_NAME
Constructor Detail |
---|
public EvioEvent()
public EvioEvent(BankHeader bankHeader)
bankHeader
- the header to use.BankHeader
public EvioEvent(int tag, DataType dataType, int num)
tag
- the tag for the event header (which is just a bank header).dataType
- the (enum) data type for the content of the bank.num
- sometimes, but not necessarily, an ordinal enumeration.Method Detail |
---|
public java.lang.Object clone()
clone
in class BaseStructure
public boolean hasDictionaryXML()
true
if there is an XML dictionary associated with this event,
else false
public java.lang.String getDictionaryXML()
public void setDictionaryXML(java.lang.String dictionaryXML)
dictionaryXML
- the XML dictionary associated with this event.public java.lang.String toString()
toString
in class BaseStructure
public javax.swing.tree.DefaultTreeModel getTreeModel()
public void insert(BaseStructure child, BaseStructure parent)
child
- the child structure being added to the tree.parent
- the parent structure of the new child.public int getEventNumber()
public void setEventNumber(int eventNumber)
eventNumber
- a number [1..] indicating which event this was in the event file from which
it was read.public void toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
toXML
in class EvioBank
xmlWriter
- the writer used to write the events.public java.lang.String getXMLElementName()
getXMLElementName
in class EvioBank
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |