Class ProcessModelXMLExportTools
- java.lang.Object
-
- de.aristaflow.adept2.model.common.XMLExportTools
-
- de.aristaflow.adept2.model.processmodel.xml.ProcessModelXMLExportTools
-
public class ProcessModelXMLExportTools extends XMLExportTools
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 Constructor Description ProcessModelXMLExportTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Element
createAdhocTemplateMappingElement(Document document, Map<UUID,UUID> mapping)
Create a adhoc template ID mapping element with the given ID mappingstatic Element
createBaseTemplateMappingElement(Document document, Map<UUID,UUID> mapping)
Create a baseBase template ID mapping element with the given ID mappingstatic Element
createEmbeddedTemplateMappingElement(Document document, Map<UUID,UUID> mapping)
Create a embedded template ID mapping element with the given ID mappingstatic Element
createInstanceLocksElement(Document document, Map<UUID,ProcessModelXMLHelperTools.LockDescription> locks)
Create a instance locks element containing all instance locks specified.static Element
createProcessTypesElement(Document document, Set<ProcessModelXMLHelperTools.SerialisableProcessType> items)
Create a process types element containing all specified processTypes.static Element
createTemplateInformationsElement(Document document, Map<UUID,ProcessModelXMLHelperTools.TemplateInformation> items)
Create a template informations element containing all specified template informations.static Element
createTemplateLocksElement(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
-
-
-
-
Method Detail
-
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
public static Element createBaseTemplateMappingElement(Document document, Map<UUID,UUID> mapping)
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
public static Element createAdhocTemplateMappingElement(Document document, Map<UUID,UUID> mapping)
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
- - TheProcessType
s- 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
-
-