public class NamespacePrefixMapperWrapper extends NamespacePrefixMapper
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 and Description |
|---|
NamespacePrefixMapperWrapper(Object prefixMapper) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getContextualNamespaceDecls()
Returns a string array of prefixes and namespace uris that are already available in
this context.
|
String[] |
getPreDeclaredNamespaceUris()
Returns a list of namespace uris that should be declared at the root of the xml
document being marshalled.
|
String[] |
getPreDeclaredNamespaceUris2()
Returns a string array of prefixes and namespace uris to be declared at the root of
the document.
|
String |
getPreferredPrefix(String namespaceUri,
String suggestion,
boolean requirePrefix) |
Object |
getPrefixMapper() |
supportsMediaTypepublic NamespacePrefixMapperWrapper(Object prefixMapper)
public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)
getPreferredPrefix in class NamespacePrefixMapperpublic String[] getContextualNamespaceDecls()
NamespacePrefixMappergetContextualNamespaceDecls in class NamespacePrefixMapperpublic String[] getPreDeclaredNamespaceUris()
NamespacePrefixMappergetPreDeclaredNamespaceUris in class NamespacePrefixMapperpublic String[] getPreDeclaredNamespaceUris2()
NamespacePrefixMappergetPreDeclaredNamespaceUris2 in class NamespacePrefixMapperpublic Object getPrefixMapper()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference