Skip to main content

XmpBool Class

An XMP metadata node with a boolean value.

Declaration

public class XmpBool extends XmpValue

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
XmpValue
XmpBool

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 XmpBool object.

Methods

getHasValue() Method

Gets whether the value is successfully parsed.

Declaration

public boolean getHasValue()

Returns

Type Description
boolean

true if the raw XMP value is a valid Boolean value; otherwise, false.

getValue() Method

Returns the Boolean value stored in the XMP value.

Declaration

public @Nullable Boolean getValue()

Returns

Type Description

The Boolean value, or null if the value cannot be parsed.

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 XmpBool object.

result_sync Runnable

The callback invoked after the result is updated.

Returns

Type Description
boolean

true if the string is successfully parsed; otherwise, false.