Class JsonElementContainer

java.lang.Object
org.frankframework.align.content.JsonElementContainer
All Implemented Interfaces:
ElementContainer

public class JsonElementContainer extends Object implements ElementContainer
Helper class to construct JSON from XML events.
Author:
Gerrit van Brakel
  • Field Details

    • log

      protected org.apache.logging.log4j.Logger log
    • stringContent

      public String stringContent
    • ESCAPE_JSON

      public static final org.apache.commons.lang3.text.translate.CharSequenceTranslator ESCAPE_JSON
  • Constructor Details

    • JsonElementContainer

      public JsonElementContainer(String name, boolean xmlArrayContainer, boolean repeatedElement, boolean skipArrayElementContainers, String attributePrefix, String mixedContentLabel, org.apache.xerces.xs.XSTypeDefinition typeDefinition)
  • Method Details

    • setNull

      public void setNull()
      Specified by:
      setNull in interface ElementContainer
    • setAttribute

      public void setAttribute(String name, String value, org.apache.xerces.xs.XSSimpleTypeDefinition attTypeDefinition)
      Specified by:
      setAttribute in interface ElementContainer
    • characters

      public void characters(char[] ch, int start, int length)
      Specified by:
      characters in interface ElementContainer
    • setContent

      public void setContent(String content)
    • addContent

      public void addContent(JsonElementContainer content)
    • stripLeadingZeroes

      public static String stripLeadingZeroes(String value)
    • getContent

      public Object getContent()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public String getName()
    • isXmlArrayContainer

      public boolean isXmlArrayContainer()
    • isRepeatedElement

      public boolean isRepeatedElement()
    • getType

      public ScalarType getType()
    • setType

      public void setType(ScalarType type)