Class ProcessModelXMLImportTools
java.lang.Object
de.aristaflow.adept2.model.common.XMLImportTools
de.aristaflow.adept2.model.processmodel.xml.ProcessModelXMLImportTools
All helper methods for the XML import of process model classes, i.e. mainly
parsing elements into objects.
- Author:
- Kevin Goeser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the adhoc template ID mapping stored under the specified root nodestatic StringReturn the version number of the given adhoc template mapping elementReturns the base template ID mapping stored under the specified root nodestatic StringReturn the version number of the given base template mapping elementstatic EBPInstanceReferencegetEBPInstanceReference(Element ebpInstanceReferenceElement, ProcessModelFactory pmf) Create a new ebp instance reference object from the given xml element.Returns the embedded template ID mapping stored under the specified root nodestatic StringReturn the version number of the given embedded template mapping elementgetInstanceLocks(Element root) Returns the instance locks stored under the specified root nodestatic StringReturn the version number of the given instanceLocks elementgetProcessTypes(Element root) Returns the process types stored under the specified root nodestatic StringReturn the version number of the given process types elementReturns the template information stored under the specified root nodestatic StringReturn the version number of the given template informations elementgetTemplateLocks(Element root) Returns the template locks stored under the specified root nodestatic StringReturn the version number of the given templateLocks elementMethods inherited from class de.aristaflow.adept2.model.common.XMLImportTools
getActivityConfiguration, getChangeableActivityConfiguration, getClassPath, getConfiguration, getConfigurationDescription, getExecutionControlProperties, getPluginDataContainer, getQualifiedAgent, getSeparatedClassPath, getURIs, getUserAttributes
-
Field Details
-
logger
My logger.
-
-
Constructor Details
-
ProcessModelXMLImportTools
public ProcessModelXMLImportTools()
-
-
Method Details
-
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
Returns the template locks stored under the specified root node- Parameters:
root-- Returns:
- The template locks
-
getTemplateLocksVersion
Return the version number of the given templateLocks element- Parameters:
root-- Returns:
- The version number or null if not given
-
getInstanceLocks
Returns the instance locks stored under the specified root node- Parameters:
root-- Returns:
- The instance locks
-
getInstanceLocksVersion
Return the version number of the given instanceLocks element- Parameters:
root-- Returns:
- The version number or null if not given
-
getEmbeddedTemplateMapping
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
Return the version number of the given embedded template mapping element- Parameters:
root-- Returns:
- The version number or null if not given
-
getBaseTemplateMapping
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
Return the version number of the given base template mapping element- Parameters:
root-- Returns:
- The version number or null if not given
-
getAdhocTemplateMapping
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
Return the version number of the given adhoc template mapping element- Parameters:
root-- Returns:
- The version number or null if not given
-
getProcessTypes
Returns the process types stored under the specified root node- Parameters:
root-- Returns:
- The mapping of adhoc template IDs to their instance IDs
-
getProcessTypesVersion
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
-
getTemplateInformationsVersion
Return the version number of the given template informations element- Parameters:
root-- Returns:
- The version number or null if not given
-