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
  • Field Details

    • logger

      protected static final Logger 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 element
      pmf - 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
    • getTemplateInformationsVersion

      public static String getTemplateInformationsVersion(Element root)
      Return the version number of the given template informations element
      Parameters:
      root -
      Returns:
      The version number or null if not given