public class MapiPropertyContainer extends Object
Represents the base class for
MapiAttachment
,
MapiRecipient
,
MapiMessage
.
Modifier and Type | Method and Description |
---|---|
com.aspose.email.IMapiNode |
createMapiNode(String key)
Creates the mapi node.
|
int |
getCodePage()
Gets the code page.
|
MapiPropertyCollection |
getProperties()
Gets the collection of properties.
|
MapiProperty |
getProperty(PropertyDescriptor pd)
Gets MAPI property by property descriptor.
|
Boolean |
getPropertyBoolean(long tag)
Gets the value of the property specified by tag as Boolean type.
|
byte[] |
getPropertyBytes(long tag)
Gets the string value of the property specified by tag.
|
Date |
getPropertyDateTime(long key)
Gets the value of the property specified by tag as DateTime type.
|
Integer |
getPropertyInt32(long tag)
Gets the int32 value of the property specified by tag.
|
Long |
getPropertyLong(long tag)
Gets the value of the property specified by tag as Long (int64) type.
|
Short |
getPropertyShort(long tag)
Gets the value of the property specified by tag as Short type.
|
String |
getPropertyString(long tag)
Gets the string value of the property specified by tag.
|
String |
getPropertyString(long tag,
int codepage)
Gets the string value of the property specified by tag.
|
boolean |
isStoreUnicodeOk()
Determines if string properties are Unicode encoded or not.
|
void |
setProperty(MapiProperty value)
Sets the property.
|
void |
setProperty(PropertyDescriptor pd,
Object value)
Sets MAPI property.
|
byte[] |
tryGetPropertyData(long tag)
Try to get the property data with specified tag key.
|
boolean |
tryGetPropertyDateTime(long tag,
Date[] value)
Gets the value of the specified property as DateTime type.
|
boolean |
tryGetPropertyInt32(long tag,
int[] value)
Gets the value of the specified property as Int32 type.
|
boolean |
tryGetPropertyLong(long tag,
long[] value)
Gets the value of the specified property as Long type.
|
String |
tryGetPropertyString(long tag)
Try to get a property data as string with specified tag.
|
String |
tryGetPropertyString(long tag,
int codepage)
Try to get a property data as string with specified tag and code page.
|
boolean |
tryGetPropertyString(long tag,
String[] value)
Gets the value of the specified property as String type.
|
boolean |
tryGetPropertyString(long tag,
String[] value,
int codepage)
Gets the value of the specified property as String type.
|
public MapiPropertyCollection getProperties()
Gets the collection of properties.
Value: The properties.public MapiProperty getProperty(PropertyDescriptor pd)
Gets MAPI property by property descriptor.
pd
- Property descriptor for looked propertypublic void setProperty(PropertyDescriptor pd, Object value)
Sets MAPI property.
pd
- The property descriptor.value
- The property data.public int getCodePage()
Gets the code page.
Value: The code page.public final String tryGetPropertyString(long tag, int codepage)
Try to get a property data as string with specified tag and code page.
tag
- The property tag key.codepage
- The code page.public final byte[] tryGetPropertyData(long tag)
Try to get the property data with specified tag key.
tag
- The tag key.public final String tryGetPropertyString(long tag)
Try to get a property data as string with specified tag.
tag
- The property tag key.public final String getPropertyString(long tag, int codepage)
Gets the string value of the property specified by tag.
tag
- The MAPI property tag.codepage
- The specified codepage used to get string value.public final String getPropertyString(long tag)
Gets the string value of the property specified by tag.
tag
- The MAPI property tag.public final byte[] getPropertyBytes(long tag)
Gets the string value of the property specified by tag.
tag
- The MAPI property tag.public void setProperty(MapiProperty value)
Sets the property.
value
- The property.com.aspose.ms.System.ArgumentNullException
- If value
is null.com.aspose.ms.System.ArgumentException
- If property data is null.com.aspose.ms.System.InvalidOperationException
- If data type is not supported.public final Integer getPropertyInt32(long tag)
Gets the int32 value of the property specified by tag.
tag
- The MAPI property tag.public final Long getPropertyLong(long tag)
Gets the value of the property specified by tag as Long (int64) type.
tag
- The MAPI property tag.public final Short getPropertyShort(long tag)
Gets the value of the property specified by tag as Short type.
tag
- The MAPI property tag.public final Boolean getPropertyBoolean(long tag)
Gets the value of the property specified by tag as Boolean type.
tag
- The MAPI property tag.public final Date getPropertyDateTime(long key)
Gets the value of the property specified by tag as DateTime type.
key
- The MAPI property tag.public final boolean isStoreUnicodeOk()
Determines if string properties are Unicode encoded or not.
public final boolean tryGetPropertyString(long tag, String[] value, int codepage)
Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.
tag
- The MAPI property tag.value
- When this method returns, contains the value
of the specified property, if the property exists. This parameter is passed uninitialized.codepage
- The specified codepage used to get string value.public final boolean tryGetPropertyString(long tag, String[] value)
Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.
tag
- The MAPI property tag.value
- When this method returns, contains
the value of the specified property, if the property exists.
This parameter is passed uninitialized.public final boolean tryGetPropertyDateTime(long tag, Date[] value)
Gets the value of the specified property as DateTime type. A return value indicates whether the operation succeeded.
tag
- The MAPI property tag.value
- When this method returns, contains the
value of the specified property, if the property exists.
This parameter is passed uninitialized.public final boolean tryGetPropertyLong(long tag, long[] value)
Gets the value of the specified property as Long type. A return value indicates whether the operation succeeded.
tag
- The MAPI property tag.value
- When this method returns, contains the value of the specified property,
if the property exists. This parameter is passed uninitialized.public final boolean tryGetPropertyInt32(long tag, int[] value)
Gets the value of the specified property as Int32 type. A return value indicates whether the operation succeeded.
tag
- The MAPI property tag.value
- When this method returns, contains the value
of the specified property, if the property exists.
This parameter is passed uninitialized.public com.aspose.email.IMapiNode createMapiNode(String key)
Creates the mapi node.
key
- The node key.