Class ProcessModelXMLImportTools
- java.lang.Object
-
- de.aristaflow.adept2.model.common.XMLImportTools
-
- de.aristaflow.adept2.model.processmodel.xml.ProcessModelXMLImportTools
-
public class ProcessModelXMLImportTools extends XMLImportTools
All helper methods for the XML import of process model classes, i.e. mainly parsing elements into objects.- Author:
- Kevin Goeser
-
-
Constructor Summary
Constructors Constructor Description ProcessModelXMLImportTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<UUID,UUID>
getAdhocTemplateMapping(Element root)
Returns the adhoc template ID mapping stored under the specified root nodestatic String
getAdhocTemplateMappingVersion(Element root)
Return the version number of the given adhoc template mapping elementstatic Map<UUID,UUID>
getBaseTemplateMapping(Element root)
Returns the base template ID mapping stored under the specified root nodestatic String
getBaseTemplateMappingVersion(Element root)
Return the version number of the given base template mapping elementstatic EBPInstanceReference
getEBPInstanceReference(Element ebpInstanceReferenceElement, ProcessModelFactory pmf)
Create a new ebp instance reference object from the given xml element.static Map<UUID,UUID>
getEmbeddedTemplateMapping(Element root)
Returns the embedded template ID mapping stored under the specified root nodestatic String
getEmbeddedTemplateMappingVersion(Element root)
Return the version number of the given embedded template mapping elementstatic Map<UUID,ProcessModelXMLHelperTools.LockDescription>
getInstanceLocks(Element root)
Returns the instance locks stored under the specified root nodestatic String
getInstanceLocksVersion(Element root)
Return the version number of the given instanceLocks elementstatic Set<ProcessModelXMLHelperTools.SerialisableProcessType>
getProcessTypes(Element root)
Returns the process types stored under the specified root nodestatic String
getProcessTypesVersion(Element root)
Return the version number of the given process types elementstatic Map<UUID,ProcessModelXMLHelperTools.TemplateInformation>
getTemplateInformations(Element root)
Returns the template information stored under the specified root nodestatic String
getTemplateInformationsVersion(Element root)
Return the version number of the given template informations elementstatic Map<UUID,ProcessModelXMLHelperTools.LockDescription>
getTemplateLocks(Element root)
Returns the template locks stored under the specified root nodestatic String
getTemplateLocksVersion(Element root)
Return the version number of the given templateLocks element-
Methods inherited from class de.aristaflow.adept2.model.common.XMLImportTools
getActivityConfiguration, getChangeableActivityConfiguration, getClassPath, getConfiguration, getConfigurationDescription, getExecutionControlProperties, getPluginDataContainer, getQualifiedAgent, getSeparatedClassPath, getURIs, getUserAttributes
-
-
-
-
Field Detail
-
logger
protected static final Logger logger
My logger.
-
-
Method Detail
-
getEBPInstanceReference
public static EBPInstanceReference getEBPInstanceReference(Element ebpInstanceReferenceElement, ProcessModelFactory pmf)
Create a new ebp instance reference object from the given xml element.- Parameters:
ebpInstanceReferenceElement
- The xml elementpmf
- The factory for creating the object.- Returns:
- A new ebpInstanceReference object.
-
getTemplateLocks
public static Map<UUID,ProcessModelXMLHelperTools.LockDescription> getTemplateLocks(Element root)
Returns the template locks stored under the specified root node- Parameters:
root
-- Returns:
- The template locks
-
getTemplateLocksVersion
public static String getTemplateLocksVersion(Element root)
Return the version number of the given templateLocks element- Parameters:
root
-- Returns:
- The version number or null if not given
-
getInstanceLocks
public static Map<UUID,ProcessModelXMLHelperTools.LockDescription> getInstanceLocks(Element root)
Returns the instance locks stored under the specified root node- Parameters:
root
-- Returns:
- The instance locks
-
getInstanceLocksVersion
public static String getInstanceLocksVersion(Element root)
Return the version number of the given instanceLocks element- Parameters:
root
-- Returns:
- The version number or null if not given
-
getEmbeddedTemplateMapping
public static Map<UUID,UUID> getEmbeddedTemplateMapping(Element root)
Returns the embedded template ID mapping stored under the specified root node- Parameters:
root
-- Returns:
- The mapping of embedded IDs to their parent ones
-
getEmbeddedTemplateMappingVersion
public static String getEmbeddedTemplateMappingVersion(Element root)
Return the version number of the given embedded template mapping element- Parameters:
root
-- Returns:
- The version number or null if not given
-
getBaseTemplateMapping
public static Map<UUID,UUID> getBaseTemplateMapping(Element root)
Returns the base template ID mapping stored under the specified root node- Parameters:
root
-- Returns:
- The mapping of template IDs to their base template IDs
-
getBaseTemplateMappingVersion
public static String getBaseTemplateMappingVersion(Element root)
Return the version number of the given base template mapping element- Parameters:
root
-- Returns:
- The version number or null if not given
-
getAdhocTemplateMapping
public static Map<UUID,UUID> getAdhocTemplateMapping(Element root)
Returns the adhoc template ID mapping stored under the specified root node- Parameters:
root
-- Returns:
- The mapping of adhoc template IDs to their instance IDs
-
getAdhocTemplateMappingVersion
public static String getAdhocTemplateMappingVersion(Element root)
Return the version number of the given adhoc template mapping element- Parameters:
root
-- Returns:
- The version number or null if not given
-
getProcessTypes
public static Set<ProcessModelXMLHelperTools.SerialisableProcessType> getProcessTypes(Element root)
Returns the process types stored under the specified root node- Parameters:
root
-- Returns:
- The mapping of adhoc template IDs to their instance IDs
-
getProcessTypesVersion
public static String getProcessTypesVersion(Element root)
Return the version number of the given process types element- Parameters:
root
-- Returns:
- The version number or null if not given
-
getTemplateInformations
public static Map<UUID,ProcessModelXMLHelperTools.TemplateInformation> getTemplateInformations(Element root)
Returns the template information stored under the specified root node- Parameters:
root
-- Returns:
- The mapping of adhoc template IDs to their instance IDs
-
-