Package com.nt.udc.io

Class COSARAttrUInt

java.lang.Object
com.nt.udc.io.COSARAttr
com.nt.udc.io.COSARAttrUInt

public class COSARAttrUInt extends COSARAttr
This class represents the unsigned int 128 OSAR attribute.
  • Field Details

    • m_value

      protected byte[] m_value
  • Constructor Details

    • COSARAttrUInt

      public COSARAttrUInt(String id, byte[] value)
    • COSARAttrUInt

      public COSARAttrUInt(String id)
  • Method Details

    • getValue

      public byte[] getValue()
    • getStringValue

      public String getStringValue() throws Exception
      Overrides:
      getStringValue in class COSARAttr
      Returns:
      The value as a string
      Throws:
      Exception
    • getBytesValue

      public byte[] getBytesValue() throws Exception
      Overrides:
      getBytesValue in class COSARAttr
      Returns:
      The value as an array of bytes
      Throws:
      Exception
    • getRecAttr

      public OSARecAttr getRecAttr()
      Overrides:
      getRecAttr in class COSARAttr
      Returns:
      The equivalent OSARecAttr
    • toString

      public String toString()
      Overrides:
      toString in class COSARAttr
      Returns:
      A string representation of the OSAR attribute
    • setValue

      public void setValue(byte[] value)
    • setStringValue

      public boolean setStringValue(String value)
      This function sets the attribute value based on a string.
      Overrides:
      setStringValue in class COSARAttr
      Returns:
      true if successful, false otherwise
    • setValue

      public boolean setValue(COSARAttr attr)
      This function is used to convert the value of another attribute and store it.
      Overrides:
      setValue in class COSARAttr