Package org.apache.camel.converter.jaxb
Interface JaxbNamespacePrefixMapper
-
- All Known Implementing Classes:
DefaultNamespacePrefixMapper
public interface JaxbNamespacePrefixMapper
A prefix mapper for namespaces to control namespaces during JAXB marshalling.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)
Used by JAXB to obtain the preferred prefix.String
getRegistrationKey()
JAXB requires the mapper to be registered as a property on theJAXBContext
.void
setNamespaces(Map<String,String> namespaces)
Sets the namespace prefix mapping.
-
-
-
Method Detail
-
getRegistrationKey
String getRegistrationKey()
JAXB requires the mapper to be registered as a property on theJAXBContext
.
-
setNamespaces
void setNamespaces(Map<String,String> namespaces)
Sets the namespace prefix mapping. The key is the namespace, the value is the prefix to use.- Parameters:
namespaces
- namespace mappings
-
-