Class PropertyValue

java.lang.Object
org.apache.poi.hsmf.datatypes.PropertyValue
Direct Known Subclasses:
ChunkBasedPropertyValue, PropertyValue.BooleanPropertyValue, PropertyValue.CurrencyPropertyValue, PropertyValue.DoublePropertyValue, PropertyValue.FloatPropertyValue, PropertyValue.LongLongPropertyValue, PropertyValue.LongPropertyValue, PropertyValue.NullPropertyValue, PropertyValue.ShortPropertyValue, PropertyValue.TimePropertyValue

public class PropertyValue extends Object
An instance of a MAPIProperty inside a PropertiesChunk. Where the Types type is a fixed length one, this will contain the actual value. Where the Types type is a variable length one, this will contain the length of the property, and the value will be in the associated Chunk.
  • Field Details

    • data

      protected byte[] data
  • Constructor Details

    • PropertyValue

      public PropertyValue(MAPIProperty property, long flags, byte[] data)
    • PropertyValue

      public PropertyValue(MAPIProperty property, long flags, byte[] data, Types.MAPIType actualType)
  • Method Details

    • getProperty

      public MAPIProperty getProperty()
    • getFlags

      public long getFlags()
      Get the raw value flags. TODO Also provide getters for the flag meanings
    • getValue

      public Object getValue()
    • getRawValue

      public byte[] getRawValue()
    • getActualType

      public Types.MAPIType getActualType()
    • setRawValue

      public void setRawValue(byte[] value)
    • toString

      public String toString()
      Overrides:
      toString in class Object