Class ProcessModelXMLExportTools
java.lang.Object
de.aristaflow.adept2.model.common.XMLExportTools
de.aristaflow.adept2.model.processmodel.xml.ProcessModelXMLExportTools
Helper methods for the XML export of process model classes, i.e. methods to
create single xml element objects.
- Author:
- Kevin Goeser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementcreateAdhocTemplateMappingElement(Document document, Map<UUID, UUID> mapping) Create a adhoc template ID mapping element with the given ID mappingstatic ElementcreateBaseTemplateMappingElement(Document document, Map<UUID, UUID> mapping) Create a baseBase template ID mapping element with the given ID mappingstatic ElementcreateEmbeddedTemplateMappingElement(Document document, Map<UUID, UUID> mapping) Create a embedded template ID mapping element with the given ID mappingstatic ElementcreateInstanceLocksElement(Document document, Map<UUID, ProcessModelXMLHelperTools.LockDescription> locks) Create a instance locks element containing all instance locks specified.static ElementcreateProcessTypesElement(Document document, Set<ProcessModelXMLHelperTools.SerialisableProcessType> items) Create a process types element containing all specified processTypes.static ElementcreateTemplateInformationsElement(Document document, Map<UUID, ProcessModelXMLHelperTools.TemplateInformation> items) Create a template informations element containing all specified template informations.static ElementcreateTemplateLocksElement(Document document, Map<UUID, ProcessModelXMLHelperTools.LockDescription> locks) Create a template locks element containing all template locks specified.Methods inherited from class de.aristaflow.adept2.model.common.XMLExportTools
addElement, addElement, addElement, addElementNS, createClassPathElement, createConfigurationDescriptionElement, createConfigurationElement, createConfigurationEntryElement, createEBPInstanceReferenceElement, createECPElement, createExecutionControlPropertiesElement, createPluginDataContainerElement, createSeparatedClassPathElement, createURIArrayElement, createUserAttributesElement, fillQualifiedAgentElement, fillUserAttributesElement, sortedKeySet
-
Constructor Details
-
ProcessModelXMLExportTools
public ProcessModelXMLExportTools()
-
-
Method Details
-
createTemplateLocksElement
public static Element createTemplateLocksElement(Document document, Map<UUID, ProcessModelXMLHelperTools.LockDescription> locks) Create a template locks element containing all template locks specified.- Parameters:
document-locks-- Returns:
- the created
Element
-
createInstanceLocksElement
public static Element createInstanceLocksElement(Document document, Map<UUID, ProcessModelXMLHelperTools.LockDescription> locks) Create a instance locks element containing all instance locks specified.- Parameters:
document-locks-- Returns:
- the created
Element
-
createEmbeddedTemplateMappingElement
public static Element createEmbeddedTemplateMappingElement(Document document, Map<UUID, UUID> mapping) Create a embedded template ID mapping element with the given ID mapping- Parameters:
document-mapping- - The embedded IDs mapping to their parent IDs- Returns:
- the created
Element
-
createBaseTemplateMappingElement
Create a baseBase template ID mapping element with the given ID mapping- Parameters:
document-mapping- - The template IDs mapping to their base template IDs- Returns:
- the created
Element
-
createAdhocTemplateMappingElement
Create a adhoc template ID mapping element with the given ID mapping- Parameters:
document-mapping- - The adhoc template IDs mapping to their instance IDs- Returns:
- the created
Element
-
createProcessTypesElement
public static Element createProcessTypesElement(Document document, Set<ProcessModelXMLHelperTools.SerialisableProcessType> items) Create a process types element containing all specified processTypes.- Parameters:
document-items- - TheProcessTypes- Returns:
- the created
Element
-
createTemplateInformationsElement
public static Element createTemplateInformationsElement(Document document, Map<UUID, ProcessModelXMLHelperTools.TemplateInformation> items) Create a template informations element containing all specified template informations.- Parameters:
document-items- - Map from ID of template to template information for this template- Returns:
- the created
Element
-