XmpNamespaceRegistry

XmpNamespaceRegistry

Overview

XmpNamespaceRegistry is a class in Aspose.Pdf FOSS for Java.

Registry of XMP namespace prefix-to-URI mappings (ISO 16684-1).

Properties

NameTypeAccessDescription
allMappingsMap<String, String>ReadReturns an unmodifiable view of all prefix-to-URI mappings.

Methods

SignatureDescription
XmpNamespaceRegistry()Creates a registry pre-populated with standard XMP namespaces.
register(prefix: String, namespaceUri: String)Registers a namespace prefix-URI mapping.
getUri(prefix: String)StringReturns the URI for the given prefix, or null if unknown.
getPrefix(uri: String)StringReturns the prefix for the given URI, or null if unknown.
hasPrefix(prefix: String)booleanReturns true if the prefix is registered.
getAllMappings()Map<String, String>Returns an unmodifiable view of all prefix-to-URI mappings.
getUsedNamespaces(properties: Map<String, XmpProperty>)Map<String, String>Returns the namespace mappings that are actually used by the given properties.

See Also