MessageObjectProperty

Inheritance: java.lang.Object

public final class MessageObjectProperty

Represents a property on a MessageObject.

Constructors

ConstructorDescription
MessageObjectProperty(long propertyTag, int flags, Object value)Initializes a new instance of the MessageObjectProperty class.
MessageObjectProperty(int id, int type, int flags, Object value)Initializes a new instance of the MessageObjectProperty class.

Methods

MethodDescription
equals(Object arg0)
getAtomic()Gets a value indicating whether this MessageObjectProperty is atomic.
getClass()
getFlags()Gets the flags set on a property.
getGuid()Gets or sets the GUID for the named property.
getId()Gets the id of the property.
getName()Gets or sets the name of the property if it’s named.
getNameId()Gets or sets the name id of the property if it’s named.
getNamed()Gets a value indicating whether this MessageObjectProperty is a named property.
getPropertyKind()Gets or sets the kind of the property if it’s named.
getPropertyTag()Gets the property tag, a combined value which contains Id (#getId.getId) and PropertyType (#getPropertyType.getPropertyType)
getPropertyType()Gets the type of the property.
getValue()Gets or sets the value of the property.
hashCode()
notify()
notifyAll()
setGuid(UUID value)Gets or sets the GUID for the named property.
setName(String value)Gets or sets the name of the property if it’s named.
setNameId(long value)Gets or sets the name id of the property if it’s named.
setPropertyKind(int value)Gets or sets the kind of the property if it’s named.
setValue(Object value)Gets or sets the value of the property.
toDateTime()Converts the value of the property to DateTime.
toGuid()Converts the value of the property to Guid (#getGuid.getGuid/#setGuid(Guid).setGuid(Guid)).
toInt()Converts the value of the property to integer.
toList()Converts the value of the property to a list of values.
toString()
toStringRepresentation()Converts the value of the property to string.
wait()
wait(long arg0)
wait(long arg0, int arg1)

MessageObjectProperty(long propertyTag, int flags, Object value)

public MessageObjectProperty(long propertyTag, int flags, Object value)

Initializes a new instance of the MessageObjectProperty class.

Parameters:

ParameterTypeDescription
propertyTaglongThe property tag.
flagsintThe flags to be set on.
valuejava.lang.ObjectThe value of the property.

MessageObjectProperty(int id, int type, int flags, Object value)

public MessageObjectProperty(int id, int type, int flags, Object value)

Initializes a new instance of the MessageObjectProperty class.

Parameters:

ParameterTypeDescription
idintThe id.
typeintThe type of the property.
flagsintThe flags to be set on.
valuejava.lang.ObjectThe value of the property.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAtomic()

public final boolean getAtomic()

Gets a value indicating whether this MessageObjectProperty is atomic.

Value: true if atomic; otherwise, false .

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFlags()

public final int getFlags()

Gets the flags set on a property.

Value: The flags.

Returns: int

getGuid()

public final UUID getGuid()

Gets or sets the GUID for the named property.

Value: The GUID.

Returns: java.util.UUID

getId()

public final int getId()

Gets the id of the property.

Value: The id if the property.

Returns: int

getName()

public final String getName()

Gets or sets the name of the property if it’s named.

Value: The name.

Returns: java.lang.String

getNameId()

public final long getNameId()

Gets or sets the name id of the property if it’s named.

Value: The name id.

Returns: long

getNamed()

public final boolean getNamed()

Gets a value indicating whether this MessageObjectProperty is a named property.

Value: true if named; otherwise, false .


A named property is determined by its ID, the range for such ids is [0x8000,0xfffe].

Returns: boolean

getPropertyKind()

public final int getPropertyKind()

Gets or sets the kind of the property if it’s named.

Value: The kind of the property.

Returns: int

getPropertyTag()

public final long getPropertyTag()

Gets the property tag, a combined value which contains Id (#getId.getId) and PropertyType (#getPropertyType.getPropertyType)

Value: The property tag.

Returns: long

getPropertyType()

public final int getPropertyType()

Gets the type of the property.

Value: The type of the property.

Returns: int

getValue()

public final Object getValue()

Gets or sets the value of the property.

Returns: java.lang.Object

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setGuid(UUID value)

public final void setGuid(UUID value)

Gets or sets the GUID for the named property.

Value: The GUID.

Parameters:

ParameterTypeDescription
valuejava.util.UUID

setName(String value)

public final void setName(String value)

Gets or sets the name of the property if it’s named.

Value: The name.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setNameId(long value)

public final void setNameId(long value)

Gets or sets the name id of the property if it’s named.

Value: The name id.

Parameters:

ParameterTypeDescription
valuelong

setPropertyKind(int value)

public final void setPropertyKind(int value)

Gets or sets the kind of the property if it’s named.

Value: The kind of the property.

Parameters:

ParameterTypeDescription
valueint

setValue(Object value)

public final void setValue(Object value)

Gets or sets the value of the property.

Parameters:

ParameterTypeDescription
valuejava.lang.Object

toDateTime()

public final Date toDateTime()

Converts the value of the property to DateTime.

Returns: java.util.Date - DateTime value, if type can’t be converted to DateTime returns java.util.Date#MinValue.MinValue.


This method doesn’t provide automatic conversion of the data types, e.g. if MessageObjectProperty.Value (#getValue.getValue/#setValue(Object).setValue(Object)) property is of type default value will be returned.

toGuid()

public final UUID toGuid()

Converts the value of the property to Guid (#getGuid.getGuid/#setGuid(Guid).setGuid(Guid)).

Returns: java.util.UUID - Guid object, if type can’t be converted to Guid returns empty GUID.


This method doesn’t provide automatic conversion of the data types, e.g. if MessageObjectProperty.Value (#getValue.getValue/#setValue(Object).setValue(Object)) property is of type default value will be returned.

toInt()

public final int toInt()

Converts the value of the property to integer.

Returns: int - Integer value, if type can’t be converted to integer returns 0.

toList()

public System.Collections.IList toList()

Converts the value of the property to a list of values.

Returns: com.aspose.ms.System.Collections.IList - IList implementation, if type can’t be converted to IList returns empty list implementation.


This method doesn’t provide automatic conversion of the data types, e.g. if MessageObjectProperty.Value (#getValue.getValue/#setValue(Object).setValue(Object)) property is of type default value will be returned.

toString()

public String toString()

Returns: java.lang.String

toStringRepresentation()

public final String toStringRepresentation()

Converts the value of the property to string.

Returns: java.lang.String - String value, if type can’t be converted to string returns empty string.


This method doesn’t provide automatic conversion of the data types, e.g. if MessageObjectProperty.Value (#getValue.getValue/#setValue(Object).setValue(Object)) property is of type default value will be returned.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int