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 Summary
Constructors Constructor Description XMLImportTools() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActivityConfigurationgetActivityConfiguration(CommonModelFactory cmf, Element confElement)static ChangeableActivityConfigurationgetChangeableActivityConfiguration(CommonModelFactory cmf, Element confElement)static List<String>getClassPath(Element cpElement)static ConfigurationgetConfiguration(CommonModelFactory cmf, Element confElement)static ConfigurationDescriptiongetConfigurationDescription(CommonModelFactory cmf, Element element)static ExecutionControlPropertiesgetExecutionControlProperties(Element ecpElement)Takes the given execution control properties element and creates an execution control properties object out of itstatic PluginDataContainergetPluginDataContainer(CommonModelFactory cmf, Element pdcElement)Returns all plug-in data mappings from the given element.protected static QualifiedAgentgetQualifiedAgent(Element qaElement)Create a new qualified agent object from the given xml element.static Map<ActivityConstants.ActivityModelEntityType,List<String>>getSeparatedClassPath(Element cpElement)protected static URI[]getURIs(Element urisElement)Create a new array of URIs from the given XML element.static Map<String,String>getUserAttributes(Element uasElement)Returns all user attributes in the given user attribute container. 
 - 
 
- 
- 
Method Detail
- 
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 
PluginDataContainerused 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
 
 
 - 
 
 -