Class XMLImportTools
java.lang.Object
de.aristaflow.adept2.model.common.XMLImportTools
- Direct Known Subclasses:
ProcessModelXMLImportTools
These methods will be used by both, the activity model and the process model.
- Author:
- Marco Waimer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivityConfigurationgetActivityConfiguration(CommonModelFactory cmf, Element confElement) getChangeableActivityConfiguration(CommonModelFactory cmf, Element confElement) 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.getSeparatedClassPath(Element cpElement) protected static URI[]Create a new array of URIs from the given XML element.getUserAttributes(Element uasElement) Returns all user attributes in the given user attribute container.
-
Constructor Details
-
XMLImportTools
public XMLImportTools()
-
-
Method Details
-
getConfiguration
- 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
- 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
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
Returns all user attributes in the given user attribute container.- Parameters:
uasElement- A user attributes element.- Returns:
- A map containing all user attributes.
-
getQualifiedAgent
Create a new qualified agent object from the given xml element.- Parameters:
qaElement-- Returns:
- A new qualified agent
-
getURIs
Create a new array of URIs from the given XML element.- Parameters:
urisElement-- Returns:
- A new array of URIs
-