Module org.eclipse.persistence.core
Class NamespacePrefixMapperWrapper
java.lang.Object
org.eclipse.persistence.internal.oxm.NamespacePrefixMapper
org.eclipse.persistence.oxm.NamespacePrefixMapper
org.eclipse.persistence.internal.oxm.record.namespaces.NamespacePrefixMapperWrapper
INTERNAL:
Purpose:This class provides an implementation of NamespacePrefixMapper that wraps an implementation of the equivalent NamespacePrefixMapper from the JAXB ReferenceImplementation This allows for backwards compatibility with the JAXB RI.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns a string array of prefixes and namespace uris that are already available in this context.String[]
Returns a list of namespace uris that should be declared at the root of the xml document being marshalled.String[]
Returns a string array of prefixes and namespace uris to be declared at the root of the document.getPreferredPrefix
(String namespaceUri, String suggestion, boolean requirePrefix) Methods inherited from class org.eclipse.persistence.oxm.NamespacePrefixMapper
supportsMediaType
-
Constructor Details
-
NamespacePrefixMapperWrapper
-
-
Method Details
-
getPreferredPrefix
- Specified by:
getPreferredPrefix
in classNamespacePrefixMapper
-
getContextualNamespaceDecls
Description copied from class:NamespacePrefixMapper
Returns a string array of prefixes and namespace uris that are already available in this context. Only required when marshalling to an output stream or a writer, since it's not possible to determine which namespaces are already in scope.- Overrides:
getContextualNamespaceDecls
in classNamespacePrefixMapper
-
getPreDeclaredNamespaceUris
Description copied from class:NamespacePrefixMapper
Returns a list of namespace uris that should be declared at the root of the xml document being marshalled.- Overrides:
getPreDeclaredNamespaceUris
in classNamespacePrefixMapper
-
getPreDeclaredNamespaceUris2
Description copied from class:NamespacePrefixMapper
Returns a string array of prefixes and namespace uris to be declared at the root of the document. This eliminates the need of implementing both getPredeclaredNamespaceUris and getPreferredPrefix since the prefix and uri can be associated here.- Overrides:
getPreDeclaredNamespaceUris2
in classNamespacePrefixMapper
-
getPrefixMapper
-