Class ReflectEvent


  • public class ReflectEvent
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clears all fields of the event so it can be re-used.
      void clearField​(java.lang.String fieldName)
      Clear (un-set) a field in the event.
      static void eventToObject​(BrokerEvent brokerEvent, java.lang.Object objectEvent)  
      static ReflectEvent fromBinData​(BrokerClient client, byte[] data, java.lang.Class cls)
      Create an event using a byte array given out by toBinData().
      void fromBrokerEvent​(BrokerEvent brokerEvent)  
      boolean getBooleanField​(java.lang.String fieldName)
      Get the value of a boolean field.
      boolean[] getBooleanSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a boolean sequence field.
      byte getByteField​(java.lang.String fieldName)
      Get the value of a byte field.
      byte[] getByteSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a byte sequence field.
      char getCharField​(java.lang.String fieldName)
      Get the value of a char field.
      char[] getCharSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a char sequence field.
      BrokerDate getDateField​(java.lang.String fieldName)
      Get the value of a date field.
      BrokerDate[] getDateSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a date sequence field.
      double getDoubleField​(java.lang.String fieldName)
      Get the value of a double field.
      double[] getDoubleSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a double sequence field.
      long getEventId()
      Get the event ID (as set by the broker) for this event.
      BrokerField getField​(java.lang.String fieldName)
      Get the value of field.
      java.lang.String[] getFieldNames​(java.lang.String fieldName)
      Get the list of field names in an event.
      short getFieldType​(java.lang.String fieldName)
      Gets the type for the specified field.
      float getFloatField​(java.lang.String fieldName)
      Get the value of a float field.
      float[] getFloatSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a float sequence field.
      int getIntegerField​(java.lang.String fieldName)
      Get the value of an integer field.
      int[] getIntegerSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of an integer sequence field.
      long getLongField​(java.lang.String fieldName)
      Get the value of a long field.
      long[] getLongSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a long sequence field.
      long getPublishSequenceNumber()
      Get the publishing sequence number for this event.
      long getReceiptSequenceNumber()
      Get the receipt sequence number (as set by the broker) for this event.
      BrokerField getSequenceField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a sequence field.
      int getSequenceFieldSize​(java.lang.String fieldName)
      Get the size of a sequence field.
      short getShortField​(java.lang.String fieldName)
      Get the value of a short field.
      short[] getShortSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a short sequence field.
      java.lang.Object getStorageObject()  
      java.lang.String getStringField​(java.lang.String fieldName)
      Get the value of a string field.
      java.lang.String[] getStringSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a string sequence field.
      ReflectEvent getStructFieldAsEvent​(java.lang.String fieldName)
      Get the value of a structure field.
      ReflectEvent[] getStructSeqFieldAsEvents​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a structure sequence field.
      int getTag()
      Get the event's 'tag' envelope field.
      ReflectTypeDef getTypeDef()
      Get the event's type definition.
      char getUCCharField​(java.lang.String fieldName)
      Get the value of a unicode char field.
      char[] getUCCharSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a unicode char sequence field.
      java.lang.String getUCStringField​(java.lang.String fieldName)
      Get the value of a unicode string field.
      java.lang.String[] getUCStringSeqField​(java.lang.String fieldName, int offset, int maxN)
      Get the value of a unicode string sequence field.
      boolean isFieldSet​(java.lang.String fieldName)
      Determine if the specified field is set in the event.
      static void objectToEvent​(java.lang.Object objectEvent, BrokerEvent brokerEvent)  
      void setBooleanField​(java.lang.String fieldName, boolean value)
      Sets the value of a boolean field.
      void setBooleanSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, boolean[] value)
      Sets the value of a subrange of a boolean sequence field.
      void setByteField​(java.lang.String fieldName, byte value)
      Sets the value of a byte field.
      void setByteSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, byte[] value)
      Sets the value of a subrange of a byte sequence field.
      void setCharField​(java.lang.String fieldName, char value)
      Sets the value of a char field.
      void setCharSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, char[] value)
      Sets the value of a subrange of a char sequence field.
      void setDateField​(java.lang.String fieldName, BrokerDate value)
      Sets the value of a date field.
      void setDateSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, BrokerDate[] value)
      Sets the value of a subrange of a date sequence field.
      void setDoubleField​(java.lang.String fieldName, double value)
      Sets the value of a double field.
      void setDoubleSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, double[] value)
      Sets the value of a subrange of a double sequence field.
      void setField​(java.lang.String fieldName, short fieldType, java.lang.Object value)
      Sets the value of a field.
      void setField​(java.lang.String fieldName, BrokerField field)
      Sets the value of a field.
      void setFloatField​(java.lang.String fieldName, float value)
      Sets the value of a float field.
      void setFloatSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, float[] value)
      Sets the value of a subrange of a float sequence field.
      void setIntegerField​(java.lang.String fieldName, int value)
      Sets the value of an integer field.
      void setIntegerSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, int[] value)
      Sets the value of a subrange of an integer sequence field.
      void setLongField​(java.lang.String fieldName, long value)
      Sets the value of a long field.
      void setLongSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, long[] value)
      Sets the value of a subrange of a long sequence field.
      void setPublishSequenceNumber​(long seqn)
      Set the publishing sequence number for this event.
      void setSequenceField​(java.lang.String fieldName, short fieldType, int srcOffset, int destOffset, int n, java.lang.Object value)
      Sets the value of a subrange of a sequence field.
      void setSequenceFieldSize​(java.lang.String fieldName, int size)
      Set the size of a sequence field.
      void setShortField​(java.lang.String fieldName, short value)
      Sets the value of a short field.
      void setShortSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, short[] value)
      Sets the value of a subrange of a short sequence field.
      void setStringField​(java.lang.String fieldName, java.lang.String value)
      Sets the value of a string field.
      void setStringFieldToSubstring​(java.lang.String fieldName, int offset, int nc, java.lang.String value)
      Sets the value of a string field to a substring of another string.
      void setStringSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, java.lang.String[] value)
      Sets the value of a subrange of a string sequence field.
      void setStructFieldFromEvent​(java.lang.String fieldName, ReflectEvent value)
      Sets the value of a structure field.
      void setStructSeqFieldFromEvents​(java.lang.String fieldName, int srcOffset, int destOffset, int n, ReflectEvent[] value)
      Sets the value of a structure sequence field.
      void setTag​(int tag)
      Set the event's 'tag' envelope field.
      void setUCCharField​(java.lang.String fieldName, char value)
      Sets the value of a unicode char field.
      void setUCCharSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, char[] value)
      Sets the value of a subrange of a unicode char sequence field.
      void setUCStringField​(java.lang.String fieldName, java.lang.String value)
      Sets the value of a unicode string field.
      void setUCStringFieldToSubstring​(java.lang.String fieldName, int offset, int nc, java.lang.String value)
      Sets the value of a unicode string field to a substring of another string.
      void setUCStringSeqField​(java.lang.String fieldName, int srcOffset, int destOffset, int n, java.lang.String[] value)
      Sets the value of a subrange of a unicode string sequence field.
      byte[] toBinData()
      Get out the event's data as a byte array.
      void toBrokerEvent​(BrokerEvent brokerEvent)  
      java.lang.String toFormattedString​(java.lang.String formatString)
      Format an event string.
      java.lang.String toFormattedString​(java.lang.String formatString, java.util.Locale locale)
      Format an event string.
      java.lang.String toString()
      Get event content as a string which includes newlines.
      java.lang.String toString​(int indentLevel)
      Get event content as a string suitable for human viewing.
      java.lang.String toString​(int indentLevel, java.util.Locale locale)
      Get event content as a string suitable for human viewing.
      java.lang.String toString​(java.util.Locale locale)
      Get event content as a string which includes newlines.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait