Class XMPUtilsImpl
public sealed class XMPUtilsImpl : XMPConst
- Inheritance
-
XMPUtilsImpl
- Inherited Members
Methods
AppendProperties(XMPMeta, XMPMeta, bool, bool, bool)
public static void AppendProperties(XMPMeta source, XMPMeta destination, bool doAllProperties, bool replaceOldValues, bool deleteEmptyValues)
Parameters
source
XMPMetaThe source XMP object.
destination
XMPMetaThe destination XMP object.
doAllProperties
boolDo internal properties in addition to external properties.
replaceOldValues
boolReplace the values of existing properties.
deleteEmptyValues
boolDelete destination values if source property is empty.
- See Also
CatenateArrayItems(XMPMeta, string, string, string, string, bool)
public static string CatenateArrayItems(XMPMeta xmp, string schemaNS, string arrayName, string separator, string quotes, bool allowCommas)
Parameters
xmp
XMPMetaThe XMP object containing the array to be catenated.
schemaNS
stringThe schema namespace URI for the array. Must not be null or the empty string.
arrayName
stringThe name of the array. May be a general path expression, must not be null or the empty string. Each item in the array must be a simple string value.
separator
stringThe string to be used to separate the items in the catenated string. Defaults to "; ", ASCII semicolon and space (U+003B, U+0020).
quotes
stringThe characters to be used as quotes around array items that contain a separator. Defaults to '"'
allowCommas
boolOption flag to control the catenation.
Returns
- string
Returns the string containing the catenated array items.
- See Also
RemoveProperties(XMPMeta, string, string, bool, bool)
public static void RemoveProperties(XMPMeta xmp, string schemaNS, string propName, bool doAllProperties, bool includeAliases)
Parameters
xmp
XMPMetaThe XMP object containing the properties to be removed.
schemaNS
stringOptional schema namespace URI for the properties to be removed.
propName
stringOptional path expression for the property to be removed.
doAllProperties
boolOption flag to control the deletion: do internal properties in addition to external properties.
includeAliases
boolOption flag to control the deletion: Include aliases in the "named schema" case above.
- See Also
SeparateArrayItems(XMPMeta, string, string, string, PropertyOptions, bool)
public static void SeparateArrayItems(XMPMeta xmp, string schemaNS, string arrayName, string catedStr, PropertyOptions arrayOptions, bool preserveCommas)
Parameters
xmp
XMPMetaThe XMP object containing the array to be updated.
schemaNS
stringThe schema namespace URI for the array. Must not be null or the empty string.
arrayName
stringThe name of the array. May be a general path expression, must not be null or the empty string. Each item in the array must be a simple string value.
catedStr
stringThe string to be separated into the array items.
arrayOptions
PropertyOptionsOption flags to control the separation.
preserveCommas
boolFlag if commas shall be preserved