Packages

 

com.groupdocs.signature.domain.signatures.metadata

Class MetadataSignature

    • 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

        protected 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 Signature value
      • setFValue

        protected 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)

        implements virtual method of setting value into metadata signature

        Parameters:
        value - Given metadata value
      • toBoolean

        public 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 Date toDateTime()

        Converts to DateTime.

        Returns:
        Returns the Metadata Signature value as DateTime.


        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 Date toDateTime(com.aspose.ms.System.IFormatProvider provider)

        Converts to DateTime.

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


        Throws an exception if the Metadata value could not be converted

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

        public 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 double toDouble(com.aspose.ms.System.IFormatProvider provider)

        Converts to Double.

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


        Throws an exception if the Metadata value could not be converted

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

        public 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 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 conversion operations.


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

        Returns:
        Returns the Metadata Signature value as String.