XmpProperty

Overview

XmpProperty is a class in Aspose.PDF FOSS for Java.

Internal representation of an XMP property value.

This class provides 14 methods for working with XmpProperty objects in Java programs. Available methods include: XmpProperty, addArrayItem, addLangAltEntry, getArrayItems, getKey, getLangAltEntries, getStructFields, getType, getValue, setArrayItems, setLangAltEntries, setStructFields, and 2 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: arrayItems, key, langAltEntries, structFields, type, value.

Properties

NameTypeAccessDescription
keyStringReadReturns the property key.
valueStringReadReturns the simple string value (or x-default for lang-alt, first item for arrays).
typeValueTypeReadReturns the value type.
arrayItemsList<String>ReadReturns array items (for SEQ/BAG types).
langAltEntriesList<LangAltEntry>ReadReturns language alternative entries (for LANG_ALT type).
structFieldsList<XmpProperty>ReadReturns structure fields (for STRUCT type).

Methods

SignatureDescription
XmpProperty(key: String, value: String, type: ValueType)Creates a simple text property.
getKey()StringReturns the property key.
getValue()StringReturns the simple string value (or x-default for lang-alt, first item for arrays).
setValue(value: String)Sets the simple string value.
getType()ValueTypeReturns the value type.
setType(type: ValueType)Sets the value type.
getArrayItems()List<String>Returns array items (for SEQ/BAG types).
setArrayItems(items: List<String>)Sets array items.
getLangAltEntries()List<LangAltEntry>Returns language alternative entries (for LANG_ALT type).
setLangAltEntries(entries: List<LangAltEntry>)Sets language alternative entries.
getStructFields()List<XmpProperty>Returns structure fields (for STRUCT type).
setStructFields(fields: List<XmpProperty>)Sets structure fields.
addArrayItem(item: String)Adds an array item.
addLangAltEntry(lang: String, text: String)Adds a language alternative entry.

See Also

 English