Skip to main content

XmpInteger Class

An XMP metadata integer value.

Declaration

public class XmpInteger 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
XmpInteger

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

true if the raw XMP value contains a valid integer; otherwise, false.

getValue() Method

Returns the integer value stored in the XMP value.

Declaration

public @Nullable Integer getValue()

Returns

Type Description

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

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

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