XmpValue

Inheritance: java.lang.Object

public class XmpValue

Represents XMP value

Constructors

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
valuejava.lang.StringString value.

XmpValue(int value)

public XmpValue(int value)

Consructor for integer value.

Parameters:

ParameterTypeDescription
valueintInteger value.

XmpValue(double value)

public XmpValue(double value)

Constructor for floating point Value.

Parameters:

ParameterTypeDescription
valuedoubleDouble value.

XmpValue(Date value)

public XmpValue(Date value)

Constructor for date time value.

Parameters:

ParameterTypeDescription
valuejava.util.DateDate time value.

XmpValue(XmpValue[] array)

public XmpValue(XmpValue[] array)

Constructor for array value.

Parameters:

ParameterTypeDescription
arrayXmpValue[]Array value.

XmpValue(Object value)

public XmpValue(Object value)

Parameters:

ParameterTypeDescription
valuejava.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:

ParameterTypeDescription
formatProvidercom.aspose.ms.System.IFormatProviderIFormatProvider 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:

ParameterTypeDescription
valuejava.lang.StringString value (Value to convert)

Returns: XmpValue - XmpValue instance

to_XmpValue(int value)

public static XmpValue to_XmpValue(int value)

Converts integer into XmpValue.

Parameters:

ParameterTypeDescription
valueintint value (Value to convert)

Returns: XmpValue - XmpValue instance

to_XmpValue(double value)

public static XmpValue to_XmpValue(double value)

Converts double into XmpValue.

Parameters:

ParameterTypeDescription
valuedoubledouble value (Value to convert)

Returns: XmpValue - XmpValue instance

to_XmpValue(Date value)

public static XmpValue to_XmpValue(Date value)

Converts DateTime into XmpValue.

Parameters:

ParameterTypeDescription
valuejava.util.DateDate instance (Value to convert)

Returns: XmpValue - XmpValue instance

to_XmpValue(Object[] value)

public static XmpValue to_XmpValue(Object[] value)

Converts array to XmpValue.

Parameters:

ParameterTypeDescription
valuejava.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:

ParameterTypeDescription
valueXmpValueXmpValue 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:

ParameterTypeDescription
valueXmpValueXmpValue 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:

ParameterTypeDescription
valueXmpValueXmpValue 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:

ParameterTypeDescription
valueXmpValueXmpValue 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:

ParameterTypeDescription
valueXmpValueXmpValue instance (Value to convert)

Returns: com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.String,com.aspose.pdf.XmpValue>[] - Internal Array