Package org.frankframework.align.content
Class JsonDocumentContainer
java.lang.Object
org.frankframework.align.content.TreeContentContainer<JsonElementContainer>
org.frankframework.align.content.JsonDocumentContainer
- All Implemented Interfaces:
DocumentContainer
,ElementContainer
,ElementGroupContainer
Helper class to construct JSON from XML events.
- Author:
- Gerrit van Brakel
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJsonDocumentContainer
(String name, boolean skipArrayElementContainers, boolean skipRootElement) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addContent
(JsonElementContainer parent, JsonElementContainer child) protected JsonElementContainer
createElementContainer
(String localName, boolean xmlArrayContainer, boolean repeatedElement, org.apache.xerces.xs.XSTypeDefinition typeDefinition) protected void
getName()
toString()
toString
(boolean indent) protected void
toString
(StringBuilder sb, Object item, int indentLevel) Methods inherited from class org.frankframework.align.content.TreeContentContainer
characters, endElement, endElementGroup, getCurrentElement, getRoot, setAttribute, setNull, startElement, startElementGroup
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
JsonDocumentContainer
public JsonDocumentContainer(String name, boolean skipArrayElementContainers, boolean skipRootElement)
-
-
Method Details
-
createElementContainer
protected JsonElementContainer createElementContainer(String localName, boolean xmlArrayContainer, boolean repeatedElement, org.apache.xerces.xs.XSTypeDefinition typeDefinition) - Specified by:
createElementContainer
in classTreeContentContainer<JsonElementContainer>
-
addContent
- Specified by:
addContent
in classTreeContentContainer<JsonElementContainer>
-
toString
-
toString
-
toString
-
generate
-
getName
-