Class NamespacePrefixMapperWrapper
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.NamespacePrefixMapper
-
- org.eclipse.persistence.oxm.NamespacePrefixMapper
-
- org.eclipse.persistence.internal.oxm.record.namespaces.NamespacePrefixMapperWrapper
-
public class NamespacePrefixMapperWrapper extends NamespacePrefixMapper
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
Constructors Constructor Description NamespacePrefixMapperWrapper(java.lang.Object prefixMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getContextualNamespaceDecls()
Returns a string array of prefixes and namespace uris that are already available in this context.java.lang.String[]
getPreDeclaredNamespaceUris()
Returns a list of namespace uris that should be declared at the root of the xml document being marshalled.java.lang.String[]
getPreDeclaredNamespaceUris2()
Returns a string array of prefixes and namespace uris to be declared at the root of the document.java.lang.String
getPreferredPrefix(java.lang.String namespaceUri, java.lang.String suggestion, boolean requirePrefix)
java.lang.Object
getPrefixMapper()
-
Methods inherited from class org.eclipse.persistence.oxm.NamespacePrefixMapper
supportsMediaType
-
-
-
-
Method Detail
-
getPreferredPrefix
public java.lang.String getPreferredPrefix(java.lang.String namespaceUri, java.lang.String suggestion, boolean requirePrefix)
- Specified by:
getPreferredPrefix
in classNamespacePrefixMapper
-
getContextualNamespaceDecls
public java.lang.String[] 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
- Returns:
-
getPreDeclaredNamespaceUris
public java.lang.String[] 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
public java.lang.String[] 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
- Returns:
-
getPrefixMapper
public java.lang.Object getPrefixMapper()
-
-