org.codehaus.jettison.mapped
Class MappedNamespaceConvention
java.lang.Object
org.codehaus.jettison.mapped.MappedNamespaceConvention
- All Implemented Interfaces:
- NamespaceContext, Convention
public class MappedNamespaceConvention
- extends Object
- implements Convention, NamespaceContext
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappedNamespaceConvention
public MappedNamespaceConvention()
MappedNamespaceConvention
public MappedNamespaceConvention(Configuration config)
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 © 2011. All Rights Reserved.