com.aspose.network.outlook
Class MapiPropertyContainer

java.lang.Object
  extended by com.aspose.network.outlook.MapiPropertyContainer
Direct Known Subclasses:
AbstractMessage, MapiAttachment, MapiRecipient

public abstract class MapiPropertyContainer
extends Object

Base class for MapiMessage, MapiEmbeddedMessage, MapiAttachment and MapiRecipient.
Holds MapiProperty and provide api to get property by MapiPropertyTag.


Constructor Summary
MapiPropertyContainer()
           
 
Method Summary
 int getCodePage()
          Gets code page using MapiPropertyTag.PR_INTERNET_CPID
abstract  MapiPropertyCollection getProperties()
          Gets the collection of properties.
 MapiProperty getProperty(short tag)
          Gets MapiProperty by MapiPropertyTag.
 byte[] getPropertyBinary(short tag)
           
 Boolean getPropertyBooolean(short tag)
          Gets MapiProperty value by MapiPropertyTag as Boolean value.
 Byte getPropertyByte(short tag)
          Gets MapiProperty value by MapiPropertyTag as Byte value.
 Date getPropertyDateTime(short tag)
          Gets MapiProperty value by MapiPropertyTag as DateTime value.
 Double getPropertyDouble(short tag)
          Gets MapiProperty value by MapiPropertyTag as Double value.
 Float getPropertyFloat(short tag)
          Gets MapiProperty value by MapiPropertyTag as Float value.
 Integer getPropertyInt(short tag)
          Gets MapiProperty value by MapiPropertyTag as Integer value.
 Long getPropertyLong(short tag)
          Gets MapiProperty value by MapiPropertyTag as Long value.
 Short getPropertyShort(short tag)
          Gets MapiProperty value by MapiPropertyTag as Short value.
 String getPropertyString(short tag)
          Gets MapiProperty value by MapiPropertyTag as String value.
 String getPropertyString(short tag, int codePage)
          Gets MapiProperty value by MapiPropertyTag as String value.
 void setProperty(MapiProperty prop)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapiPropertyContainer

public MapiPropertyContainer()
Method Detail

getCodePage

public int getCodePage()
Gets code page using MapiPropertyTag.PR_INTERNET_CPID

Returns:
code page.

getProperties

public abstract MapiPropertyCollection getProperties()
Gets the collection of properties.

Returns:
collection of properties.

getProperty

public MapiProperty getProperty(short tag)
Gets MapiProperty by MapiPropertyTag.

Parameters:
tag - MapiPropertyTag's id
Returns:
MapiProperty or null if no such property found.

getPropertyBooolean

public Boolean getPropertyBooolean(short tag)
Gets MapiProperty value by MapiPropertyTag as Boolean value.

Parameters:
tag - MapiPropertyTag's id
Returns:
Boolean value or null if no such property found.

getPropertyByte

public Byte getPropertyByte(short tag)
Gets MapiProperty value by MapiPropertyTag as Byte value.

Parameters:
tag - MapiPropertyTag's id
Returns:
Byte value or null if no such property found.

getPropertyShort

public Short getPropertyShort(short tag)
Gets MapiProperty value by MapiPropertyTag as Short value.

Parameters:
tag - MapiPropertyTag's id
Returns:
Short value or null if no such property found.

getPropertyInt

public Integer getPropertyInt(short tag)
Gets MapiProperty value by MapiPropertyTag as Integer value.

Parameters:
tag - MapiPropertyTag's id
Returns:
Integer value or null if no such property found.

getPropertyLong

public Long getPropertyLong(short tag)
Gets MapiProperty value by MapiPropertyTag as Long value.

Parameters:
tag - MapiPropertyTag's id
Returns:
Long value or null if no such property found.

getPropertyFloat

public Float getPropertyFloat(short tag)
Gets MapiProperty value by MapiPropertyTag as Float value.

Parameters:
tag - MapiPropertyTag's id
Returns:
Float value or null if no such property found.

getPropertyDouble

public Double getPropertyDouble(short tag)
Gets MapiProperty value by MapiPropertyTag as Double value.

Parameters:
tag - MapiPropertyTag's id
Returns:
Double value or null if no such property found.

getPropertyString

public String getPropertyString(short tag)
Gets MapiProperty value by MapiPropertyTag as String value.

Parameters:
tag - MapiPropertyTag's id
Returns:
String value or null if no such property found.

getPropertyString

public String getPropertyString(short tag,
                                int codePage)
Gets MapiProperty value by MapiPropertyTag as String value.

Parameters:
tag - MapiPropertyTag's id
codePage - code page
Returns:
String value or null if no such property found.

getPropertyDateTime

public Date getPropertyDateTime(short tag)
Gets MapiProperty value by MapiPropertyTag as DateTime value.

Parameters:
tag - MapiPropertyTag's id
Returns:
Date value or null if no such property found.

getPropertyBinary

public byte[] getPropertyBinary(short tag)

setProperty

public void setProperty(MapiProperty prop)


Copyright © 2011 Aspose. All Rights Reserved.