Package org.apache.poi.hsmf.datatypes
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 aMAPIPropertyinside aPropertiesChunk. Where theTypestype is a fixed length one, this will contain the actual value. Where theTypestype is a variable length one, this will contain the length of the property, and the value will be in the associatedChunk.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyValue.BooleanPropertyValuestatic classPropertyValue.CurrencyPropertyValuesigned 64-bit integer that represents a base ten decimal, with four digits to the right of the decimal pointstatic classPropertyValue.DoublePropertyValuestatic classPropertyValue.FloatPropertyValuestatic classPropertyValue.LongLongPropertyValuestatic classPropertyValue.LongPropertyValuestatic classPropertyValue.NullPropertyValuestatic classPropertyValue.ShortPropertyValuestatic classPropertyValue.TimePropertyValue64-bit integer specifying the number of 100ns periods since Jan 1, 1601
-
Constructor Summary
Constructors Constructor Description PropertyValue(MAPIProperty property, long flags, byte[] data)PropertyValue(MAPIProperty property, long flags, byte[] data, Types.MAPIType actualType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Types.MAPITypegetActualType()longgetFlags()Get the raw value flags.MAPIPropertygetProperty()byte[]getRawValue()ObjectgetValue()voidsetRawValue(byte[] value)StringtoString()
-
-
-
Constructor Detail
-
PropertyValue
public PropertyValue(MAPIProperty property, long flags, byte[] data)
-
PropertyValue
public PropertyValue(MAPIProperty property, long flags, byte[] data, Types.MAPIType actualType)
-
-
Method Detail
-
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)
-
-