com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MapiProperty

    • Field Detail

      • signedFlag

        protected long signedFlag
      • tag

        protected long tag
      • data

        protected byte[] data
    • Constructor Detail

      • MapiProperty

        protected MapiProperty()

        Initializes a new instance of the MapiProperty class.

      • MapiProperty

        public MapiProperty(long tag,
                    byte[] data)

        Initializes a new instance of the MapiProperty class.

        Parameters:
        tag - The tag key of the property.
        data - The binary data of the property.
      • MapiProperty

        public MapiProperty(long tag)

        Initializes a new instance of the MapiProperty class.

        Parameters:
        tag - The tag key of the property.
      • MapiProperty

        public MapiProperty(PidTagPropertyDescriptor pd,
                    Object data)

        Initializes a new instance of the MapiProperty class.

        Parameters:
        pd - Property descriptor
        data - The data of the property.
      • MapiProperty

        public MapiProperty(PidLidPropertyDescriptor pd,
                    Object data)

        Initializes a new instance of the MapiProperty class.

        Parameters:
        pd - Property descriptor
        data - The data of the property.
      • MapiProperty

        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_*.

        Parameters:
        tag - The property tag.
        values - The values.
      • MapiProperty

        public MapiProperty(long tag,
                    long signedParam,
                    byte[] data)

        Initializes a new instance of the MapiProperty class.

        Parameters:
        tag - The property tag.
        signedParam - The signed.
        data - The property data.
      • MapiProperty

        public MapiProperty(String name,
                    long tag,
                    long signedParam,
                    byte[] data)

        Initializes a new instance of the MapiProperty class.

        Parameters:
        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.
    • Method Detail

      • getPropertyTagName

        public String getPropertyTagName()

        Gets the PropertyName.

      • getName

        public String getName()

        Gets the name.

      • getIdentifier

        public long getIdentifier()

        Gets the indifier.

      • getTag

        public long getTag()

        Gets the tag.

      • getDataType

        public int getDataType()

        Gets the data type.

      • getData

        public byte[] getData()

        Gets the binary data.

      • getMVEntries

        public final com.aspose.ms.System.Collections.IList getMVEntries()

        Gets the MV entries list.

      • isSigned

        public boolean isSigned()

        Indicates whether the binary data is signed.

      • setSigned

        public void setSigned(boolean value)

        Indicates whether the binary data is signed.

      • isNamed

        public final boolean isNamed()

        Indicates whether the property is a named property.

      • getLong

        public long getLong()

        Gets the first 8 bytes of the binary data as long.

        Returns:
        The long value.
      • getInt32

        public int getInt32()

        Gets the first 4 bytes of the binary data as int32.

        Returns:
        The int32 value.
      • getShort

        public short getShort()

        Gets the first 2 bytes of the binary data as short.

        Returns:
        The short value.
      • getBoolean

        public boolean getBoolean()

        Gets the first bytes of the binary data as boolean.

        Returns:
        The boolean value.
      • getDateTime

        public Date getDateTime()

        Gets the first bytes of the binary data as datetime.

        Returns:
        The datetime value.
      • getString

        public String getString()

        Gets the binary data as string.

        Returns:
        A string contains the binary data.
      • getMultipleBinary

        public final byte[][] getMultipleBinary()

        Gets the multyple binary data.

        Returns:
        A multyple byte arrays.
      • getMultipleString

        public final String[] getMultipleString()

        Gets the multyple strings data.

        Returns:
        A string array.
      • getMultipleFloating32

        public final float[] getMultipleFloating32()

        Gets the multyple float values.

        Returns:
        A float array.
      • getMultipleFloating64

        public final double[] getMultipleFloating64()

        Gets the multyple double values.

        Returns:
        A double array.
      • getMultipleInteger16

        public final short[] getMultipleInteger16()

        Gets the multyple Int16 values.

        Returns:
        A Int16 array.
      • getMultipleInteger32

        public final int[] getMultipleInteger32()

        Gets the multyple Int32 values.

        Returns:
        A Int32 array.
      • getMultipleInteger64

        public final long[] getMultipleInteger64()

        Gets the multyple Int64 values.

        Returns:
        A Int64 array.
      • getMultipleBoolean

        public final boolean[] getMultipleBoolean()

        Gets the multyple bool values.

        Returns:
        A bool array.
      • getMultipleCurrency

        public final BigDecimal[] getMultipleCurrency()

        Gets the multyple decimal values.

        Returns:
        A decimal array.
      • getMultipleGuid

        public final UUID[] getMultipleGuid()

        Gets the multyple Guid values.

        Returns:
        A Guid array.
      • getMultipleTime

        public final Date[] getMultipleTime()

        Gets the multyple DateTime values.

        Returns:
        A DateTime array.
      • getMultipleFloatingTime

        public final Date[] getMultipleFloatingTime()

        Gets the multyple DateTime values.

        Returns:
        A DateTime array.
      • getDescriptor

        public final PropertyDescriptor getDescriptor()

        Gets descriptor of MAPI property

      • getValue

        public final Object getValue()

        Gets value as object

        Returns:
        value of a property
      • getCurrency

        public BigDecimal getCurrency()

        Gets the Currency as string using the specified code page.

        Returns:
        A string contains the binary data.
      • getString

        public String getString(int codepage)

        Gets the binary data as string using the specified code page.

        Parameters:
        codepage - The code page.
        Returns:
        A string contains the binary data.
      • getFloatingDate

        public Date getFloatingDate()

        Gets the bytes of the binary data as DateTime.

        Returns:
        The DateTime value.
      • getGuidValue

        public UUID getGuidValue()

        Gets the bytes of the binary data as Guid.

        Returns:
        The Guid value.
      • getDouble

        public double getDouble()

        Gets the bytes of the binary data as double.

        Returns:
        The double value.
      • getFloat

        public float getFloat()

        Gets the bytes of the binary data as float.

        Returns:
        The double value.
      • createMapiPropertyFromLong

        public static MapiProperty createMapiPropertyFromLong(long tag,
                                              long data)

        Creates the mapi property from long.

        Parameters:
        tag - The tag.
        data - The data.
        Returns:
      • createMapiPropertyFromLong

        public static MapiProperty createMapiPropertyFromLong(long tag,
                                              long data,
                                              long delimiter)

        Creates the mapi property from long.

        Parameters:
        tag - The tag.
        data - The data.
        delimiter - The delimiter.
        Returns:
      • createMapiPropertyFromBytes

        public static MapiProperty createMapiPropertyFromBytes(long tag,
                                               byte[] data)

        Creates the mapi property from bytes.

        Parameters:
        tag - The tag.
        data - The data.
        Returns:
      • createMapiPropertyFromDateTime

        public static MapiProperty createMapiPropertyFromDateTime(long tag,
                                                  Date data)

        Creates the mapi property from date time.

        Parameters:
        tag - The tag.
        data - The data.
        Returns: