public class XMLExportTools
extends java.lang.Object
| Constructor and Description |
|---|
XMLExportTools() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.w3c.dom.Element |
addElement(org.w3c.dom.Document document,
java.lang.String ns,
org.w3c.dom.Element parent,
java.lang.String type)
Create new child Element without data.
|
protected static org.w3c.dom.Element |
addElement(org.w3c.dom.Document document,
java.lang.String ns,
org.w3c.dom.Element parent,
java.lang.String type,
java.lang.String textContent)
Create new child Element with text data.
|
protected static org.w3c.dom.Element |
addElement(org.w3c.dom.Document document,
java.lang.String ns,
org.w3c.dom.Element parent,
java.lang.String type,
java.lang.String textContent,
ActivityConstants.ActivityModelEntityType entityType)
Create new child Element with text data.
|
protected static org.w3c.dom.Element |
addElementNS(org.w3c.dom.Document document,
org.w3c.dom.Element parent,
java.lang.String type,
java.lang.String textContent)
Create new child Element with text data.
|
static org.w3c.dom.Element |
createClassPathElement(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String parent,
java.util.List<java.lang.String> classPaths) |
static org.w3c.dom.Element |
createConfigurationDescriptionElement(org.w3c.dom.Document doc,
java.lang.String ns,
ConfigurationDescription confDesc,
java.lang.String ecd,
java.lang.String operation) |
static org.w3c.dom.Element |
createConfigurationElement(org.w3c.dom.Document doc,
java.lang.String ns,
Configuration conf,
java.lang.String type,
java.lang.String ecd,
java.lang.String operation)
Create an XML element for the given configuration.
|
static org.w3c.dom.Element |
createConfigurationEntryElement(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String name,
ConfigurationDescription.ConfigurationEntry confEntry)
Despite the name implies, this creates an entry for a configuration description!
|
static org.w3c.dom.Element |
createEBPInstanceReferenceElement(org.w3c.dom.Document document,
java.lang.String ns,
EBPInstanceReference ebpIR,
boolean namespaceAware)
Creates an ebp instance reference element, based on the given ebp instance
reference object.
|
static org.w3c.dom.Element |
createECPElement(org.w3c.dom.Document document,
java.lang.String ns,
ExecutionControlProperties executionControlProperties,
ActivityConstants.ActivityModelEntityType entityType)
Create an XML element for the given execution control properties.
|
static org.w3c.dom.Element |
createExecutionControlPropertiesElement(org.w3c.dom.Document document,
java.lang.String ns,
ExecutionControlProperties executionControlProperties)
Create an XML element for the given execution control properties.
|
static org.w3c.dom.Element |
createPluginDataContainerElement(org.w3c.dom.Document doc,
java.lang.String ns,
PluginDataContainer pdc)
Creates a new container element for plugin data and
fills it with the given plugin data.
|
static org.w3c.dom.Element |
createSeparatedClassPathElement(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String parent,
java.util.Map<ActivityConstants.ActivityModelEntityType,java.util.List<java.lang.String>> map) |
protected static org.w3c.dom.Element |
createURIArrayElement(org.w3c.dom.Document document,
java.lang.String ns,
java.net.URI[] arrayOfURIs,
java.lang.String parentElementName,
boolean namespaceAware)
Creates an element representing an array of URIs, based on the given array.
|
static org.w3c.dom.Element |
createUserAttributesElement(org.w3c.dom.Document document,
java.lang.String ns,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Creates a new container element for user attributes and fills it with the
given user attributes.
|
protected static void |
fillQualifiedAgentElement(org.w3c.dom.Document document,
java.lang.String ns,
org.w3c.dom.Element qaElement,
QualifiedAgent qa,
boolean ignoreUserSessionId)
Creates an element representing a qualified agent, based on the given agent
|
static void |
fillUserAttributesElement(org.w3c.dom.Document document,
java.lang.String ns,
java.util.Map<java.lang.String,java.lang.String> userAttributes,
org.w3c.dom.Element uasElement,
boolean namespaceAware)
Fill the given XML element with values of the given user attributes.
|
static java.util.Set<java.lang.String> |
sortedKeySet(java.util.Set<java.lang.String> keySet)
Sort a given set of map keys.
|
public static org.w3c.dom.Element createConfigurationElement(org.w3c.dom.Document doc,
java.lang.String ns,
Configuration conf,
java.lang.String type,
java.lang.String ecd,
java.lang.String operation)
doc - ns - The namespace the configuration should be used in.conf - The changeable configuration.type - The type of the configuration, i.e. test.ecd - The name of the executable component description. This optional
attribute will be used for the configuration set XML.operation - The name of the operation. This optional attribute will be
used for the configuration set XML.Configuration.public static org.w3c.dom.Element createConfigurationDescriptionElement(org.w3c.dom.Document doc,
java.lang.String ns,
ConfigurationDescription confDesc,
java.lang.String ecd,
java.lang.String operation)
doc - ns - The namespace the element should be created in.confDesc - The configuration description.ecd - The name of the executable component description. This optional
attribute will be used for the configuration set XML.operation - The name of the operation. This optional attribute will be
used for the configuration set XML.ConfigurationDescription.public static org.w3c.dom.Element createConfigurationEntryElement(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String name,
ConfigurationDescription.ConfigurationEntry confEntry)
doc - ns - The namespace the element should be created in.name - The name of the configuration entry.confEntry - The configuration entry, could be null.public static org.w3c.dom.Element createClassPathElement(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String parent,
java.util.List<java.lang.String> classPaths)
doc - ns - The namespace the element should be created in.parent - The name of the parent element.classPaths - The list of class path entries.public static org.w3c.dom.Element createSeparatedClassPathElement(org.w3c.dom.Document doc,
java.lang.String ns,
java.lang.String parent,
java.util.Map<ActivityConstants.ActivityModelEntityType,java.util.List<java.lang.String>> map)
doc - ns - The namespace the element should be created in.parent - The name of the parent element.map - The separated class path entries.public static org.w3c.dom.Element createExecutionControlPropertiesElement(org.w3c.dom.Document document,
java.lang.String ns,
ExecutionControlProperties executionControlProperties)
document - ns - The namespace the element should be created in.executionControlProperties - public static org.w3c.dom.Element createECPElement(org.w3c.dom.Document document,
java.lang.String ns,
ExecutionControlProperties executionControlProperties,
ActivityConstants.ActivityModelEntityType entityType)
document - ns - The namespace the element should be created in.executionControlProperties - entityType - The origin entity type of the attribute.public static org.w3c.dom.Element createUserAttributesElement(org.w3c.dom.Document document,
java.lang.String ns,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
document - ns - The namespace the element should be created in.userAttributes - The user attributes.public static void fillUserAttributesElement(org.w3c.dom.Document document,
java.lang.String ns,
java.util.Map<java.lang.String,java.lang.String> userAttributes,
org.w3c.dom.Element uasElement,
boolean namespaceAware)
document - ns - The namespace the element should be created in.userAttributes - The user attributes.uasElement - namespaceAware - Whether the elements should be created name space
aware.public static org.w3c.dom.Element createPluginDataContainerElement(org.w3c.dom.Document doc,
java.lang.String ns,
PluginDataContainer pdc)
doc - ns - The namespace the element should be created in.pdc - protected static void fillQualifiedAgentElement(org.w3c.dom.Document document,
java.lang.String ns,
org.w3c.dom.Element qaElement,
QualifiedAgent qa,
boolean ignoreUserSessionId)
document - ns - The namespace the element should be created in.qaElement - qa - ignoreUserSessionId - Whether to ignore the user session ID of the designated agent even
if it is set.public static org.w3c.dom.Element createEBPInstanceReferenceElement(org.w3c.dom.Document document,
java.lang.String ns,
EBPInstanceReference ebpIR,
boolean namespaceAware)
document - ns - The namespace the element should be created in.ebpIR - namespaceAware - Whether the element should be created name space
awareprotected static org.w3c.dom.Element createURIArrayElement(org.w3c.dom.Document document,
java.lang.String ns,
java.net.URI[] arrayOfURIs,
java.lang.String parentElementName,
boolean namespaceAware)
document - ns - The namespace the element should be created in.arrayOfURIs - parentElementName - namespaceAware - Whether the element should be created name space
awarepublic static java.util.Set<java.lang.String> sortedKeySet(java.util.Set<java.lang.String> keySet)
keySet - a set of map keysprotected static org.w3c.dom.Element addElement(org.w3c.dom.Document document,
java.lang.String ns,
org.w3c.dom.Element parent,
java.lang.String type)
document - ns - The namespace the element should be created in.parent - Element to which the created Element is appended to as a childtype - type of the created Elementprotected static org.w3c.dom.Element addElement(org.w3c.dom.Document document,
java.lang.String ns,
org.w3c.dom.Element parent,
java.lang.String type,
java.lang.String textContent)
document - ns - The namespace the element should be created in.parent - Element to which the created Element is appended to as a childtype - type of the created ElementtextContent - content of the elementprotected static org.w3c.dom.Element addElement(org.w3c.dom.Document document,
java.lang.String ns,
org.w3c.dom.Element parent,
java.lang.String type,
java.lang.String textContent,
ActivityConstants.ActivityModelEntityType entityType)
document - ns - The namespace the element should be created in.parent - Element to which the created Element is appended to as a childtype - type of the created ElementtextContent - content of the elemententityType - The origin entity type of the attribute.protected static org.w3c.dom.Element addElementNS(org.w3c.dom.Document document,
org.w3c.dom.Element parent,
java.lang.String type,
java.lang.String textContent)
document - parent - Element to which the created Element is appended to as a childtype - type of the created ElementtextContent - content of the element