Top Description Fields Constructors Methods
org.eclipse.persistence.internal.oxm.record.namespaces

public Class MapNamespacePrefixMapper

extends NamespacePrefixMapper
Class Inheritance
Imports
java.util.Map, org.eclipse.persistence.oxm.NamespacePrefixMapper

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

Field Summary

Modifier and TypeField and Description
private Map<String, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]
getPreDeclaredNamespaceUris()

Overrides org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreDeclaredNamespaceUris.

Returns a list of namespace uris that should be declared at the root of the xml document being marshalled.
public String
getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)

Implements abstract org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreferredPrefix.

Inherited from org.eclipse.persistence.oxm.NamespacePrefixMapper:
supportsMediaType

Field Detail

urisToPrefixesback to summary
private Map<String, String> urisToPrefixes

Constructor Detail

MapNamespacePrefixMapperback to summary
public MapNamespacePrefixMapper(Map<String, String> urisToPrefixes)

Method Detail

getPreDeclaredNamespaceUrisback to summary
public String[] getPreDeclaredNamespaceUris()

Overrides org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreDeclaredNamespaceUris.

Doc from org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreDeclaredNamespaceUris.

Returns a list of namespace uris that should be declared at the root of the xml document being marshalled.

Annotations
@Override
getPreferredPrefixback to summary
public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)

Implements abstract org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreferredPrefix.

Annotations
@Override