public final class MessageObjectProperty extends Object
Represents a property on a MessageObject
.
Constructor and Description |
---|
MessageObjectProperty(int id,
int type,
int flags,
Object value)
Initializes a new instance of the
MessageObjectProperty class. |
MessageObjectProperty(long propertyTag,
int flags,
Object value)
Initializes a new instance of the
MessageObjectProperty class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAtomic()
Gets a value indicating whether this
MessageObjectProperty is atomic. |
int |
getFlags()
Gets the flags set on a property.
|
UUID |
getGuid()
Gets or sets the GUID for the named property.
|
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.
|
int |
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 (getId() ) and PropertyType (getPropertyType() ) |
int |
getPropertyType()
Gets the type of the property.
|
Object |
getValue()
Gets or sets the value of the property.
|
void |
setGuid(UUID value)
Gets or sets the GUID for the named property.
|
void |
setName(String value)
Gets or sets the name of the property if it's named.
|
void |
setNameId(long value)
Gets or sets the name id of the property if it's named.
|
void |
setPropertyKind(int value)
Gets or sets the kind of the property if it's named.
|
void |
setValue(Object value)
Gets or sets the value of the property.
|
Date |
toDateTime()
Converts the value of the property to DateTime.
|
UUID |
toGuid()
|
int |
toInt()
Converts the value of the property to integer.
|
com.aspose.ms.System.Collections.IList |
toList()
Converts the value of the property to a list of values.
|
String |
toStringRepresentation()
Converts the value of the property to string.
|
public MessageObjectProperty(long propertyTag, int flags, Object value)
Initializes a new instance of the MessageObjectProperty
class.
propertyTag
- The property tag.flags
- The flags to be set on.value
- The value of the property.com.aspose.ms.System.ArgumentNullException
- If value
is null.com.aspose.ms.System.ComponentModel.InvalidEnumArgumentException
- If propertyTag
contains invalid type definition."public MessageObjectProperty(int id, int type, int flags, Object value)
Initializes a new instance of the MessageObjectProperty
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.ArgumentNullException
- If value
is null.com.aspose.ms.System.ComponentModel.InvalidEnumArgumentException
- If type
is invalid."public final int getPropertyType()
Gets the type of the property.
Value: The type of the property.public final int getFlags()
Gets the flags set on a property.
Value: The flags.public final int getId()
Gets the id of the property.
Value: The id if the property.public final long getPropertyTag()
Gets the property tag, a combined value which contains Id
(getId()
) and PropertyType
(getPropertyType()
)
public final UUID getGuid()
Gets or sets the GUID for the named property.
Value: The GUID.public final void setGuid(UUID value)
Gets or sets the GUID for the named property.
Value: The GUID.public final int getPropertyKind()
Gets or sets the kind of the property if it's named.
Value: The kind of the property.public final void setPropertyKind(int value)
Gets or sets the kind of the property if it's named.
Value: The kind of the property.public final String getName()
Gets or sets the name of the property if it's named.
Value: The name.public final void setName(String value)
Gets or sets the name of the property if it's named.
Value: The name.public final long getNameId()
Gets or sets the name id of the property if it's named.
Value: The name id.public final void setNameId(long value)
Gets or sets the name id of the property if it's named.
Value: The name id.public final boolean getNamed()
Gets a value indicating whether this MessageObjectProperty
is a named property.
true
if named; otherwise, false
.public final boolean getAtomic()
Gets a value indicating whether this MessageObjectProperty
is atomic.
true
if atomic; otherwise, false
.public final Object getValue()
Gets or sets the value of the property.
com.aspose.ms.System.ArgumentNullException
- If passed value is null.
Value: The value.public final void setValue(Object value)
Gets or sets the value of the property.
com.aspose.ms.System.ArgumentNullException
- If passed value is null.
Value: The value.public final int toInt()
Converts the value of the property to integer.
public final Date toDateTime()
Converts the value of the property to DateTime.
java.util.Date#MinValue
.
MessageObjectProperty.Value
(getValue()
/setValue(Object)
) property is of type default value will be returned.public final String toStringRepresentation()
Converts the value of the property to string.
MessageObjectProperty.Value
(getValue()
/setValue(Object)
) property is of type default value will be returned.public com.aspose.ms.System.Collections.IList toList()
Converts the value of the property to a list of values.
MessageObjectProperty.Value
(getValue()
/setValue(Object)
) property is of type default value will be returned.public final UUID toGuid()
Converts the value of the property to Guid
(getGuid()
/#setGuid(Guid)
).
MessageObjectProperty.Value
(getValue()
/setValue(Object)
) property is of type default value will be returned.