public class MapiProperty extends Object
Represents the mapi property.
Modifier and Type | Field and Description |
---|---|
protected byte[] |
data |
protected long |
signedFlag |
protected long |
tag |
Modifier | Constructor and Description |
---|---|
protected |
MapiProperty()
Initializes a new instance of the
MapiProperty class. |
|
MapiProperty(long tag)
Initializes a new instance of the MapiProperty class.
|
|
MapiProperty(long tag,
byte[] data)
Initializes a new instance of the MapiProperty class.
|
|
MapiProperty(long tag,
Iterable<?> values)
Initializes a new instance of the
MapiProperty class. |
|
MapiProperty(long tag,
long signedParam,
byte[] data)
Initializes a new instance of the
MapiProperty class. |
|
MapiProperty(PidLidPropertyDescriptor pd,
Object data)
Initializes a new instance of the MapiProperty class.
|
|
MapiProperty(PidTagPropertyDescriptor pd,
Object data)
Initializes a new instance of the MapiProperty class.
|
|
MapiProperty(String name,
long tag,
long signedParam,
byte[] data)
Initializes a new instance of the MapiProperty class.
|
Modifier and Type | Method and Description |
---|---|
static MapiProperty |
createMapiPropertyFromBytes(long tag,
byte[] data)
Creates the mapi property from bytes.
|
static MapiProperty |
createMapiPropertyFromDateTime(long tag,
Date data)
Creates the mapi property from date time.
|
static MapiProperty |
createMapiPropertyFromLong(long tag,
long data)
Creates the mapi property from long.
|
static MapiProperty |
createMapiPropertyFromLong(long tag,
long data,
long delimiter)
Creates the mapi property from long.
|
boolean |
getBoolean()
Gets the first bytes of the binary data as boolean.
|
BigDecimal |
getCurrency()
Gets the Currency as string using the specified code page.
|
byte[] |
getData()
Gets the binary data.
|
int |
getDataType()
Gets the data type.
|
Date |
getDateTime()
Gets the first bytes of the binary data as datetime.
|
PropertyDescriptor |
getDescriptor()
Gets descriptor of MAPI property
|
double |
getDouble()
Gets the bytes of the binary data as double.
|
float |
getFloat()
Gets the bytes of the binary data as float.
|
Date |
getFloatingDate()
Gets the bytes of the binary data as DateTime.
|
UUID |
getGuidValue()
Gets the bytes of the binary data as Guid.
|
long |
getIdentifier()
Gets the indifier.
|
int |
getInt32()
Gets the first 4 bytes of the binary data as int32.
|
long |
getLong()
Gets the first 8 bytes of the binary data as long.
|
byte[][] |
getMultipleBinary()
Gets the multyple binary data.
|
boolean[] |
getMultipleBoolean()
Gets the multyple bool values.
|
BigDecimal[] |
getMultipleCurrency()
Gets the multyple decimal values.
|
float[] |
getMultipleFloating32()
Gets the multyple float values.
|
double[] |
getMultipleFloating64()
Gets the multyple double values.
|
Date[] |
getMultipleFloatingTime()
Gets the multyple DateTime values.
|
UUID[] |
getMultipleGuid()
Gets the multyple Guid values.
|
short[] |
getMultipleInteger16()
Gets the multyple Int16 values.
|
int[] |
getMultipleInteger32()
Gets the multyple Int32 values.
|
long[] |
getMultipleInteger64()
Gets the multyple Int64 values.
|
String[] |
getMultipleString()
Gets the multyple strings data.
|
Date[] |
getMultipleTime()
Gets the multyple DateTime values.
|
com.aspose.ms.System.Collections.IList |
getMVEntries()
Gets the MV entries list.
|
String |
getName()
Gets the name.
|
String |
getPropertyTagName()
Gets the PropertyName.
|
short |
getShort()
Gets the first 2 bytes of the binary data as short.
|
String |
getString()
Gets the binary data as string.
|
String |
getString(int codepage)
Gets the binary data as string using the specified code page.
|
long |
getTag()
Gets the tag.
|
Object |
getValue()
Gets value as object
|
boolean |
isNamed()
Indicates whether the property is a named property.
|
boolean |
isSigned()
Indicates whether the binary data is signed.
|
void |
setSigned(boolean value)
Indicates whether the binary data is signed.
|
String |
toString()
|
protected MapiProperty()
Initializes a new instance of the MapiProperty
class.
public MapiProperty(long tag, byte[] data)
Initializes a new instance of the MapiProperty class.
tag
- The tag key of the property.data
- The binary data of the property.public MapiProperty(long tag)
Initializes a new instance of the MapiProperty class.
tag
- The tag key of the property.public MapiProperty(PidTagPropertyDescriptor pd, Object data)
Initializes a new instance of the MapiProperty class.
pd
- Property descriptordata
- The data of the property.public MapiProperty(PidLidPropertyDescriptor pd, Object data)
Initializes a new instance of the MapiProperty class.
pd
- Property descriptordata
- The data of the property.public MapiProperty(long tag, Iterable<?> values)
Initializes a new instance of the MapiProperty
class.
This overload is used to create a multiple valued property, PT_MV_*.
tag
- The property tag.values
- The values.public MapiProperty(long tag, long signedParam, byte[] data)
Initializes a new instance of the MapiProperty
class.
tag
- The property tag.signedParam
- The signed.data
- The property data.public MapiProperty(String name, long tag, long signedParam, byte[] data)
Initializes a new instance of the MapiProperty class.
name
- The name.tag
- The tag key of the property.signedParam
- Indicates the data is signed or not.data
- The binary data of the property.public String getPropertyTagName()
Gets the PropertyName.
public String getName()
Gets the name.
public long getIdentifier()
Gets the indifier.
public long getTag()
Gets the tag.
public int getDataType()
Gets the data type.
public byte[] getData()
Gets the binary data.
public final com.aspose.ms.System.Collections.IList getMVEntries()
Gets the MV entries list.
public boolean isSigned()
Indicates whether the binary data is signed.
public void setSigned(boolean value)
Indicates whether the binary data is signed.
public final boolean isNamed()
Indicates whether the property is a named property.
public long getLong()
Gets the first 8 bytes of the binary data as long.
public int getInt32()
Gets the first 4 bytes of the binary data as int32.
public short getShort()
Gets the first 2 bytes of the binary data as short.
public boolean getBoolean()
Gets the first bytes of the binary data as boolean.
public Date getDateTime()
Gets the first bytes of the binary data as datetime.
public String getString()
Gets the binary data as string.
public final byte[][] getMultipleBinary()
Gets the multyple binary data.
public final String[] getMultipleString()
Gets the multyple strings data.
public final float[] getMultipleFloating32()
Gets the multyple float values.
public final double[] getMultipleFloating64()
Gets the multyple double values.
public final short[] getMultipleInteger16()
Gets the multyple Int16 values.
public final int[] getMultipleInteger32()
Gets the multyple Int32 values.
public final long[] getMultipleInteger64()
Gets the multyple Int64 values.
public final boolean[] getMultipleBoolean()
Gets the multyple bool values.
public final BigDecimal[] getMultipleCurrency()
Gets the multyple decimal values.
public final UUID[] getMultipleGuid()
Gets the multyple Guid values.
public final Date[] getMultipleTime()
Gets the multyple DateTime values.
public final Date[] getMultipleFloatingTime()
Gets the multyple DateTime values.
public final PropertyDescriptor getDescriptor()
Gets descriptor of MAPI property
public final Object getValue()
Gets value as object
public BigDecimal getCurrency()
Gets the Currency as string using the specified code page.
public String getString(int codepage)
Gets the binary data as string using the specified code page.
codepage
- The code page.public Date getFloatingDate()
Gets the bytes of the binary data as DateTime.
public UUID getGuidValue()
Gets the bytes of the binary data as Guid.
public double getDouble()
Gets the bytes of the binary data as double.
public float getFloat()
Gets the bytes of the binary data as float.
public String toString()
public static MapiProperty createMapiPropertyFromLong(long tag, long data)
Creates the mapi property from long.
tag
- The tag.data
- The data.public static MapiProperty createMapiPropertyFromLong(long tag, long data, long delimiter)
Creates the mapi property from long.
tag
- The tag.data
- The data.delimiter
- The delimiter.public static MapiProperty createMapiPropertyFromBytes(long tag, byte[] data)
Creates the mapi property from bytes.
tag
- The tag.data
- The data.public static MapiProperty createMapiPropertyFromDateTime(long tag, Date data)
Creates the mapi property from date time.
tag
- The tag.data
- The data.