Class XmlProfileEditor
java.lang.Object
com.aquima.interactions.framework.handler.profile.xml.XmlProfileEditor
The XML profile editor is responsible for generating the XML messages of the profile editor.
- Since:
- 5.0
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionXmlProfileEditor
(ProfileEditor profileEditor) Constructs the profile editor with the required parameters. -
Method Summary
Modifier and TypeMethodDescriptionrenderCollapsedPage
(IProfile profile, IMetaModel metamodel) This method creates an XML node containing all the entity definitions and instances.renderInstanceEditor
(InstanceEditor instanceEditor, IProfile profile, IMetaModel metamodel, IProject project) This method creates an XML node for an instance.
-
Constructor Details
-
XmlProfileEditor
Constructs the profile editor with the required parameters.- Parameters:
profileEditor
- Profile editor class.
-
-
Method Details
-
renderCollapsedPage
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.
-