XmpNamespaceRegistry
Vue de l’ensemble
‘XmpNamespaceRegistry’ est une classe dans Aspose.PDF FOSS pour Java.
Registre des cartes de prédéfice à l’URI (ISO 16684-1) du nomespace XMP.
Cette classe fournit 7 méthodes pour travailler avec XmpNamespaceObjets de Registre dans les programmes Java. Les méthodologies disponibles comprennent: ‘Xmpnam spaceRegistry’, ‘getAllMappings’, `getPrefix’, ‘getUri’, ‘getsUsedNampaces’, ’hasPre Fix’, «registre’. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java, Propriétés : ‘allMapings’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
allMappings | Map<String, String> | Read | Returns an unmodifiable view of all prefix-to-URI mappings. |
méthodes
| 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. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise