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