|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jlab.coda.jevio.BaseStructure
org.jlab.coda.jevio.EvioBank
public class EvioBank
This holds a CODA Bank structure. Mostly it has a header (a BankHeader) and the raw data stored as an
byte array.
| Field Summary | |
|---|---|
static java.lang.String |
ELEMENT_NAME
The XML record tag for a segment. |
| Constructor Summary | |
|---|---|
EvioBank()
Null constructor for a bank. |
|
EvioBank(BankHeader bankHeader)
Constructor using a provided BankHeader |
|
EvioBank(int tag,
DataType dataType,
int num)
This is the general constructor to use for a Bank. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttachment()
Get the attached object. |
StructureType |
getStructureType()
This implements the abstract method from BaseStructure. |
java.lang.String |
getXMLElementName()
Get the element name for the bank for writing to XML. |
void |
setAttachment(java.lang.Object attachment)
Set the attached object. |
void |
toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
Write this bank structure out as an XML record. |
| 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 EvioBank()
public EvioBank(BankHeader bankHeader)
bankHeader - the header to use.BankHeader
public EvioBank(int tag,
DataType dataType,
int num)
tag - the tag for the 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 getAttachment()
public void setAttachment(java.lang.Object attachment)
attachment - object to attach to this bankpublic StructureType getStructureType()
BaseStructure. It is a convenience method use instead of
"instanceof" to see what type of structure we have. Note: this returns the type of this structure, not the type
of data this structure holds.
getStructureType in interface IEvioStructuregetStructureType in class BaseStructureStructureType of this structure, which is a StructureType.BANK.StructureTypepublic void toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
toXML in class BaseStructurexmlWriter - the writer used to write the events.public java.lang.String getXMLElementName()
getXMLElementName in class BaseStructure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||