Class XFAJSONTransformer


  • public class XFAJSONTransformer
    extends java.lang.Object
    • Constructor Detail

      • XFAJSONTransformer

        public XFAJSONTransformer​(JSONObject xfaJson)
      • XFAJSONTransformer

        public XFAJSONTransformer​(JSONObject xfaJson,
                                  ResourceResolver resourceResolver,
                                  java.lang.String xfaPath)
      • XFAJSONTransformer

        public XFAJSONTransformer​(JSONObject xfaJson,
                                  boolean saveObjects,
                                  ResourceResolver resourceResolver,
                                  java.lang.String xfaPath)
    • Method Detail

      • acceptObject

        public boolean acceptObject​(JSONObject jsonObject)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • transform

        public java.lang.String transform()
      • checkIfSupportedTable

        public boolean checkIfSupportedTable​(JSONObject containerJson)
                                      throws java.lang.Exception
        Checks if the given XDP table is supported by adaptive forms In adaptive forms, we don't support following: a) Table with multiple headers b) Table with no headers c) Table within table
        Parameters:
        containerJson -
        Returns:
        Throws:
        java.lang.Exception
      • transformTable

        public void transformTable​(JSONObject tableJson)
                            throws java.lang.Exception
        Transforms XDP Table into adaptive forms Table
        Parameters:
        tableJson -
        Throws:
        java.lang.Exception
      • getXFAObjects

        public final java.util.Hashtable<java.lang.String,​java.lang.String> getXFAObjects()
      • acceptLeaf

        public boolean acceptLeaf​(JSONObject leafJson)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception