Package org.codehaus.jettison.mapped
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 QName
createQName
(String name) createQName
(String rootName, Node node) List<?>
private String
getJSONNamespace
(String providedPrefix, String ns) getNamespaceURI
(String prefix) getPrefixes
(String arg0) Set<?>
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
processAttributesAndNamespaces
(Node n, JSONObject object) private void
readAttribute
(Node n, String name, String value) private void
readAttribute
(Node n, String k, JSONArray array) void
setEscapeForwardSlashAlways
(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:
processAttributesAndNamespaces
in interfaceConvention
- Throws:
JSONException
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
createQName
- Specified by:
createQName
in 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
-