Package org.frankframework.align.content
Class JsonElementContainer
java.lang.Object
org.frankframework.align.content.JsonElementContainer
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
-
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
-
ESCAPE_JSON
public static final org.apache.commons.lang3.text.translate.CharSequenceTranslator ESCAPE_JSON
-
-
Constructor Details
-
JsonElementContainer
-
-
Method Details
-
setNull
public void setNull() -
setAttribute
-
characters
public void characters(char[] ch, int start, int length) -
setContent
-
addContent
-
stripLeadingZeroes
-
getContent
-
toString
-
getName
-
isXmlArrayContainer
public boolean isXmlArrayContainer() -
isRepeatedElement
public boolean isRepeatedElement() -
setType
-
getType
-