public class MappedNamespaceConvention extends Object implements Convention, NamespaceContext
Constructor and Description |
---|
MappedNamespaceConvention() |
MappedNamespaceConvention(Configuration config) |
Modifier and Type | Method and Description |
---|---|
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) |
public MappedNamespaceConvention()
public MappedNamespaceConvention(Configuration config)
public void processAttributesAndNamespaces(Node n, JSONObject object) throws JSONException
processAttributesAndNamespaces
in interface Convention
JSONException
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator getPrefixes(String arg0)
getPrefixes
in interface NamespaceContext
public QName createQName(String rootName, Node node)
createQName
in interface Convention
Copyright © 2012. All Rights Reserved.