java.lang.Object
com.aquima.interactions.framework.handler.profile.xml.XmlProfileEditor

public class XmlProfileEditor extends Object
The XML profile editor is responsible for generating the XML messages of the profile editor.
Since:
5.0
Author:
Jon van Leuven
  • Constructor Details

    • XmlProfileEditor

      public XmlProfileEditor(ProfileEditor profileEditor)
      Constructs the profile editor with the required parameters.
      Parameters:
      profileEditor - Profile editor class.
  • Method Details

    • renderCollapsedPage

      public IXmlElement renderCollapsedPage(IProfile profile, IMetaModel metamodel)
      This method creates an XML node containing all the entity definitions and instances.
      Parameters:
      profile - The profile containing the current state.
      metamodel - The meta model of the application.
      Returns:
      an XML node containing all the entity definitions and instances.
      Throws:
      AppException - This exception is thrown when the XML could not be created.
    • renderInstanceEditor

      public IXmlElement renderInstanceEditor(InstanceEditor instanceEditor, IProfile profile, IMetaModel metamodel, IProject project)
      This method creates an XML node for an instance.
      Parameters:
      instanceEditor - The editor containing the instance for which the XML is requested.
      profile - The profile containing the current state.
      metamodel - The meta model of the application.
      project - The project definitions.
      Returns:
      XML node for the requested instance.
      Throws:
      AppException - This exception is thrown when the instance could not be converted to XML.