XmpField

Inheritance: java.lang.Object

public class XmpField

Represents XMP field.

Methods

MethodDescription
getEmpty()Gets an Empty xmp field.
getLang()This field represents xml:lang qualifier.
dispose()
getPrefix()Gets the prefix.
setPrefix_Rename_Namesake(String value)For internal usage only
getNamespaceUri()Gets the namespace URI.
setNamespaceUri_Rename_Namesake(String value)For internal usage only
getLocalName()Gets or sets the name of the local.
setLocalName_Rename_Namesake(String value)For internal usage only
getName()Gets the name.
getValue()Gets the value.
getFieldType()Gets the type of the field.
isEmpty()Gets a value indicating whether this instance is empty.
equals(Object obj)Indicates whether this instance and a specified object are equal.
hashCode()Returns a hash code for this instance.
op_Equality(XmpField field1, XmpField field2)Implements the operator ==.
op_Inequality(XmpField field1, XmpField field2)Implements the operator !=.
toStructure()Gets value as a structure.
toArray()Gets value as an array.

getEmpty()

public static XmpField getEmpty()

Gets an Empty xmp field.

Returns: XmpField - XmpField instance

getLang()

public static XmpField getLang()

This field represents xml:lang qualifier.

Returns: XmpField - XmpField instance

dispose()

public static void dispose()

getPrefix()

public String getPrefix()

Gets the prefix.

Returns: java.lang.String - Value: The prefix.

setPrefix_Rename_Namesake(String value)

public void setPrefix_Rename_Namesake(String value)

For internal usage only

Parameters:

ParameterTypeDescription
valuejava.lang.StringFor internal usage only

getNamespaceUri()

public String getNamespaceUri()

Gets the namespace URI.

Returns: java.lang.String - Value: The namespace URI.

setNamespaceUri_Rename_Namesake(String value)

public void setNamespaceUri_Rename_Namesake(String value)

For internal usage only

Parameters:

ParameterTypeDescription
valuejava.lang.StringFor internal usage only

getLocalName()

public String getLocalName()

Gets or sets the name of the local.

Returns: java.lang.String - String: The name of the local.

setLocalName_Rename_Namesake(String value)

public void setLocalName_Rename_Namesake(String value)

For internal usage only

Parameters:

ParameterTypeDescription
valuejava.lang.StringFor internal usage only

getName()

public String getName()

Gets the name.

Returns: java.lang.String - Value: The name.

getValue()

public XmpValue getValue()

Gets the value.

Returns: XmpValue - XmpValue: The value.

getFieldType()

public int getFieldType()

Gets the type of the field.

Returns: int - int: The type of the field.

isEmpty()

public boolean isEmpty()

Gets a value indicating whether this instance is empty.

Returns: boolean - boolean: true if this instance is empty; otherwise, false .

equals(Object obj)

public boolean equals(Object obj)

Indicates whether this instance and a specified object are equal.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectAnother object to compare to.

Returns: boolean - true if obj and this instance are the same type and represent the same value; otherwise, false.

hashCode()

public int hashCode()

Returns a hash code for this instance.

Returns: int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

op_Equality(XmpField field1, XmpField field2)

public static boolean op_Equality(XmpField field1, XmpField field2)

Implements the operator ==.

Parameters:

ParameterTypeDescription
field1XmpFieldThe field1.
field2XmpFieldThe field2.

Returns: boolean - The result of the operator.

op_Inequality(XmpField field1, XmpField field2)

public static boolean op_Inequality(XmpField field1, XmpField field2)

Implements the operator !=.

Parameters:

ParameterTypeDescription
field1XmpFieldThe field1.
field2XmpFieldThe field2.

Returns: boolean - The result of the operator.

toStructure()

public XmpField[] toStructure()

Gets value as a structure.

Returns: com.aspose.pdf.XmpField[] - XmpField array (The structure)

toArray()

public XmpValue[] toArray()

Gets value as an array.

Returns: com.aspose.pdf.XmpValue[] - XmpValue array (The array)