Package org.frankframework.align.content
Class JsonElementContainer
java.lang.Object
org.frankframework.align.content.JsonElementContainer
- All Implemented Interfaces:
ElementContainer
Helper class to construct JSON from XML events.
- Author:
- Gerrit van Brakel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.commons.lang3.text.translate.CharSequenceTranslator
protected org.apache.logging.log4j.Logger
-
Constructor Summary
ConstructorDescriptionJsonElementContainer
(String name, boolean xmlArrayContainer, boolean repeatedElement, boolean skipArrayElementContainers, String attributePrefix, String mixedContentLabel, org.apache.xerces.xs.XSTypeDefinition typeDefinition) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContent
(JsonElementContainer content) void
characters
(char[] ch, int start, int length) getName()
getType()
boolean
boolean
void
setAttribute
(String name, String value, org.apache.xerces.xs.XSSimpleTypeDefinition attTypeDefinition) void
setContent
(String content) void
setNull()
void
setType
(ScalarType type) static String
stripLeadingZeroes
(String value) toString()
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log -
stringContent
-
ESCAPE_JSON
public static final org.apache.commons.lang3.text.translate.CharSequenceTranslator ESCAPE_JSON
-
-
Constructor Details
-
JsonElementContainer
-
-
Method Details
-
setNull
public void setNull()- Specified by:
setNull
in interfaceElementContainer
-
setAttribute
public void setAttribute(String name, String value, org.apache.xerces.xs.XSSimpleTypeDefinition attTypeDefinition) - Specified by:
setAttribute
in interfaceElementContainer
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
characters
in interfaceElementContainer
-
setContent
-
addContent
-
stripLeadingZeroes
-
getContent
-
toString
-
getName
-
isXmlArrayContainer
public boolean isXmlArrayContainer() -
isRepeatedElement
public boolean isRepeatedElement() -
getType
-
setType
-