Package org.apache.camel.converter.jaxb
Interface JaxbNamespacePrefixMapper
-
- All Known Implementing Classes:
DefaultNamespacePrefixMapper
public interface JaxbNamespacePrefixMapperA prefix mapper for namespaces to control namespaces during JAXB marshalling.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)Used by JAXB to obtain the preferred prefix.StringgetRegistrationKey()JAXB requires the mapper to be registered as a property on theJAXBContext.voidsetNamespaces(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
-
-