Class XMLImportTools

java.lang.Object
de.aristaflow.adept2.model.common.XMLImportTools
Direct Known Subclasses:
ProcessModelXMLImportTools

public class XMLImportTools extends Object
These methods will be used by both, the activity model and the process model.
Author:
Marco Waimer
  • Constructor Details

    • XMLImportTools

      public XMLImportTools()
  • Method Details

    • getConfiguration

      public static Configuration getConfiguration(CommonModelFactory cmf, Element confElement)
      Parameters:
      cmf -
      confElement -
      Returns:
      The configuration the element represents.
    • getActivityConfiguration

      public static ActivityConfiguration getActivityConfiguration(CommonModelFactory cmf, Element confElement)
      Parameters:
      cmf -
      confElement -
      Returns:
      The changeable activity configuration the element represents.
    • getChangeableActivityConfiguration

      public static ChangeableActivityConfiguration getChangeableActivityConfiguration(CommonModelFactory cmf, Element confElement)
      Parameters:
      cmf -
      confElement -
      Returns:
      The changeable activity configuration the element represents.
    • getConfigurationDescription

      public static ConfigurationDescription getConfigurationDescription(CommonModelFactory cmf, Element element)
      Parameters:
      cmf -
      element -
      Returns:
      The configuration description the element represents.
    • getClassPath

      public static List<String> getClassPath(Element cpElement)
      Parameters:
      cpElement -
      Returns:
      The list of class path strings the element represents.
    • getSeparatedClassPath

      public static Map<ActivityConstants.ActivityModelEntityType,List<String>> getSeparatedClassPath(Element cpElement)
      Parameters:
      cpElement -
      Returns:
      The list of separated class path strings the element represents.
    • getExecutionControlProperties

      public static ExecutionControlProperties getExecutionControlProperties(Element ecpElement)
      Takes the given execution control properties element and creates an execution control properties object out of it
      Parameters:
      ecpElement - The XML element of the execution control properties.
      Returns:
      A new execution control properties object
    • getPluginDataContainer

      public static PluginDataContainer getPluginDataContainer(CommonModelFactory cmf, Element pdcElement)
      Returns all plug-in data mappings from the given element.
      Parameters:
      cmf -
      pdcElement - The plugin data container element.
      Returns:
      A standalone PluginDataContainer used as data container containing the plug-in data mappings.
    • getUserAttributes

      public static Map<String,String> getUserAttributes(Element uasElement)
      Returns all user attributes in the given user attribute container.
      Parameters:
      uasElement - A user attributes element.
      Returns:
      A map containing all user attributes.
    • getQualifiedAgent

      protected static QualifiedAgent getQualifiedAgent(Element qaElement)
      Create a new qualified agent object from the given xml element.
      Parameters:
      qaElement -
      Returns:
      A new qualified agent
    • getURIs

      protected static URI[] getURIs(Element urisElement)
      Create a new array of URIs from the given XML element.
      Parameters:
      urisElement -
      Returns:
      A new array of URIs