org.apache.wink.common.model
Class JAXBNamespacePrefixMapper
java.lang.Object
org.apache.wink.common.model.JAXBNamespacePrefixMapper
public class JAXBNamespacePrefixMapper
- extends java.lang.Object
Constructor Summary |
JAXBNamespacePrefixMapper()
|
JAXBNamespacePrefixMapper(java.lang.String defaultNameSpace)
|
JAXBNamespacePrefixMapper(java.lang.String defaultNameSpace,
java.util.Map<java.lang.String,java.lang.String> additionalNamespaces)
construct a namespace-to-prefix mapper with the specified default
namespace, and with the given additional namespace-to-prefix mappings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXBNamespacePrefixMapper
public JAXBNamespacePrefixMapper()
JAXBNamespacePrefixMapper
public JAXBNamespacePrefixMapper(java.lang.String defaultNameSpace)
JAXBNamespacePrefixMapper
public JAXBNamespacePrefixMapper(java.lang.String defaultNameSpace,
java.util.Map<java.lang.String,java.lang.String> additionalNamespaces)
- construct a namespace-to-prefix mapper with the specified default
namespace, and with the given additional namespace-to-prefix mappings
- Parameters:
defaultNameSpace
- the default namespace which has no prefixadditionalNamespaces
- additional mappings
getDefaultNameSpace
public java.lang.String getDefaultNameSpace()
setDefaultNameSpace
public void setDefaultNameSpace(java.lang.String defaultNameSpace)
omitNamespace
public void omitNamespace(java.lang.String namespaceUri)
isNamespaceOmitted
public boolean isNamespaceOmitted(java.lang.String namespaceUri)
getPreferredPrefix
public java.lang.String getPreferredPrefix(java.lang.String namespaceUri,
java.lang.String suggestion,
boolean requirePrefix)
Copyright © 2009 The Apache Software Foundation. All Rights Reserved.