org.apache.wink.common.model
Class JAXBNamespacePrefixMapper

java.lang.Object
  extended by 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
 
Method Summary
 java.lang.String getDefaultNameSpace()
           
 java.lang.String getPreferredPrefix(java.lang.String namespaceUri, java.lang.String suggestion, boolean requirePrefix)
           
 boolean isNamespaceOmitted(java.lang.String namespaceUri)
           
 void omitNamespace(java.lang.String namespaceUri)
           
 void setDefaultNameSpace(java.lang.String defaultNameSpace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 prefix
additionalNamespaces - additional mappings
Method Detail

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.