Class MappedNamespaceConvention
java.lang.Object
org.codehaus.jettison.mapped.MappedNamespaceConvention
- All Implemented Interfaces:
NamespaceContext, Convention
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToJSONPrimitive(String text) createAttributeKey(String p, String ns, String local) private QNamecreateQName(String name) createQName(String rootName, Node node) List<?> private StringgetJSONNamespace(String providedPrefix, String ns) getNamespaceURI(String prefix) getPrefixes(String arg0) Set<?> booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidprocessAttributesAndNamespaces(Node n, JSONObject object) private voidreadAttribute(Node n, String name, String value) private voidreadAttribute(Node n, String k, JSONArray array) voidsetEscapeForwardSlashAlways(boolean escapeForwardSlash)
-
Field Details
-
DOT_NAMESPACE_SEP
- See Also:
-
xnsToJns
-
jnsToXns
-
attributesAsElements
-
ignoredElements
-
jsonAttributesAsElements
-
supressAtAttributes
private boolean supressAtAttributes -
ignoreNamespaces
private boolean ignoreNamespaces -
attributeKey
-
typeConverter
-
primitiveArrayKeys
-
dropRootElement
private boolean dropRootElement -
writeNullAsString
private boolean writeNullAsString -
rootElementArrayWrapper
private boolean rootElementArrayWrapper -
ignoreEmptyArrayValues
private boolean ignoreEmptyArrayValues -
readNullAsString
private boolean readNullAsString -
escapeForwardSlashAlways
private boolean escapeForwardSlashAlways -
jsonNamespaceSeparator
-
-
Constructor Details
-
MappedNamespaceConvention
public MappedNamespaceConvention() -
MappedNamespaceConvention
-
-
Method Details
-
processAttributesAndNamespaces
- Specified by:
processAttributesAndNamespacesin interfaceConvention- Throws:
JSONException
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefixin interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixesin interfaceNamespaceContext
-
createQName
- Specified by:
createQNamein interfaceConvention
-
readAttribute
- Throws:
JSONException
-
readAttribute
- Throws:
JSONException
-
createQName
-
createAttributeKey
-
getJSONNamespace
-
createKey
-
isElement
-
convertToJSONPrimitive
-
getPrimitiveArrayKeys
-
isDropRootElement
public boolean isDropRootElement() -
isRootElementArrayWrapper
public boolean isRootElementArrayWrapper() -
getIgnoredElements
-
isWriteNullAsString
public boolean isWriteNullAsString() -
isReadNullAsString
public boolean isReadNullAsString() -
isIgnoreEmptyArrayValues
public boolean isIgnoreEmptyArrayValues() -
isEscapeForwardSlashAlways
public boolean isEscapeForwardSlashAlways() -
setEscapeForwardSlashAlways
public void setEscapeForwardSlashAlways(boolean escapeForwardSlash) -
getNamespaceSeparator
-