public class XmpValue extends Object
Represents XMP value
Constructor and Description |
---|
XmpValue(Date value)
Constructor for date time value.
|
XmpValue(double value)
Constructor for floating point Value.
|
XmpValue(int value)
Consructor for integer value.
|
XmpValue(Object value) |
XmpValue(String value)
Constructor for string value.
|
XmpValue(XmpValue[] array)
Constructor for array value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isArray()
Returns true is XmpValue is array.
|
boolean |
isDateTime()
Returns true if value is DateTime.
|
boolean |
isDouble()
Returns true if value is floating point value.
|
boolean |
isField()
Returns true if XmpValue is field.
|
boolean |
isInteger()
Returns true if value is integer.
|
boolean |
isNamedValue()
Returns true if XmpValue is named value.
|
boolean |
isNamedValues()
Returns true is XmpValue represents named values.
|
boolean |
isRaw()
Value is unsupported/unknown and raw XML code is provided.
|
boolean |
isString()
Returns true if value is string.
|
boolean |
isStructure()
Returns true is XmpValue represents structure.
|
static XmpValue |
to_XmpValue(int value)
Converts integer into XmpValue.
|
static XmpValue |
to_XmpValue(String value)
Converts string to XmpValue.
|
XmpValue[] |
toArray()
Returns array.
|
static XmpValue[] |
toArray(XmpValue value)
Converts XmpValue into array.
|
Date |
toDateTime()
Converts to date time.
|
Map<String,XmpValue> |
toDictionary()
Returns dictionary which contains named values.
|
double |
toDouble()
Converts to double.
|
XmpField |
toField()
Returns XMP value as XMP field.
|
static Map.Entry<String,XmpValue>[] |
toGeneric(XmpValue value)
Get Map.Entry array
|
int |
toInteger()
Converts to integer.
|
static Map.Entry<String,XmpValue> |
toMapEntry(XmpValue value)
Converts XmpValue to named value.
|
HashMap<String,XmpValue> |
toNamedValue()
Returns XMP value as named value.
|
HashMap<String,XmpValue> |
toNamedValues()
Returns XMP value as named value collection.
|
String |
toString()
Returns string representation of XmpValue.
|
String |
toString(com.aspose.ms.System.IFormatProvider formatProvider)
Returns string representation.
|
static String |
toString(XmpValue value)
Converts XmpValue into string.
|
String |
toStringValue()
Converts to string.
|
XmpField[] |
toStructure()
Returns XMP value as structure (set of fields).
|
public XmpValue(String value)
Constructor for string value.
value
- String value.public XmpValue(int value)
Consructor for integer value.
value
- Integer value.public XmpValue(double value)
Constructor for floating point Value.
value
- Double value.public XmpValue(Date value)
Constructor for date time value.
value
- Date time value.public XmpValue(XmpValue[] array)
Constructor for array value.
array
- Array value.public XmpValue(Object value)
public boolean isString()
Returns true if value is string.
public boolean isInteger()
Returns true if value is integer.
public boolean isDouble()
Returns true if value is floating point value.
public boolean isDateTime()
Returns true if value is DateTime.
public boolean isField()
Returns true if XmpValue is field.
public boolean isNamedValue()
Returns true if XmpValue is named value.
public final boolean isRaw()
Value is unsupported/unknown and raw XML code is provided.
public boolean isNamedValues()
Returns true is XmpValue represents named values.
public boolean isStructure()
Returns true is XmpValue represents structure.
public boolean isArray()
Returns true is XmpValue is array.
public String toStringValue()
Converts to string.
public int toInteger()
Converts to integer.
public double toDouble()
Converts to double.
public Date toDateTime()
Converts to date time.
public XmpValue[] toArray()
Returns array.
public XmpField[] toStructure()
Returns XMP value as structure (set of fields).
public XmpField toField()
Returns XMP value as XMP field.
public HashMap<String,XmpValue> toNamedValue()
Returns XMP value as named value.
public HashMap<String,XmpValue> toNamedValues()
Returns XMP value as named value collection.
public final Map<String,XmpValue> toDictionary()
Returns dictionary which contains named values.
public String toString()
Returns string representation of XmpValue.
public String toString(com.aspose.ms.System.IFormatProvider formatProvider)
Returns string representation.
formatProvider
- IFormatProvider instance (Format provider)public static XmpValue to_XmpValue(String value)
Converts string to XmpValue.
value
- String value (Value to convert)public static XmpValue to_XmpValue(int value)
Converts integer into XmpValue.
value
- int value (Value to convert)public static XmpValue[] toArray(XmpValue value)
Converts XmpValue into array.
value
- XmpValue instance (Value to convert)public static String toString(XmpValue value)
Converts XmpValue into string.
value
- XmpValue instance (Value to convert)public static Map.Entry<String,XmpValue> toMapEntry(XmpValue value)
Converts XmpValue to named value.
value
- XmpValue instance (Value to convert)Copyright © 2022 Aspose. All Rights Reserved.