XmpNamespaceRegistry
Overview
XmpNamespaceRegistry is a class in Aspose.Pdf FOSS for Java.
Registry of XMP namespace prefix-to-URI mappings (ISO 16684-1).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
allMappings | Map<String, String> | Read | Returns an unmodifiable view of all prefix-to-URI mappings. |
Methods
| Signature | Description |
|---|---|
XmpNamespaceRegistry() | Creates a registry pre-populated with standard XMP namespaces. |
register(prefix: String, namespaceUri: String) | Registers a namespace prefix-URI mapping. |
getUri(prefix: String) → String | Returns the URI for the given prefix, or null if unknown. |
getPrefix(uri: String) → String | Returns the prefix for the given URI, or null if unknown. |
hasPrefix(prefix: String) → boolean | Returns 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. |