Packages

 

com.groupdocs.signature.domain.signatures.metadata

Class ImageMetadataSignature

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable


    public final class ImageMetadataSignature
    extends MetadataSignature

    Contains Image Metadata Signature properties.

    • Constructor Detail

      • ImageMetadataSignature

        public ImageMetadataSignature(int id,
                              Object value)

        Creates Image Metadata Signature with Id and value

        Parameters:
        id - Unique identifier Image Metadata Signature name. See references for Exif tags specifications for possible id values
        value - Metadata value
    • Method Detail

      • deepClone

        public Object deepClone()

        Clone Metadata Signature instance.

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

        public MetadataSignature deepClone(Object value)

        Clone Image Metadata Signature instance with given value.

        Overrides:
        deepClone in class MetadataSignature
        Parameters:
        value - Value for new cloned object.
        Returns:
        Returns cloned Metadata Signature instance.
      • getDescription

        public final String getDescription()

        Read-only value to get description for standard Image Metadata signature

      • getId

        public final int getId()

        The identifier of Image Metadata Signature. See ImageMetadataSignatures class that contains standard Signature with predefined Id value.

      • getSize

        public final int getSize()

        Read-only value to get size of Metadata value

      • setId

        public final void setId(int value)

        The identifier of Image Metadata Signature. See ImageMetadataSignatures class that contains standard Signature with predefined Id value.

      • setSize

        public final void setSize(int value)

        Read-only value to get size of Metadata value

      • setValue_Rename_Namesake

        protected void setValue_Rename_Namesake(Object value)

        Overrides virtual method of setting value into image metadata signature

        Parameters:
        value - Given metadata value
      • toBoolean

        public boolean toBoolean()

        Converts to boolean.

        Overrides:
        toBoolean in class MetadataSignature
        Returns:
        Returns the Metadata signature value as boolean.


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

      • toDateTime

        public Date toDateTime(Locale provider)

        Converts to DateTime.

        Overrides:
        toDateTime in class MetadataSignature
        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.
      • toDecimal

        public final BigDecimal toDecimal()

        Converts to Decimal.

        Returns:
        Returns the Image Metadata Signature value as Decimal.


        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(SignatureConfig.getDefaultCulture()/setDefaultCulture(CultureInfo))

      • toDecimal

        public final BigDecimal toDecimal(Locale provider)

        Converts to Decimal.

        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 Decimal.
      • toDouble

        public double toDouble(Locale provider)

        Converts to Double.

        Overrides:
        toDouble in class MetadataSignature
        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.

        Overrides:
        toInteger in class MetadataSignature
        Returns:
        Returns the Metadata Signature value as integer.


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

      • toLong

        public final long toLong()

        Converts to long.

        Returns:
        Returns the Metadata Signature value as long.


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

      • toSingle

        public final float toSingle()

        Converts to float.

        Returns:
        Returns the Image Metadata Signature value as float.


        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(SignatureConfig.getDefaultCulture()/setDefaultCulture(CultureInfo))

      • toSingle

        public final float toSingle(Locale provider)

        Converts to float.

        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 float.
      • toString

        public String toString()

        Converts to String with override ToString() method

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

        public String toString(String format)

        Converts to String with specified format

        Overrides:
        toString in class MetadataSignature
        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(SignatureConfig.getDefaultCulture()

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

        public String toString(String format,
                      Locale provider)

        Converts to String with specified format

        Overrides:
        toString in class MetadataSignature
        Parameters:
        format - Data format string.
        provider - 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.