public abstract class NamespacePrefixMapper extends 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 |
---|---|
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.
|
abstract String |
getPreferredPrefix(String namespaceUri,
String suggestion,
boolean requirePrefix) |
public String[] getContextualNamespaceDecls()
public String[] getPreDeclaredNamespaceUris()
public String[] getPreDeclaredNamespaceUris2()
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference