Class MappedNamespaceConvention

java.lang.Object
org.codehaus.jettison.mapped.MappedNamespaceConvention
All Implemented Interfaces:
NamespaceContext, Convention

public class MappedNamespaceConvention extends Object implements Convention, NamespaceContext
  • Constructor Details

    • MappedNamespaceConvention

      public MappedNamespaceConvention()
    • MappedNamespaceConvention

      public MappedNamespaceConvention(Configuration config)
  • Method Details

    • processAttributesAndNamespaces

      public void processAttributesAndNamespaces(Node n, JSONObject object) throws JSONException
      Specified by:
      processAttributesAndNamespaces in interface Convention
      Throws:
      JSONException
    • getNamespaceURI

      public String getNamespaceURI(String prefix)
      Specified by:
      getNamespaceURI in interface NamespaceContext
    • getPrefix

      public String getPrefix(String namespaceURI)
      Specified by:
      getPrefix in interface NamespaceContext
    • getPrefixes

      public Iterator<String> getPrefixes(String arg0)
      Specified by:
      getPrefixes in interface NamespaceContext
    • createQName

      public QName createQName(String rootName, Node node)
      Specified by:
      createQName in interface Convention
    • createAttributeKey

      public String createAttributeKey(String p, String ns, String local)
    • createKey

      public String createKey(String p, String ns, String local)
    • isElement

      public boolean isElement(String p, String ns, String local)
    • convertToJSONPrimitive

      public Object convertToJSONPrimitive(String text)
    • getPrimitiveArrayKeys

      public Set<?> getPrimitiveArrayKeys()
    • isDropRootElement

      public boolean isDropRootElement()
    • isRootElementArrayWrapper

      public boolean isRootElementArrayWrapper()
    • getIgnoredElements

      public List<?> getIgnoredElements()
    • isWriteNullAsString

      public boolean isWriteNullAsString()
    • isReadNullAsString

      public boolean isReadNullAsString()
    • isIgnoreEmptyArrayValues

      public boolean isIgnoreEmptyArrayValues()
    • isEscapeForwardSlashAlways

      public boolean isEscapeForwardSlashAlways()
    • setEscapeForwardSlashAlways

      public void setEscapeForwardSlashAlways(boolean escapeForwardSlash)
    • getNamespaceSeparator

      public String getNamespaceSeparator()