XmpInteger Class
An XMP metadata integer value.
Declaration
public class XmpInteger extends XmpValue
Inherited Members
Inheritance
Constructors
XmpInteger() Constructor
Initializes a new instance of the XmpInteger class.
Declaration
public XmpInteger()
XmpInteger(int value) Constructor
Initializes a new instance of the XmpInteger class with the specified value.
Declaration
public XmpInteger(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | The integer value stored in the object. |
Methods
getHasValue() Method
Gets whether the value is successfully parsed.
Declaration
public boolean getHasValue()
Returns
| Type | Description |
|---|---|
| boolean |
|
getValue() Method
Returns the integer value stored in the XMP value.
Declaration
public @Nullable Integer getValue()
Returns
| Type | Description |
|---|---|
The integer value, or |
toString() Method
Returns the raw string representation of the XMP integer value.
Declaration
public String toString()
Returns
| Type | Description |
|---|---|
| String | The raw string representation of the value. |
tryParse(String value, XmpInteger[] result, Runnable result_sync) Method
Converts the specified string representation of an integer to an XmpInteger object.
Declaration
public static boolean tryParse(String value, XmpInteger[] result, Runnable result_sync)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The string representation of the integer value. |
| result | XmpInteger[] | An array that receives the parsed XmpInteger object. |
| result_sync | Runnable | The callback invoked after the result is updated. |
Returns
| Type | Description |
|---|---|
| boolean |
|