MapiProperty

Inheritance: java.lang.Object

public class MapiProperty

Represents the mapi property.

Constructors

Constructor Description
MapiProperty(long tag, byte[] data) Initializes a new instance of the MapiProperty class.
MapiProperty(long tag) Initializes a new instance of the MapiProperty class.
MapiProperty(PidTagPropertyDescriptor pd, Object data) Initializes a new instance of the MapiProperty class.
MapiProperty(PidLidPropertyDescriptor pd, Object data) Initializes a new instance of the MapiProperty class.
MapiProperty(long tag, Iterable values) Initializes a new instance of the MapiProperty class.
MapiProperty(long tag, long signedParam, byte[] data) Initializes a new instance of the MapiProperty class.
MapiProperty(String name, long tag, long signedParam, byte[] data) Initializes a new instance of the MapiProperty class.

Methods

Method Description
getPropertyTagName() Gets the PropertyName.
getName() Gets the name.
getIdentifier() Gets the indifier.
getTag() Gets the tag.
getDataType() Gets the data type.
getData() Gets the binary data.
getMVEntries() Gets the MV entries list.
isSigned() Indicates whether the binary data is signed.
setSigned(boolean value) Indicates whether the binary data is signed.
isNamed() Indicates whether the property is a named property.
getLong() Gets the first 8 bytes of the binary data as long.
getInt32() Gets the first 4 bytes of the binary data as int32.
getShort() Gets the first 2 bytes of the binary data as short.
getBoolean() Gets the first bytes of the binary data as boolean.
getDateTime() Gets the first bytes of the binary data as datetime.
getString() Gets the binary data as string.
getMultipleBinary() Gets the multyple binary data.
getMultipleString() Gets the multyple strings data.
getMultipleFloating32() Gets the multyple float values.
getMultipleFloating64() Gets the multyple double values.
getMultipleInteger16() Gets the multyple Int16 values.
getMultipleInteger32() Gets the multyple Int32 values.
getMultipleInteger64() Gets the multyple Int64 values.
getMultipleBoolean() Gets the multyple bool values.
getMultipleCurrency() Gets the multyple decimal values.
getMultipleGuid() Gets the multyple Guid values.
getMultipleTime() Gets the multyple DateTime values.
getMultipleFloatingTime() Gets the multyple DateTime values.
getDescriptor() Gets descriptor of MAPI property
getValue() Gets value as object
getCurrency() Gets the Currency as string using the specified code page.
getString(int codepage) Gets the binary data as string using the specified code page.
getFloatingDate() Gets the bytes of the binary data as DateTime.
getGuidValue() Gets the bytes of the binary data as Guid.
getDouble() Gets the bytes of the binary data as double.
getFloat() Gets the bytes of the binary data as float.
toString() Returns a String that represents the current Object.
createMapiPropertyFromLong(long tag, long data) Creates the mapi property from long.
createMapiPropertyFromLong(long tag, long data, long delimiter) Creates the mapi property from long.
createMapiPropertyFromBytes(long tag, byte[] data) Creates the mapi property from bytes.
createMapiPropertyFromDateTime(long tag, Date data) Creates the mapi property from date time.

MapiProperty(long tag, byte[] data)

public MapiProperty(long tag, byte[] data)

Initializes a new instance of the MapiProperty class.

Parameters:

Parameter Type Description
tag long The tag key of the property.
data byte[] The binary data of the property.

MapiProperty(long tag)

public MapiProperty(long tag)

Initializes a new instance of the MapiProperty class.

Parameters:

Parameter Type Description
tag long The tag key of the property.

MapiProperty(PidTagPropertyDescriptor pd, Object data)

public MapiProperty(PidTagPropertyDescriptor pd, Object data)

Initializes a new instance of the MapiProperty class.

Parameters:

Parameter Type Description
pd PidTagPropertyDescriptor Property descriptor
data java.lang.Object The data of the property.

MapiProperty(PidLidPropertyDescriptor pd, Object data)

public MapiProperty(PidLidPropertyDescriptor pd, Object data)

Initializes a new instance of the MapiProperty class.

Parameters:

Parameter Type Description
pd PidLidPropertyDescriptor Property descriptor
data java.lang.Object The data of the property.

MapiProperty(long tag, Iterable values)

public MapiProperty(long tag, Iterable<?> values)

Initializes a new instance of the MapiProperty class. This overload is used to create a multiple valued property, PT_MV_*.

Parameters:

Parameter Type Description
tag long The property tag.
values java.lang.Iterable The values.

MapiProperty(long tag, long signedParam, byte[] data)

public MapiProperty(long tag, long signedParam, byte[] data)

Initializes a new instance of the MapiProperty class.

Parameters:

Parameter Type Description
tag long The property tag.
signedParam long The signed.
data byte[] The property data.

MapiProperty(String name, long tag, long signedParam, byte[] data)

public MapiProperty(String name, long tag, long signedParam, byte[] data)

Initializes a new instance of the MapiProperty class.

Parameters:

Parameter Type Description
name java.lang.String The name.
tag long The tag key of the property.
signedParam long Indicates the data is signed or not.
data byte[] The binary data of the property.

getPropertyTagName()

public String getPropertyTagName()

Gets the PropertyName.

Returns: java.lang.String

getName()

public String getName()

Gets the name.

Returns: java.lang.String

getIdentifier()

public long getIdentifier()

Gets the indifier.

Returns: long

getTag()

public long getTag()

Gets the tag.

Returns: long

getDataType()

public int getDataType()

Gets the data type.

Returns: int

getData()

public byte[] getData()

Gets the binary data.

Returns: byte[]

getMVEntries()

public final System.Collections.IList getMVEntries()

Gets the MV entries list.

Returns: com.aspose.ms.System.Collections.IList

isSigned()

public boolean isSigned()

Indicates whether the binary data is signed.

Returns: boolean

setSigned(boolean value)

public void setSigned(boolean value)

Indicates whether the binary data is signed.

Parameters:

Parameter Type Description
value boolean

isNamed()

public final boolean isNamed()

Indicates whether the property is a named property.

Returns: boolean

getLong()

public long getLong()

Gets the first 8 bytes of the binary data as long.

Returns: long - The long value.

getInt32()

public int getInt32()

Gets the first 4 bytes of the binary data as int32.

Returns: int - The int32 value.

getShort()

public short getShort()

Gets the first 2 bytes of the binary data as short.

Returns: short - The short value.

getBoolean()

public boolean getBoolean()

Gets the first bytes of the binary data as boolean.

Returns: boolean - The boolean value.

getDateTime()

public Date getDateTime()

Gets the first bytes of the binary data as datetime.

Returns: java.util.Date - The datetime value.

getString()

public String getString()

Gets the binary data as string.

Returns: java.lang.String - A string contains the binary data.

getMultipleBinary()

public final byte[][] getMultipleBinary()

Gets the multyple binary data.

Returns: byte[][] - A multyple byte arrays.

getMultipleString()

public final String[] getMultipleString()

Gets the multyple strings data.

Returns: java.lang.String[] - A string array.

getMultipleFloating32()

public final float[] getMultipleFloating32()

Gets the multyple float values.

Returns: float[] - A float array.

getMultipleFloating64()

public final double[] getMultipleFloating64()

Gets the multyple double values.

Returns: double[] - A double array.

getMultipleInteger16()

public final short[] getMultipleInteger16()

Gets the multyple Int16 values.

Returns: short[] - A Int16 array.

getMultipleInteger32()

public final int[] getMultipleInteger32()

Gets the multyple Int32 values.

Returns: int[] - A Int32 array.

getMultipleInteger64()

public final long[] getMultipleInteger64()

Gets the multyple Int64 values.

Returns: long[] - A Int64 array.

getMultipleBoolean()

public final boolean[] getMultipleBoolean()

Gets the multyple bool values.

Returns: boolean[] - A bool array.

getMultipleCurrency()

public final BigDecimal[] getMultipleCurrency()

Gets the multyple decimal values.

Returns: java.math.BigDecimal[] - A decimal array.

getMultipleGuid()

public final UUID[] getMultipleGuid()

Gets the multyple Guid values.

Returns: java.util.UUID[] - A Guid array.

getMultipleTime()

public final Date[] getMultipleTime()

Gets the multyple DateTime values.

Returns: java.util.Date[] - A DateTime array.

getMultipleFloatingTime()

public final Date[] getMultipleFloatingTime()

Gets the multyple DateTime values.

Returns: java.util.Date[] - A DateTime array.

getDescriptor()

public final PropertyDescriptor getDescriptor()

Gets descriptor of MAPI property

Returns: PropertyDescriptor

getValue()

public final Object getValue()

Gets value as object

Returns: java.lang.Object - value of a property

getCurrency()

public BigDecimal getCurrency()

Gets the Currency as string using the specified code page.

Returns: java.math.BigDecimal - A string contains the binary data.

getString(int codepage)

public String getString(int codepage)

Gets the binary data as string using the specified code page.

Parameters:

Parameter Type Description
codepage int The code page.

Returns: java.lang.String - A string contains the binary data.

getFloatingDate()

public Date getFloatingDate()

Gets the bytes of the binary data as DateTime.

Returns: java.util.Date - The DateTime value.

getGuidValue()

public UUID getGuidValue()

Gets the bytes of the binary data as Guid.

Returns: java.util.UUID - The Guid value.

getDouble()

public double getDouble()

Gets the bytes of the binary data as double.

Returns: double - The double value.

getFloat()

public float getFloat()

Gets the bytes of the binary data as float.

Returns: float - The double value.

toString()

public String toString()

Returns a String that represents the current Object.

Returns: java.lang.String - A String that represents the current Object.

createMapiPropertyFromLong(long tag, long data)

public static MapiProperty createMapiPropertyFromLong(long tag, long data)

Creates the mapi property from long.

Parameters:

Parameter Type Description
tag long The tag.
data long The data.

Returns: MapiProperty -

createMapiPropertyFromLong(long tag, long data, long delimiter)

public static MapiProperty createMapiPropertyFromLong(long tag, long data, long delimiter)

Creates the mapi property from long.

Parameters:

Parameter Type Description
tag long The tag.
data long The data.
delimiter long The delimiter.

Returns: MapiProperty -

createMapiPropertyFromBytes(long tag, byte[] data)

public static MapiProperty createMapiPropertyFromBytes(long tag, byte[] data)

Creates the mapi property from bytes.

Parameters:

Parameter Type Description
tag long The tag.
data byte[] The data.

Returns: MapiProperty -

createMapiPropertyFromDateTime(long tag, Date data)

public static MapiProperty createMapiPropertyFromDateTime(long tag, Date data)

Creates the mapi property from date time.

Parameters:

Parameter Type Description
tag long The tag.
data java.util.Date The data.

Returns: MapiProperty -