Class DefaultNamespacePrefixMapper
- java.lang.Object
-
- com.sun.xml.bind.marshaller.NamespacePrefixMapper
-
- org.apache.camel.converter.jaxb.mapper.DefaultNamespacePrefixMapper
-
- All Implemented Interfaces:
JaxbNamespacePrefixMapper
public class DefaultNamespacePrefixMapper extends com.sun.xml.bind.marshaller.NamespacePrefixMapper implements JaxbNamespacePrefixMapper
A namespace prefix mapper which overrides SUN JAXB-RI to allow Camel to control the prefixes
-
-
Constructor Summary
Constructors Constructor Description DefaultNamespacePrefixMapper()
-
Method Summary
All Methods Instance Methods Concrete 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
-
setNamespaces
public void setNamespaces(Map<String,String> namespaces)
Description copied from interface:JaxbNamespacePrefixMapperSets the namespace prefix mapping. The key is the namespace, the value is the prefix to use.- Specified by:
setNamespacesin interfaceJaxbNamespacePrefixMapper- Parameters:
namespaces- namespace mappings
-
getRegistrationKey
public String getRegistrationKey()
Description copied from interface:JaxbNamespacePrefixMapperJAXB requires the mapper to be registered as a property on theJAXBContext.- Specified by:
getRegistrationKeyin interfaceJaxbNamespacePrefixMapper
-
getPreferredPrefix
public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)
Description copied from interface:JaxbNamespacePrefixMapperUsed by JAXB to obtain the preferred prefix.- Specified by:
getPreferredPrefixin interfaceJaxbNamespacePrefixMapper- Specified by:
getPreferredPrefixin classcom.sun.xml.bind.marshaller.NamespacePrefixMapper
-
-