org.codehaus.jettison.mapped
Class MappedNamespaceConvention

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

public class MappedNamespaceConvention
extends Object
implements Convention, NamespaceContext


Constructor Summary
MappedNamespaceConvention()
           
MappedNamespaceConvention(Configuration config)
           
 
Method Summary
 Object convertToJSONPrimitive(String text)
           
 String createAttributeKey(String p, String ns, String local)
           
 String createKey(String p, String ns, String local)
           
 QName createQName(String rootName, Node node)
           
 String getNamespaceURI(String prefix)
           
 String getPrefix(String namespaceURI)
           
 Iterator getPrefixes(String arg0)
           
 boolean isElement(String p, String ns, String local)
           
 void processAttributesAndNamespaces(Node n, JSONObject object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedNamespaceConvention

public MappedNamespaceConvention()

MappedNamespaceConvention

public MappedNamespaceConvention(Configuration config)
Method Detail

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 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)


Copyright © 2013. All Rights Reserved.