Class ImportValue

java.lang.Object
ag.smaser.trip.cfw.ImportValue

public class ImportValue extends Object
Represents a value imported by an import connector.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new value object for an import item.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the data value as an object, or null if no value has been assigned.
    Returns the id or tag of the value.
    Get dictionary with value properties.
    boolean
    Returns true if the data of this item is a byte array (byte[]).
    boolean
    Returns true if the data of this item is a Date object
    boolean
    Returns true if the data of this item is fouble floating point value (double)
    boolean
    Returns true if the data of this item is an integer (int)
    boolean
    Returns true if this item has no data.
    boolean
    Returns true if the data of this item is a String object
    void
    setData(byte[] data)
    Assigns a byte array as the data value for this item
    void
    setData(double data)
    Assigns a double as the data value for this item
    void
    setData(int data)
    Assigns an int as the data value for this item
    void
    Assigns a string as the data value for this item
    void
    setData(Date data)
    Assigns a Date object as the data value for this item
    void
    setProperty(String key, String value)
    Set a property for this import value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImportValue

      public ImportValue(String id)
      Creates a new value object for an import item.
      Parameters:
      id - The id or tag of the value.
  • Method Details

    • getId

      public String getId()
      Returns the id or tag of the value.
      Returns:
      Value id
    • getData

      public Object getData()
      Returns the data value as an object, or null if no value has been assigned.
      Returns:
      The value as an Object
    • setData

      public void setData(String data)
      Assigns a string as the data value for this item
      Parameters:
      data - Value
    • setData

      public void setData(byte[] data)
      Assigns a byte array as the data value for this item
      Parameters:
      data - Value
    • setData

      public void setData(int data)
      Assigns an int as the data value for this item
      Parameters:
      data - Value
    • setData

      public void setData(double data)
      Assigns a double as the data value for this item
      Parameters:
      data - Value
    • setData

      public void setData(Date data)
      Assigns a Date object as the data value for this item
      Parameters:
      data - Value
    • isNull

      public boolean isNull()
      Returns true if this item has no data.
      Returns:
      True if the value is null
    • isString

      public boolean isString()
      Returns true if the data of this item is a String object
      Returns:
      True if the value is a string
    • isBinary

      public boolean isBinary()
      Returns true if the data of this item is a byte array (byte[]).
      Returns:
      True if the value is a byte array
    • isInteger

      public boolean isInteger()
      Returns true if the data of this item is an integer (int)
      Returns:
      True if the value is an integers
    • isDouble

      public boolean isDouble()
      Returns true if the data of this item is fouble floating point value (double)
      Returns:
      True if the value is a double
    • isDate

      public boolean isDate()
      Returns true if the data of this item is a Date object
      Returns:
      True if the value is a date
    • getProperties

      public Map<String,String> getProperties()
      Get dictionary with value properties.
      Returns:
      Property dictionary
    • setProperty

      public void setProperty(String key, String value)
      Set a property for this import value.
      Parameters:
      key - Property name
      value - Property value

      An import value may have properties that are distinct from the properties of its parent item. A typical example is an item that represents an email, in which case the values are the email body plus any attachments of the email. In such a scenario each value that represent an attachment may additionally specify meta data properties such as the file name and file type.