XmpValue
Inheritance: java.lang.Object
public class XmpValue
Represents XMP value
Constructors
Constructor | Description |
---|---|
XmpValue(String value) | Constructor for string value. |
XmpValue(int value) | Consructor for integer value. |
XmpValue(double value) | Constructor for floating point Value. |
XmpValue(Date value) | Constructor for date time value. |
XmpValue(XmpValue[] array) | Constructor for array value. |
XmpValue(Object value) |
Methods
Method | Description |
---|---|
isString() | Returns true if value is string. |
isInteger() | Returns true if value is integer. |
isDouble() | Returns true if value is floating point value. |
isDateTime() | Returns true if value is DateTime. |
isField() | Returns true if XmpValue is field. |
isNamedValue() | Returns true if XmpValue is named value. |
isRaw() | Value is unsupported/unknown and raw XML code is provided. |
isNamedValues() | Returns true is XmpValue represents named values. |
isStructure() | Returns true is XmpValue represents structure. |
isArray() | Returns true is XmpValue is array. |
toStringValue() | Converts to string. |
toInteger() | Converts to integer. |
toDouble() | Converts to double. |
toDateTime() | Converts to date time. |
toArray() | Returns array. |
toRaw() | Raw XML code for unknown/unsupported values. |
toStructure() | Returns XMP value as structure (set of fields). |
toField() | Returns XMP value as XMP field. |
toNamedValue() | Returns XMP value as named value. |
toNamedValueInternal() | For Internal usage only |
toNamedValues() | Returns XMP value as named value collection. |
toNamedValuesInternal() | |
toDictionary() | Returns dictionary which contains named values. |
toString() | Returns string representation of XmpValue. |
toString(System.IFormatProvider formatProvider) | Returns string representation. |
to_XmpValue(String value) | Converts string to XmpValue. |
to_XmpValue(int value) | Converts integer into XmpValue. |
to_XmpValue(double value) | Converts double into XmpValue. |
to_XmpValue(Date value) | Converts DateTime into XmpValue. |
to_XmpValue(Object[] value) | Converts array to XmpValue. |
to_Array(XmpValue value) | Converts XmpValue to array. |
to_(XmpValue value) | Converts XmpValue into array. |
to_String(XmpValue value) | Converts XmpValue into string. |
to_KeyValuePair(XmpValue value) | Converts XmpValue to named value. |
to_Generic(XmpValue value) | Get KeyValuePair array |
XmpValue(String value)
public XmpValue(String value)
Constructor for string value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | String value. |
XmpValue(int value)
public XmpValue(int value)
Consructor for integer value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | Integer value. |
XmpValue(double value)
public XmpValue(double value)
Constructor for floating point Value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | Double value. |
XmpValue(Date value)
public XmpValue(Date value)
Constructor for date time value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.Date | Date time value. |
XmpValue(XmpValue[] array)
public XmpValue(XmpValue[] array)
Constructor for array value.
Parameters:
Parameter | Type | Description |
---|---|---|
array | XmpValue[] | Array value. |
XmpValue(Object value)
public XmpValue(Object value)
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
isString()
public boolean isString()
Returns true if value is string.
Returns: boolean - boolean value
isInteger()
public boolean isInteger()
Returns true if value is integer.
Returns: boolean - boolean value
isDouble()
public boolean isDouble()
Returns true if value is floating point value.
Returns: boolean - boolean value
isDateTime()
public boolean isDateTime()
Returns true if value is DateTime.
Returns: boolean - boolean value
isField()
public boolean isField()
Returns true if XmpValue is field.
Returns: boolean - boolean value
isNamedValue()
public boolean isNamedValue()
Returns true if XmpValue is named value.
Returns: boolean - boolean value
isRaw()
public final boolean isRaw()
Value is unsupported/unknown and raw XML code is provided.
Returns: boolean - True if value returned as raw data.
isNamedValues()
public boolean isNamedValues()
Returns true is XmpValue represents named values.
Returns: boolean - boolean value
isStructure()
public boolean isStructure()
Returns true is XmpValue represents structure.
Returns: boolean - boolean value
isArray()
public boolean isArray()
Returns true is XmpValue is array.
Returns: boolean - boolean value
toStringValue()
public String toStringValue()
Converts to string.
Returns: java.lang.String - String value
toInteger()
public int toInteger()
Converts to integer.
Returns: int - int value
toDouble()
public double toDouble()
Converts to double.
Returns: double - double value
toDateTime()
public Date toDateTime()
Converts to date time.
Returns: Date - Date instance
toArray()
public XmpValue[] toArray()
Returns array.
Returns: com.aspose.pdf.XmpValue[] - XmpValue array
toRaw()
public final System.Xml.XmlNode toRaw()
Raw XML code for unknown/unsupported values.
Returns: com.aspose.ms.System.Xml.XmlNode - XML node for this value.
toStructure()
public XmpField[] toStructure()
Returns XMP value as structure (set of fields).
Returns: com.aspose.pdf.XmpField[] - XmpField array
toField()
public XmpField toField()
Returns XMP value as XMP field.
Returns: XmpField - XmpField instance
toNamedValue()
public HashMap<String,XmpValue> toNamedValue()
Returns XMP value as named value.
Returns: java.util.HashMap<java.lang.String,com.aspose.pdf.XmpValue> - (Named value) HashMap instance with String Key and XmpValue value
toNamedValueInternal()
public System.Collections.Generic.KeyValuePair<String,XmpValue> toNamedValueInternal()
For Internal usage only
Returns: KeyValuePair - For Internal usage only
toNamedValues()
public HashMap<String,XmpValue> toNamedValues()
Returns XMP value as named value collection.
Returns: java.util.HashMap<java.lang.String,com.aspose.pdf.XmpValue> - (Named collection value) HashMap instance with String Key and XmpValue value
toNamedValuesInternal()
public System.Collections.Generic.KeyValuePair<String,XmpValue>[] toNamedValuesInternal()
Returns: com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.String,com.aspose.pdf.XmpValue>[]
toDictionary()
public final System.Collections.Generic.Dictionary<String,XmpValue> toDictionary()
Returns dictionary which contains named values.
Returns: Dictionary - Dictionary
toString()
public String toString()
Returns string representation of XmpValue.
Returns: java.lang.String - String representation
toString(System.IFormatProvider formatProvider)
public String toString(System.IFormatProvider formatProvider)
Returns string representation.
Parameters:
Parameter | Type | Description |
---|---|---|
formatProvider | com.aspose.ms.System.IFormatProvider | IFormatProvider instance (Format provider) |
Returns: java.lang.String - String representation
to_XmpValue(String value)
public static XmpValue to_XmpValue(String value)
Converts string to XmpValue.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | String value (Value to convert) |
Returns: XmpValue - XmpValue instance
to_XmpValue(int value)
public static XmpValue to_XmpValue(int value)
Converts integer into XmpValue.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | int value (Value to convert) |
Returns: XmpValue - XmpValue instance
to_XmpValue(double value)
public static XmpValue to_XmpValue(double value)
Converts double into XmpValue.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double value (Value to convert) |
Returns: XmpValue - XmpValue instance
to_XmpValue(Date value)
public static XmpValue to_XmpValue(Date value)
Converts DateTime into XmpValue.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.Date | Date instance (Value to convert) |
Returns: XmpValue - XmpValue instance
to_XmpValue(Object[] value)
public static XmpValue to_XmpValue(Object[] value)
Converts array to XmpValue.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object[] | Array of Objects (Value to convert) |
Returns: XmpValue - XmpValue instance
to_Array(XmpValue value)
public static XmpValue[] to_Array(XmpValue value)
Converts XmpValue to array.
Parameters:
Parameter | Type | Description |
---|---|---|
value | XmpValue | XmpValue instance (Value to convert) |
Returns: com.aspose.pdf.XmpValue[] - XmpValue array
to_(XmpValue value)
public static XmpValue[] to_(XmpValue value)
Converts XmpValue into array.
Parameters:
Parameter | Type | Description |
---|---|---|
value | XmpValue | XmpValue instance (Value to convert) |
Returns: com.aspose.pdf.XmpValue[] - XmpValue array
to_String(XmpValue value)
public static String to_String(XmpValue value)
Converts XmpValue into string.
Parameters:
Parameter | Type | Description |
---|---|---|
value | XmpValue | XmpValue instance (Value to convert) |
Returns: java.lang.String - String value
to_KeyValuePair(XmpValue value)
public static System.Collections.Generic.KeyValuePair<String,XmpValue> to_KeyValuePair(XmpValue value)
Converts XmpValue to named value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | XmpValue | XmpValue instance (Value to convert) |
Returns: KeyValuePair - Internal Array
to_Generic(XmpValue value)
public static System.Collections.Generic.KeyValuePair<String,XmpValue>[] to_Generic(XmpValue value)
Get KeyValuePair array
Parameters:
Parameter | Type | Description |
---|---|---|
value | XmpValue | XmpValue instance (Value to convert) |
Returns: com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.String,com.aspose.pdf.XmpValue>[] - Internal Array