|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.email.MessageObjectProperty
public final class MessageObjectProperty
Represents a property on a MessageObject
.
Constructor Summary | |
---|---|
MessageObjectProperty(int id,
MapiType type,
int flags,
Object value)
Initializes a new instance of the MapiPropertyAtomic class. |
|
MessageObjectProperty(long propertyTag,
int flags,
Object value)
Initializes a new instance of the MapiPropertyAtomic class. |
Method Summary | |
---|---|
boolean |
getAtomic()
Gets a value indicating whether this MessageObjectProperty is atomic. |
int |
getFlags()
Gets the flags set on a property. |
UUID |
getGuid()
|
int |
getId()
Gets the id of the property. |
String |
getName()
Gets or sets the name of the property if it's named. |
boolean |
getNamed()
Gets a value indicating whether this MessageObjectProperty is a named property. |
long |
getNameId()
Gets or sets the name id of the property if it's named. |
NamedPropertyKind |
getPropertyKind()
Gets or sets the kind of the property if it's named. |
long |
getPropertyTag()
Gets the property tag, a combined value which contains Id and PropertyType |
MapiType |
getPropertyType()
Gets the type of the property. |
Object |
getValue()
Gets or sets the value of the property. |
void |
setGuid(UUID value)
|
void |
setName(String value)
|
void |
setNameId(long value)
|
void |
setPropertyKind(NamedPropertyKind value)
|
void |
setValue(Object value)
|
Date |
toDateTime()
|
UUID |
toGuid()
|
int |
toInt()
Converts the value of the property to integer. |
List |
toList()
Converts the value of the property to a list of values. |
String |
toStringRepresentation()
Converts the value of the property to string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageObjectProperty(long propertyTag, int flags, Object value)
Initializes a new instance of the MapiPropertyAtomic
class.
propertyTag
- The property tag.flags
- The flags to be set on.value
- The value of the property.
com.aspose.ms.System.IllegalArgumentException
- If value
is null.
com.aspose.ms.System.InvalidEnumArgumentException
- If propertyTag
contains invalid type definition."public MessageObjectProperty(int id, MapiType type, int flags, Object value)
Initializes a new instance of the MapiPropertyAtomic
class.
id
- The id.type
- The type of the property.flags
- The flags to be set on.value
- The value of the property.
com.aspose.ms.System.IllegalArgumentException
- If value
is null.
com.aspose.ms.System.InvalidEnumArgumentException
- If type
is invalid."Method Detail |
---|
public MapiType getPropertyType()
Gets the type of the property.
Value: The type of the property.
public int getFlags()
Gets the flags set on a property.
Value: The flags.
public int getId()
Gets the id of the property.
Value: The id if the property.
public long getPropertyTag()
Gets the property tag, a combined value which contains Id
and PropertyType
public UUID getGuid()
public void setGuid(UUID value)
public NamedPropertyKind getPropertyKind()
Gets or sets the kind of the property if it's named.
Value: The kind of the property.
public void setPropertyKind(NamedPropertyKind value)
public String getName()
Gets or sets the name of the property if it's named.
Value: The name.
public void setName(String value)
public long getNameId()
Gets or sets the name id of the property if it's named.
Value: The name id.
public void setNameId(long value)
public boolean getNamed()
Gets a value indicating whether this MessageObjectProperty
is a named property.
true
if named; otherwise, false
.
public boolean getAtomic()
Gets a value indicating whether this MessageObjectProperty
is atomic.
true
if atomic; otherwise, false
.
public Object getValue()
Gets or sets the value of the property.
com.aspose.ms.System.IllegalArgumentException
- If passed value is null.
Value: The value.public void setValue(Object value)
public int toInt()
Converts the value of the property to integer.
public Date toDateTime()
public String toStringRepresentation()
Converts the value of the property to string.
MessageObjectProperty.Value
property is of type default value will be returned.public List toList()
Converts the value of the property to a list of values.
MessageObjectProperty.Value
property is of type default value will be returned.public UUID toGuid()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |