ImageMetadataSignature
Inheritance: java.lang.Object, com.groupdocs.signature.domain.signatures.BaseSignature, com.groupdocs.signature.domain.signatures.metadata.MetadataSignature
public final class ImageMetadataSignature extends MetadataSignature
Contains Image Metadata signature properties.
Constructors
Constructor | Description |
---|---|
ImageMetadataSignature(int id, Object value) | Creates Image Metadata Signature with Id and value |
Methods
Method | Description |
---|---|
getId() | The identifier of Image Metadata signature. |
setId(int value) | The identifier of Image Metadata signature. |
getSize() | Read-only value to get size of Metadata value |
setSize(int value) | Read-only value to get size of Metadata value |
getDescription() | Read-only value to get description for standard Image Metadata signature |
equals(Object signature) | Overwrites Equals method to compare signature properties |
hashCode() | Overrides GetHashCode method |
deepClone() | Clone Metadata Signature instance. |
deepClone(Object value) | Clone Image Metadata Signature instance with given value. |
toBoolean() | Converts to boolean. |
toInteger() | Converts to integer. |
toLong() | Converts to long. |
toSingle() | Converts to float. |
toSingle(Locale provider) | Converts to float. |
toDouble() | Converts to Double. |
toDouble(Locale provider) | Converts to Double. |
toDecimal() | Converts to Decimal. |
toDecimal(Locale provider) | Converts to Decimal. |
toDateTime() | Converts to DateTime. |
toDateTime(Locale provider) | Converts to DateTime. |
toString() | Converts to String with override ToString() method |
toString(String format) | Converts to String with specified format |
toString(String format, Locale provider) | Converts to String with specified format |
setAsBool(Object value) | |
setAsByte(Object value) | |
setAsShrt(Object value) | |
setAsWord(Object value) | |
setAsSInt(Object value) | |
setAsUInt(Object value) | |
setAsSLng(Object value) | |
setAsULng(Object value) | |
setAsSngl(Object value) | |
setAsDbls(Object value) | |
setAsDcml(Object value) | |
setAsDate(Object value) | |
setAsStrn(Object value) | |
setAsObjc(Object value) | |
setString(Object value) |
ImageMetadataSignature(int id, Object value)
public ImageMetadataSignature(int id, Object value)
Creates Image Metadata Signature with Id and value
Parameters:
Parameter | Type | Description |
---|---|---|
id | int | Unique identifier Image Metadata Signature name. See references for Exif tags specifications for possible id values |
value | java.lang.Object | Metadata value |
getId()
public final int getId()
The identifier of Image Metadata signature. See ImageMetadataSignatures class that contains standard Signature with predefined Id value.
Returns: int
setId(int value)
public final void setId(int value)
The identifier of Image Metadata signature. See ImageMetadataSignatures class that contains standard Signature with predefined Id value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getSize()
public final int getSize()
Read-only value to get size of Metadata value
Returns: int
setSize(int value)
public final void setSize(int value)
Read-only value to get size of Metadata value
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getDescription()
public final String getDescription()
Read-only value to get description for standard Image Metadata signature
Returns: java.lang.String
equals(Object signature)
public boolean equals(Object signature)
Overwrites Equals method to compare signature properties
Parameters:
Parameter | Type | Description |
---|---|---|
signature | java.lang.Object | Signature object to compare with. |
Returns: boolean - Returns true if passed signature object has same type and all its properties are equal to this instance properties.
hashCode()
public int hashCode()
Overrides GetHashCode method
Returns: int - Signature hash code
deepClone()
public Object deepClone()
Clone Metadata Signature instance.
Returns: java.lang.Object - Returns cloned Metadata Signature instance
deepClone(Object value)
public MetadataSignature deepClone(Object value)
Clone Image Metadata Signature instance with given value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object | Value for new cloned object. |
Returns: MetadataSignature - Returns cloned Metadata Signature instance.
toBoolean()
public boolean toBoolean()
Converts to boolean.
Returns: boolean - Returns the Metadata signature value as boolean.
Throws an exception if the Metadata value could not be converted.
toInteger()
public int toInteger()
Converts to integer.
Returns: int - 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: long - 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: float - 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 SignatureSettings properties SignatureSettings.DefaultCulture
toSingle(Locale provider)
public final float toSingle(Locale provider)
Converts to float.
Parameters:
Parameter | Type | Description |
---|---|---|
provider | java.util.Locale | Format data provider to use with data conversion operations. |
Throws an exception if the Metadata value could not be converted |
Returns: float - Returns the Metadata Signature value as float.
toDouble()
public double toDouble()
Converts to Double.
Returns: double - Returns the Image 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 SignatureSettings properties SignatureSettings.DefaultCulture
toDouble(Locale provider)
public double toDouble(Locale provider)
Converts to Double.
Parameters:
Parameter | Type | Description |
---|---|---|
provider | java.util.Locale | Format data provider to use with data conversion operations. |
Throws an exception if the Metadata value could not be converted |
Returns: double - Returns the Metadata Signature value as Double.
toDecimal()
public final BigDecimal toDecimal()
Converts to Decimal.
Returns: java.math.BigDecimal - 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 SignatureSettings properties SignatureSettings.DefaultCulture
toDecimal(Locale provider)
public final BigDecimal toDecimal(Locale provider)
Converts to Decimal.
Parameters:
Parameter | Type | Description |
---|---|---|
provider | java.util.Locale | Format data provider to use with data conversion operations. |
Throws an exception if the Metadata value could not be converted |
Returns: java.math.BigDecimal - Returns the Metadata Signature value as Decimal.
toDateTime()
public Date toDateTime()
Converts to DateTime.
Returns: java.util.Date - 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 SignatureSettings properties SignatureSettings.DefaultCulture
toDateTime(Locale provider)
public Date toDateTime(Locale provider)
Converts to DateTime.
Parameters:
Parameter | Type | Description |
---|---|---|
provider | java.util.Locale | Format data provider to use with data conversion operations. |
Throws an exception if the Metadata value could not be converted |
Returns: java.util.Date - Returns the Metadata Signature value as DateTime.
toString()
public String toString()
Converts to String with override ToString() method
Returns: java.lang.String - Returns the Metadata Signature value as String.
toString(String format)
public String toString(String format)
Converts to String with specified format
Parameters:
Parameter | Type | Description |
---|---|---|
format | java.lang.String | Data format string. |
Converts a boolean property into “True” or “False”. Default culture property info will be used from SignatureSettings properties SignatureSettings.DefaultCulture |
Returns: java.lang.String - Returns the Metadata Signature value as String.
toString(String format, Locale provider)
public String toString(String format, Locale provider)
Converts to String with specified format
Parameters:
Parameter | Type | Description |
---|---|---|
format | java.lang.String | Data format string. |
provider | java.util.Locale | Format data provider to use with data conversion operations. |
Converts a boolean property into “True” or “False”. |
Returns: java.lang.String - Returns the Metadata Signature value as String.
setAsBool(Object value)
public final boolean setAsBool(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsByte(Object value)
public final boolean setAsByte(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsShrt(Object value)
public final boolean setAsShrt(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsWord(Object value)
public final boolean setAsWord(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsSInt(Object value)
public final boolean setAsSInt(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsUInt(Object value)
public final boolean setAsUInt(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsSLng(Object value)
public final boolean setAsSLng(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsULng(Object value)
public final boolean setAsULng(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsSngl(Object value)
public final boolean setAsSngl(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsDbls(Object value)
public final boolean setAsDbls(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsDcml(Object value)
public final boolean setAsDcml(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsDate(Object value)
public final boolean setAsDate(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsStrn(Object value)
public final boolean setAsStrn(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setAsObjc(Object value)
public final boolean setAsObjc(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
Returns: boolean
setString(Object value)
public final void setString(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |