com.aspose.note.revision

Interfaces

Classes

com.aspose.note.revision

Class Property

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<Property>


    public class Property
    extends Object
    implements com.aspose.ms.System.IEquatable<Property>

    The property.

    • Constructor Detail

      • Property

        public Property(PropertyId id)

        Initializes a new instance of the Property class.

        Parameters:
        id - The id.
      • Property

        public Property(PropertyId id,
                        byte value)

        Initializes a new instance of the Property class.

        Parameters:
        id - The id.
        value - The value.
      • Property

        public Property(PropertyId id,
                        byte[] value)

        Initializes a new instance of the Property class.

        Parameters:
        id - The id.
        value - The value.
      • Property

        public Property(PropertyId id,
                        PrtArrayOfPropertyValues value)

        Initializes a new instance of the Property class.

        Parameters:
        id - The id.
        value - The value.
      • Property

        public Property(PropertyId id,
                        PropertySet value)

        Initializes a new instance of the Property class.

        Parameters:
        id - The id.
        value - The value.
      • Property

        public Property(PropertyId id,
                        long value)

        Initializes a new instance of the Property class.

        Parameters:
        id - The id.
        value - The value.
    • Method Detail

      • getBoolValue

        public boolean getBoolValue()

        Gets the value of a Boolean property. Must be false if the value of the type field is not equal to 0x2.

      • getBytesValue

        public byte[] getBytesValue()

        Gets the value of a byte array property. Must be null if the value of the type field is not equal to 0x3, 0x4, 0x5, 0x6.

      • getPrtFourBytesOfLengthFollowedByDataValue

        public PrtFourBytesOfLengthFollowedByData getPrtFourBytesOfLengthFollowedByDataValue()

        Gets the value of a byte array property. Must be null if the value of the type field is not equal to 0x7.

      • getPrtArrayOfPropertyValue

        public PrtArrayOfPropertyValues getPrtArrayOfPropertyValue()

        Gets the value of a PrtArrayOfPropertyValues property. Must be null if the value of the type field is not equal to 0x10.

      • getPropertySetValue

        public PropertySet getPropertySetValue()

        Gets the value of a PropertySet property. Must be null if the value of the type field is not equal to 0x10.

      • getIntegerValue

        public long getIntegerValue()

        Gets the value of a UInt32 property.

      • isBytesValue

        public boolean isBytesValue()

        The is bytes value.

        Returns:
        The bool.
      • isLongBytesValue

        public boolean isLongBytesValue()

        The is long bytes value.

        Returns:
        The bool.
      • isObjectIDsValue

        public boolean isObjectIDsValue()

        The is object i ds value.

        Returns:
        The bool.
      • isObjectSpaceValue

        public boolean isObjectSpaceValue()

        The is object space value.

        Returns:
        The bool.
      • isContextIdValue

        public boolean isContextIdValue()

        The is context id value.

        Returns:
        The bool.
      • isArrayOfCompactIdsValue

        public boolean isArrayOfCompactIdsValue()

        Checks if the property contains an array of CompactIDs.

      • getStructSize

        public long getStructSize()

        Gets the struct size.

      • equals

        public boolean equals(Property other)

        The equals.

        Parameters:
        other - The other.
        Returns:
        The bool.
      • equals

        public boolean equals(Object obj)
        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<Property>
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()

        The to string.

        Overrides:
        toString in class Object
        Returns:
        The string.