Packages

 

com.groupdocs.signature.domain.signatures.metadata

Class MetadataSignature

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable
    Direct Known Subclasses:
    PdfMetadataSignature


    public abstract class MetadataSignature
    extends BaseSignature
    implements com.aspose.ms.System.ICloneable

    Contains Metadata Signature properties.

    • Constructor Detail

      • MetadataSignature

        public MetadataSignature(String name)

        Creates Metadata Signature with predefined name and empty value

        Parameters:
        name - Metadata name
      • MetadataSignature

        public MetadataSignature(String name,
                         Object value)

        Creates Metadata Signature with predefined values

        Parameters:
        name - Name of Metadata signature object
        value - Value of Metadata signature
    • Method Detail

      • deepClone

        public Object deepClone()

        Clone Metadata Signature instance.

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Returns:
        Returns cloned Metadata Signature instance
      • deepClone

        public MetadataSignature deepClone(Object value)

        Clone Metadata Signature instance with given value.

        Parameters:
        value - Value for new cloned object.
        Returns:
        Returns cloned Metadata Signature instance with given value.
      • getFValue

        public final Object getFValue()

        Protected Metadata object value

      • getName

        public final String getName()

        Specifies unique metadata name.

      • getType

        public final int getType()

        Specifies metadata value type.

      • getValue

        public final Object getValue()

        Specifies metadata object.

      • getValueObject

        protected Object getValueObject()

        Get Metadata value

        Returns:
        Returns Metadata Siganture value
      • setFValue

        public final void setFValue(Object value)

        Protected Metadata object value

      • setName

        public final void setName(String value)

        Specifies unique metadata name.

      • setValue

        public final void setValue(Object value)

        Specifies metadata object.

      • setValueObject

        protected void setValueObject(Object value)

        Parameters:
        value -
      • toBoolean

        public final boolean toBoolean()

        Converts to boolean.

        Returns:
        Returns the Metadata signature value as boolean.


        Throws an exception if the Metadata value could not be converted.

      • toDateTime

        public final Date toDateTime()

        Converts to Date.

        Returns:
        Returns the Metadata Signature value as Date.


        Throws an exception if the Metadata value could not be converted. If original value is string based the default culture property info will be used from static SignatureConfig SignatureConfig.DefaultCulture

      • toDateTime

        public final Date toDateTime(com.aspose.ms.System.IFormatProvider provider)

        Converts to Date.

        Parameters:
        provider - Format data provider to use with data convertion operations.


        Throws an exception if the Metadata value could not be converted

        Returns:
        Returns the Metadata Signature value as DateTime.
      • toDouble

        public final double toDouble()

        Converts to Double.

        Returns:
        Returns the Metadata Signature value as Double.


        Throws an exception if the Metadata value could not be converted. If original value is string based the default culture property info will be used from static SignatureConfig SignatureConfig.DefaultCulture

      • toDouble

        public final double toDouble(com.aspose.ms.System.IFormatProvider provider)

        Converts to Double.

        Parameters:
        provider - Format data provider to use with data convertion operations.


        Throws an exception if the Metadata value could not be converted

        Returns:
        Returns the Metadata Signature value as Double.
      • toInteger

        public final int toInteger()

        Converts to integer.

        Returns:
        Returns the Metadata Signature value as integer.


        Throws an exception if the Metadata value could not be converted.

      • toString

        public String toString()

        Converts to String with override ToString() method

        Overrides:
        toString in class Object
        Returns:
        Returns the Metadata Signature value as String.


        Converts a boolean property into "True" or "False". For another data type the default data format provider will be used.

      • toString

        public final String toString(String format)

        Converts to String with specified format

        Parameters:
        format - Data format string.


        Converts a boolean property into "True" or "False". Default culture property info will be used from static SignatureConfig SignatureConfig.DefaultCulture

        Returns:
        Returns the Metadata Signature value as String.
      • toString

        public final String toString(String format,
                      Locale locale)

        Converts to String with specified format

        Parameters:
        format - Data format string.
        locale - Format data provider to use with data convertion operations.


        Converts a boolean property into "True" or "False".

        Returns:
        Returns the Metadata Signature value as String.