Class BrokerField

java.lang.Object
COM.activesw.api.client.BrokerField

public class BrokerField extends Object
This class is a data structure giving a field's type and value.
  • Field Details

    • NOT_FOUND

      protected static final BrokerField NOT_FOUND
    • type

      public short type
      The field type. Takes values such as BrokerTypeDef.FIELD_TYPE_INT.
    • value

      public Object value
      The field value. The object class depends on the type:
      FIELD_TYPE_BYTE->Byte, FIELD_TYPE_SHORT->Short, FIELD_TYPE_INT->Integer, FIELD_TYPE_LONG->Long, FIELD_TYPE_FLOAT->Float, FIELD_TYPE_DOUBLE->Double, FIELD_TYPE_BOOLEAN->Boolean, FIELD_TYPE_DATE->BrokerDate, FIELD_TYPE_CHAR->Character, FIELD_TYPE_STRING->String, FIELD_TYPE_UNICODE_CHAR->Character, FIELD_TYPE_UNICODE_STRING->String, FIELD_TYPE_STRUCT->BrokerEvent
  • Constructor Details

    • BrokerField

      public BrokerField()
      Create an empty field object.
    • BrokerField

      public BrokerField(short field_type, Object field_value)
      Create an field object setting both the type and value.