Class DatasetElement

java.lang.Object
org.jpos.iso.DatasetElement

public class DatasetElement extends Object
Holds one decoded element inside a dataset.
  • Constructor Details

    • DatasetElement

      public DatasetElement(int id, ISOComponent component)
      Creates a primitive dataset element.
      Parameters:
      id - element identifier, either a TLV tag or DBM bit number
      component - backing ISO component
    • DatasetElement

      public DatasetElement(int id, ISOComponent component, boolean constructed)
      Creates a dataset element.
      Parameters:
      id - element identifier, either a TLV tag or DBM bit number
      component - backing ISO component
      constructed - whether the source TLV tag was constructed
  • Method Details

    • getId

      public int getId()
      Returns the element identifier.
      Returns:
      element identifier
    • getComponent

      Returns the backing ISO component.
      Returns:
      ISO component
    • isConstructed

      public boolean isConstructed()
      Indicates whether the element originated from a constructed TLV tag.
      Returns:
      true for constructed TLV elements
    • getValue

      public Object getValue() throws ISOException
      Returns the component value.
      Returns:
      element value
      Throws:
      ISOException - on component access errors
    • getBytes

      public byte[] getBytes() throws ISOException
      Returns a defensive copy of the element bytes.
      Returns:
      encoded element value bytes, or null
      Throws:
      ISOException - on component access errors