public abstract class NamespacePrefixMapper
extends java.lang.Object
Purpose:Provides a means to customise the namespace prefixes used while marshalling An implementation of this class can be set on an instance of XMLMarshaller to allow for each instance of XMLMarshaller to use different namespace prefixes.
Constructor and Description |
---|
NamespacePrefixMapper() |
Modifier and Type | Method and 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.
|
abstract java.lang.String |
getPreferredPrefix(java.lang.String namespaceUri,
java.lang.String suggestion,
boolean requirePrefix) |
public java.lang.String[] getContextualNamespaceDecls()
public java.lang.String[] getPreDeclaredNamespaceUris()
public java.lang.String[] getPreDeclaredNamespaceUris2()
public abstract java.lang.String getPreferredPrefix(java.lang.String namespaceUri, java.lang.String suggestion, boolean requirePrefix)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference