Module org.eclipse.persistence.core
Class MapNamespacePrefixMapper
java.lang.Object
org.eclipse.persistence.internal.oxm.NamespacePrefixMapper
org.eclipse.persistence.oxm.NamespacePrefixMapper
org.eclipse.persistence.internal.oxm.record.namespaces.MapNamespacePrefixMapper
Implementation of NamespacePrefixMapper. Allows user to set a
Map<String, String>
or uris to prefixes for to be used during marshal/unmarshal.- Since:
- 2.3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns a list of namespace uris that should be declared at the root of the xml document being marshalled.getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix) Methods inherited from class org.eclipse.persistence.oxm.NamespacePrefixMapper
supportsMediaTypeMethods inherited from class org.eclipse.persistence.internal.oxm.NamespacePrefixMapper
getContextualNamespaceDecls, getPreDeclaredNamespaceUris2
-
Constructor Details
-
MapNamespacePrefixMapper
-
-
Method Details
-
getPreferredPrefix
- Specified by:
getPreferredPrefixin classNamespacePrefixMapper
-
getPreDeclaredNamespaceUris
Description copied from class:NamespacePrefixMapperReturns a list of namespace uris that should be declared at the root of the xml document being marshalled.- Overrides:
getPreDeclaredNamespaceUrisin classNamespacePrefixMapper
-