XmpValue
Overview
XmpValue is a class in Aspose.Pdf FOSS for Java.
Represents a typed XMP metadata value (ISO 16684-1).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
string | boolean | Read | Returns true if this value is a simple string. |
integer | boolean | Read | Returns true if this value can be parsed as an integer. |
double | boolean | Read | Returns true if this value can be parsed as a double. |
dateTime | boolean | Read | Returns true if this value can be parsed as a date/time. |
array | boolean | Read | Returns true if this value is an array. |
namedValues | boolean | Read | Returns true if this value is a structure (named value pairs). |
Methods
| Signature | Description |
|---|---|
XmpValue(value: String) | Creates an XmpValue from a string. |
XmpValue(value: int) | Creates an XmpValue from an integer. |
XmpValue(value: double) | Creates an XmpValue from a double. |
XmpValue(value: Date) | Creates an XmpValue from a date (formatted as ISO 8601 / W3C-DTF). |
XmpValue(array: Object[]) | Creates an XmpValue from an array of objects. |
XmpValue(entries: List<Map.Entry<String, XmpValue>>) | Creates an XmpValue from named value pairs (structure). |
isString() → boolean | Returns true if this value is a simple string. |
isInteger() → boolean | Returns true if this value can be parsed as an integer. |
isDouble() → boolean | Returns true if this value can be parsed as a double. |
isDateTime() → boolean | Returns true if this value can be parsed as a date/time. |
isArray() → boolean | Returns true if this value is an array. |
isNamedValues() → boolean | Returns true if this value is a structure (named value pairs). |
toString() → String | Returns the string representation of this value. |
toStringValue() → String | Alias for toString(). |
toInteger() → int | Returns this value as an integer. |
toDouble() → double | Returns this value as a double. |
toDateTime() → Date | Returns this value as a Date (parses ISO 8601 format). |
toArray() → Object[] | Returns this value as an array. |
toNamedValues() → List<Map.Entry<String, XmpValue>> | Returns this value as named value pairs (structure). |