Class FormXmlReaderResult

    • Constructor Detail

      • FormXmlReaderResult

        public FormXmlReaderResult​(org.eclipse.emf.ecore.EObject resultObject)
        Construct FormXmlReaderResult with result object
        Parameters:
        resultObject - the xml exporting result object
    • Method Detail

      • addExternalContent

        public void addExternalContent​(org.eclipse.emf.ecore.EObject context,
                                       org.eclipse.emf.ecore.EReference reference,
                                       String content)
        Add new form xml external content
        Parameters:
        context - the context object in form, cannot be null
        reference - the EReference to external context, cannot be null
        content - the xml content, cannot be null
      • addExternalContent

        public void addExternalContent​(org.eclipse.emf.ecore.EObject context,
                                       org.eclipse.emf.ecore.EReference reference)
        Add new form xml external content
        Parameters:
        context - the context object in form
        reference - the EReference to external context
      • addExternalObject

        public void addExternalObject​(org.eclipse.emf.ecore.EObject context,
                                      org.eclipse.emf.ecore.EReference reference,
                                      org.eclipse.emf.ecore.EObject eObject)
        Add new form xml external object
        Parameters:
        context - the context object in form
        reference - the EReference to external context
        eObject - the an external object
      • addAdditionSource

        public void addAdditionSource​(Addition addition,
                                      String name,
                                      String type)
                               throws ImportException
        Add new addition source
        Parameters:
        addition - the form element addition
        name - the source element name
        type - the addition type
        Throws:
        ImportException - if additionIs is not valid
      • addAdditionContainer

        public void addAdditionContainer​(String name,
                                         AdditionContainer additionContainer)
        Add new addition container name to cache
        Parameters:
        name - the name of addition container element
        additionContainer - the addition container
      • getBaseForm

        public Form getBaseForm()
        Returns the base form that was read during form XML read. May return null.
        Returns:
        the base form or null if none
      • setBaseForm

        public void setBaseForm​(Form baseForm)
        Set base form as the part of form read result.
        Parameters:
        baseForm - the base that was read during form XML read, cannot be null
      • attacheAdditionSources

        public void attacheAdditionSources()
        Attached addition source to addition by source names