Class DatasetElement
java.lang.Object
org.jpos.iso.DatasetElement
Holds one decoded element inside a dataset.
-
Constructor Summary
ConstructorsConstructorDescriptionDatasetElement(int id, ISOComponent component) Creates a primitive dataset element.DatasetElement(int id, ISOComponent component, boolean constructed) Creates a dataset element. -
Method Summary
-
Constructor Details
-
DatasetElement
Creates a primitive dataset element.- Parameters:
id- element identifier, either a TLV tag or DBM bit numbercomponent- backing ISO component
-
DatasetElement
Creates a dataset element.- Parameters:
id- element identifier, either a TLV tag or DBM bit numbercomponent- backing ISO componentconstructed- whether the source TLV tag was constructed
-
-
Method Details
-
getId
-
getComponent
-
isConstructed
Indicates whether the element originated from a constructed TLV tag.- Returns:
truefor constructed TLV elements
-
getValue
Returns the component value.- Returns:
- element value
- Throws:
ISOException- on component access errors
-
getBytes
Returns a defensive copy of the element bytes.- Returns:
- encoded element value bytes, or
null - Throws:
ISOException- on component access errors
-