com.aspose.email
Class MapiProperty

java.lang.Object
  extended by com.aspose.email.MapiProperty
Direct Known Subclasses:
MapiNamedProperty, MapiObjectProperty

public class MapiProperty
extends Object

Represents the mapi property.


Constructor Summary
MapiProperty(long tag, byte[] data)
           Initializes a new instance of the MapiProperty class.
MapiProperty(long tag, List values)
           Initializes a new instance of the MapiProperty class.
MapiProperty(long tag, long signed, byte[] data)
           Initializes a new instance of the MapiProperty class.
MapiProperty(String name, long tag, long signed, byte[] data)
           Initializes a new instance of the MapiProperty class.
 
Method Summary
 boolean getBoolean()
           Gets the first bytes of the binary data as boolean.
 byte[] getData()
           Gets the binary data.
 int getDataType()
           Gets the data type.
 Date getDateTime()
           
 long getIdentifier()
           Gets the indifier.
 int getInt32()
           Gets the first 4 bytes of the binary data as int32.
 long getLong()
           Gets the first 8 bytes of the binary data as long.
 List getMVEntries()
           Gets the MV entries list.
 String getName()
           Gets the name.
 String getPropertyTagName()
           Gets the PropertyName.
 short getShort()
           Gets the first 2 bytes of the binary data as short.
 String getString()
           Gets the binary data as string.
 String getString(int codepage)
           Gets the binary data as string using the specified code page.
 long getTag()
           Gets the tag.
 boolean isSigned()
           Indicates whether the binary data is signed.
 String toString()
           Returns a T:System.String that represents the current T:System.Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapiProperty

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

Initializes a new instance of the MapiProperty class.

Parameters:
name - The name.
tag - The tag key of the property.
signed - Indicates the data is signed or not.
data - The binary data of the property.

MapiProperty

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

Initializes a new instance of the MapiProperty class.

Parameters:
tag - The tag.
signed - The signed.
data - The data.

MapiProperty

public MapiProperty(long tag,
                    byte[] data)

Initializes a new instance of the MapiProperty class.

Parameters:
tag - The tag key of the property.
data - The binary data of the property.

MapiProperty

public MapiProperty(long tag,
                    List values)

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

Parameters:
tag - The tag.
values - The values.
Method Detail

getPropertyTagName

public String getPropertyTagName()

Gets the PropertyName.


getName

public String getName()

Gets the name.


getIdentifier

public long getIdentifier()

Gets the indifier.


getTag

public long getTag()

Gets the tag.


getDataType

public int getDataType()

Gets the data type.


getData

public byte[] getData()

Gets the binary data.


getLong

public long getLong()

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

Returns:
The long value.

getInt32

public int getInt32()

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

Returns:
The int32 value.

getShort

public short getShort()

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

Returns:
The short value.

getBoolean

public boolean getBoolean()

Gets the first bytes of the binary data as boolean.

Returns:
The boolean value.

getDateTime

public Date getDateTime()

getString

public String getString(int codepage)

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

Parameters:
codepage - The code page.
Returns:
A string contains the binary data.

getString

public String getString()

Gets the binary data as string.

Returns:
A string contains the binary data.

isSigned

public boolean isSigned()

Indicates whether the binary data is signed.


getMVEntries

public List getMVEntries()

Gets the MV entries list.


toString

public String toString()

Returns a T:System.String that represents the current T:System.Object.

Overrides:
toString in class Object
Returns:
A T:System.String that represents the current T:System.Object.


Copyright (c) 2002-2011 Aspose Pty Ltd. All Rights Reserved.