Class FormFactory


  • public class FormFactory
    extends java.lang.Object
    Widget Library - Form factory class
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • FormFactory

        public FormFactory()
    • Method Detail

      • getFormsFromLocation

        public static java.util.Map<java.lang.String,​ModelForm> getFormsFromLocation​(java.lang.String resourceName,
                                                                                           ModelReader entityModelReader,
                                                                                           DispatchContext dispatchContext)
                                                                                    throws java.io.IOException,
                                                                                           org.xml.sax.SAXException,
                                                                                           javax.xml.parsers.ParserConfigurationException
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
        javax.xml.parsers.ParserConfigurationException
      • getFormFromLocation

        public static ModelForm getFormFromLocation​(java.lang.String resourceName,
                                                    java.lang.String formName,
                                                    ModelReader entityModelReader,
                                                    DispatchContext dispatchContext)
                                             throws java.io.IOException,
                                                    org.xml.sax.SAXException,
                                                    javax.xml.parsers.ParserConfigurationException
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
        javax.xml.parsers.ParserConfigurationException
      • getFormFromWebappContext

        public static ModelForm getFormFromWebappContext​(java.lang.String resourceName,
                                                         java.lang.String formName,
                                                         javax.servlet.http.HttpServletRequest request)
                                                  throws java.io.IOException,
                                                         org.xml.sax.SAXException,
                                                         javax.xml.parsers.ParserConfigurationException
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
        javax.xml.parsers.ParserConfigurationException
      • readFormDocument

        public static java.util.Map<java.lang.String,​ModelForm> readFormDocument​(org.w3c.dom.Document formFileDoc,
                                                                                       ModelReader entityModelReader,
                                                                                       DispatchContext dispatchContext,
                                                                                       java.lang.String formLocation)
      • createModelForm

        public static ModelForm createModelForm​(org.w3c.dom.Document formFileDoc,
                                                ModelReader entityModelReader,
                                                DispatchContext dispatchContext,
                                                java.lang.String formLocation,
                                                java.lang.String formName)
      • createModelForm

        public static ModelForm createModelForm​(org.w3c.dom.Element formElement,
                                                ModelReader entityModelReader,
                                                DispatchContext dispatchContext,
                                                java.lang.String formLocation,
                                                java.lang.String formName)