public class EvioTagSegment extends BaseStructure
TagSegementHeader
) and the raw data stored as an
byte array.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The XML record tag for a tag segment.
|
Constructor and Description |
---|
EvioTagSegment()
Null constructor creates an empty TagSegmentHeader.
|
EvioTagSegment(int tag,
DataType dataType)
This is the general constructor to use for a TagSegment.
|
EvioTagSegment(TagSegmentHeader tagSegmentHeader)
Constructor using a provided TagSegmentHeader
|
Modifier and Type | Method and Description |
---|---|
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 |
toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
Write this tag segment structure out as an XML record.
|
appendByteData, appendByteData, appendCompositeData, appendDoubleData, appendDoubleData, appendFloatData, appendFloatData, appendIntData, appendIntData, appendLongData, appendLongData, appendShortData, appendShortData, appendStringData, children, clone, getAllowsChildren, getByteData, getByteOrder, getChildAt, getChildCount, getChildren, getCompositeData, getDescription, getDoubleData, getFloatData, getHeader, getIndex, getIntData, getLongData, getMatchingStructures, getNumberDataItems, getParent, getRawBytes, getShortData, getStringData, getTotalBytes, insert, insert, isContainer, isLeaf, isSwap, remove, remove, removeFromParent, setAllHeaderLengths, setAllHeaderLengthsSemiOrig, setByteData, setByteData, setByteOrder, setCompositeData, setDoubleData, setDoubleData, setFloatData, setFloatData, setIntData, setIntData, setLongData, setLongData, setParent, setRawBytes, setShortData, setShortData, setStringData, setUserObject, stringsToRawBytes, stringsToRawSize, toString, toXML, transform, unpackRawBytesToStrings, unpackRawBytesToStrings, vistAllStructures, vistAllStructures, write
public static final java.lang.String ELEMENT_NAME
public EvioTagSegment()
TagSegmentHeader
public EvioTagSegment(TagSegmentHeader tagSegmentHeader)
tagSegmentHeader
- the header to use.TagSegmentHeader
public EvioTagSegment(int tag, DataType dataType)
tag
- the tag for the tag segment header.dataType
- the (enum) data type for the content of the tag segment.public 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 IEvioStructure
getStructureType
in class BaseStructure
StructureType
of this structure, which is a StructureType.TAGSEGMENT.StructureType
public void toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
toXML
in class BaseStructure
xmlWriter
- the writer used to write the events.public java.lang.String getXMLElementName()
getXMLElementName
in class BaseStructure