| Package | Description |
|---|---|
| de.aristaflow.adept2.extensions.datatypes | |
| de.aristaflow.adept2.model.processmodel.xml |
The xml packages provides a generic import and export functionality for all components implementing the common ADEPT2 processmodel interfaces and just requires an implementation of the ProcessModelFactory.
|
| de.aristaflow.adept2.util.xml |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
AbstractXmlBasedUdt.loadFromStream(java.io.InputStream valueAsStream)
Loads and data from the designated
InputStream by parsing the
corresponding XML. |
java.lang.String |
ListUdt.loadFromStream(java.io.InputStream in) |
java.lang.String |
LocalisationUdt.loadFromStream(java.io.InputStream in) |
void |
WJPContainer.loadFromStream(java.io.InputStream in)
Deprecated.
Loads the data of the WJP container from the given input stream.
|
void |
WJPSubtable.loadFromStream(java.io.InputStream in)
Deprecated.
Loads the data of the WJP subtable from the given input stream.
|
void |
WebFormContainer.loadFromStream(java.io.InputStream in)
Loads the data of the WebForm container from the given input stream.
|
void |
WebFormSubtable.loadFromStream(java.io.InputStream in)
Loads the data of the WebForm subtable from the given input stream.
|
protected void |
AbstractXmlBasedUdt.loadFromUdtValue(UDTValue udtValue)
Loads the data from the designated
UDTValue by parsing the
corresponding XML. |
void |
WJPContainer.loadFromUDTValue(UDTValue udtValue)
Deprecated.
Loads the data of the WJP container from the given
UDTValue. |
void |
WJPSubtable.loadFromUDTValue(UDTValue udtValue)
Deprecated.
Loads the data of the WJP subtable from the given
UDTValue. |
void |
WebFormContainer.loadFromUDTValue(UDTValue udtValue)
Loads the data of the WebForm container from the given
UDTValue. |
void |
WebFormSubtable.loadFromUDTValue(UDTValue udtValue)
Loads the data of the WebForm subtable from the given
UDTValue. |
| Constructor and Description |
|---|
ListUdt(java.io.InputStream stream)
Creates a new list UDT for the designated
InputStream. |
ListUdt(UDTValue value)
Creates a new list UDT for the designated
UDTValue. |
LocalisationUdt(java.io.InputStream stream)
Creates a new localisation UDT for the designated
InputStream. |
LocalisationUdt(UDTValue value)
Creates a new localisation UDT for the designated
UDTValue. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.util.UUID,java.util.UUID> |
ProcessModelXMLImport.getAdhocTemplateMappingFromFile(java.io.File file)
Fetches the adhoc template ID mappings stored in the specified file.
|
static java.util.Map<java.util.UUID,java.util.UUID> |
ProcessModelXMLImport.getBaseTemplateMappingFromFile(java.io.File file)
Fetches the base template ID mappings stored in the specified file.
|
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForAdhocTemplateMapping(java.util.Map<java.util.UUID,java.util.UUID> mapping)
Generates and returns a
Document representing the given adhoc
template id mapping |
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForBaseTemplateMapping(java.util.Map<java.util.UUID,java.util.UUID> mapping)
Generates and returns a
Document representing the given base
template id mapping |
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForEBP(ExecutableBusinessProcess ebp) |
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForEmbeddedTemplateMapping(java.util.Map<java.util.UUID,java.util.UUID> mapping)
Generates and returns a
Document representing the given embedded
template id mapping |
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForInstance(Instance instance)
Creates a DOM document from the instance.
|
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForInstanceLocks(java.util.Map<java.util.UUID,ProcessModelXMLHelperTools.LockDescription> locks)
Generates and returns a
Document for the given instance locks |
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForProcessTypes(java.util.Set<ProcessModelXMLHelperTools.SerialisableProcessType> items)
Generates and returns a
Document representing the given ProcessTypes |
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForTemplate(Template template)
Creates a DOM document from the template.
|
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForTemplateAndStatus(Template template,
TemplateStatus templateStatus)
Returns The corresponding document for a given template and a given template
status.
|
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForTemplateInformations(java.util.Map<java.util.UUID,ProcessModelXMLHelperTools.TemplateInformation> items)
Generates and returns a
Document representing the given TemplateInformations. |
org.w3c.dom.Document |
ProcessModelXMLExport.getDocumentForTemplateLocks(java.util.Map<java.util.UUID,ProcessModelXMLHelperTools.LockDescription> locks)
Generates and returns a
Document for the given template locks |
static java.util.Map<java.util.UUID,java.util.UUID> |
ProcessModelXMLImport.getEmbeddedTemplateMappingFromFile(java.io.File file)
Fetches the embedded template ID mappings stored in the specified file.
|
ExecutableInstance |
ProcessModelXMLImport.getExecutableInstanceFromFile(ExecutionFactory executionFactory,
java.io.File file)
Reads a process instance from the given file and determines the file type.
|
ExecutableInstance |
ProcessModelXMLImport.getExecutableInstanceFromFile(ExecutionFactory executionFactory,
java.io.File file,
Template template)
Reads a process instance from the given file and determines the file type.
|
ExecutableInstance |
ProcessModelXMLImport.getExecutableInstanceFromStream(ExecutionFactory executionFactory,
java.io.InputStream stream,
Template template)
Reads a process instance from the designated input stream.
|
java.io.InputStream |
ProcessModelXMLExport.getInputStreamForInstance(Instance instance)
Returns The corresponding stream for a given instance
|
java.io.InputStream |
ProcessModelXMLExport.getInputStreamForInstance(Instance instance,
boolean intend)
Returns The corresponding stream for a given instance
|
java.io.InputStream |
ProcessModelXMLExport.getInputStreamForTemplate(Template template)
Returns The corresponding stream for a given template
|
java.io.InputStream |
ProcessModelXMLExport.getInputStreamForTemplate(Template template,
boolean intend)
Returns The corresponding stream for a given template
|
java.io.InputStream |
ProcessModelXMLExport.getInputStreamForTemplateAndStatus(Template template,
TemplateStatus templateStatus)
Returns The corresponding stream for a given template and a given template
status.
|
java.io.InputStream |
ProcessModelXMLExport.getInputStreamForTemplateAndStatus(Template template,
TemplateStatus templateStatus,
boolean intend)
Returns The corresponding stream for a given template and a given template
status.
|
Instance |
ProcessModelXMLImport.getInstanceFromFile(java.io.File file)
Reads a process instance from the given file and determines the file type.
|
Instance |
ProcessModelXMLImport.getInstanceFromFile(java.io.File file,
Template template)
Reads a process instance from the given file and determines the file type.
|
Instance |
ProcessModelXMLImport.getInstanceFromStream(java.io.InputStream inputStream)
Reads a process instance from an input stream.
|
static java.util.Map<java.util.UUID,ProcessModelXMLHelperTools.LockDescription> |
ProcessModelXMLImport.getInstanceLocksFromFile(java.io.File file)
Fetches the current locks stored in the specified file.
|
InstanceStatus |
ProcessModelXMLImport.getInstanceStatusFromInstanceDocument(org.w3c.dom.Document document)
Reads a process instance status from the given.
|
InstanceStatus |
ProcessModelXMLImport.getInstanceStatusFromInstanceFile(java.io.File file)
Reads a process instance status from the given.
|
static java.util.Set<ProcessModelXMLHelperTools.SerialisableProcessType> |
ProcessModelXMLImport.getProcessTypesFromFile(java.io.File file)
Fetches the process types stored in the specified file.
|
Template |
ProcessModelXMLImport.getTemplateFromFile(java.io.File file)
Reads a process template from the given file and determines the file type.
|
Template |
ProcessModelXMLImport.getTemplateFromStream(java.io.InputStream inputStream)
Reads a process template from an input stream.
|
java.util.UUID |
ProcessModelXMLImport.getTemplateIDFromInstanceFile(java.io.File file)
Reads a process instance from the given file and determines the file type.
|
static java.util.Map<java.util.UUID,ProcessModelXMLHelperTools.TemplateInformation> |
ProcessModelXMLImport.getTemplateInformationsFromFile(java.io.File file)
Fetches the template informations stored in the specified file.
|
static java.util.Map<java.util.UUID,ProcessModelXMLHelperTools.LockDescription> |
ProcessModelXMLImport.getTemplateLocksFromFile(java.io.File file)
Fetches the current locks stored in the specified file.
|
TemplateStatus |
ProcessModelXMLImport.getTemplateStatusFromStream(java.io.InputStream inputStream)
Reads the template status from the given template file.
|
TemplateStatus |
ProcessModelXMLImport.getTemplateStatusFromTemplateFile(java.io.File file)
Reads the template status from the given template file.
|
java.lang.String |
ProcessModelXMLExport.getXMLStringForInstance(Instance instance)
Returns the xml code of a given instance as string.
|
java.lang.String |
ProcessModelXMLExport.getXMLStringForInstance(Instance instance,
boolean intend)
Returns the xml code of a given instance as string.
|
java.lang.String |
ProcessModelXMLExport.getXMLStringForTemplate(Template template)
Returns the xml code of a given template as string.
|
java.lang.String |
ProcessModelXMLExport.getXMLStringForTemplate(Template template,
boolean intend)
Returns the xml code of a given template as string.
|
static void |
ProcessModelXMLHelperTools.validateDocument(org.w3c.dom.Document document,
ProcessModelXMLConstants.SchemaType schemaType)
Checks, if a document uses a valid schema.
|
void |
ProcessModelXMLExport.writeAdhocTemplateMappingToFile(java.util.Map<java.util.UUID,java.util.UUID> mapping,
java.io.File file)
Writes the given adhoc template id mapping to the specified file.
|
void |
ProcessModelXMLExport.writeBaseTemplateMappingToFile(java.util.Map<java.util.UUID,java.util.UUID> mapping,
java.io.File file)
Writes the given base template id mapping to the specified file.
|
void |
ProcessModelXMLExport.writeEmbeddedTemplateMappingToFile(java.util.Map<java.util.UUID,java.util.UUID> mapping,
java.io.File file)
Writes the given embedded template id mapping to the specified file.
|
void |
ProcessModelXMLExport.writeExecutableInstanceAndStatusToFile(ExecutableInstance instance,
InstanceStatus instanceStatus,
java.io.File file)
Writes the given instance including its status to the given file.
|
void |
ProcessModelXMLExport.writeExecutableInstanceAndStatusToFile(ExecutableInstance instance,
InstanceStatus instanceStatus,
java.io.File file,
boolean intend)
Writes the given instance including its status to the given file.
|
void |
ProcessModelXMLExport.writeExecutableInstanceAndStatusToFile(ExecutableInstance instance,
InstanceStatus instanceStatus,
java.io.File file,
Template structure)
Writes the given instance including its status to the given file.
|
void |
ProcessModelXMLExport.writeExecutableInstanceAndStatusToFile(ExecutableInstance instance,
InstanceStatus instanceStatus,
java.io.File file,
Template structure,
boolean intend)
Writes the given instance including its status to the given file.
|
void |
ProcessModelXMLExport.writeInstanceAndStatusToFile(Instance instance,
InstanceStatus instanceStatus,
java.io.File file,
boolean storeStructure)
Writes the given instance including its status to the given file.
|
void |
ProcessModelXMLExport.writeInstanceAndStatusToFile(Instance instance,
InstanceStatus instanceStatus,
java.io.File file,
boolean storeStructure,
boolean intend)
Writes the given instance including its status to the given file.
|
void |
ProcessModelXMLExport.writeInstanceLocksToFile(java.util.Map<java.util.UUID,ProcessModelXMLHelperTools.LockDescription> locks,
java.io.File file)
Writes the given instance locks to the specified file.
|
void |
ProcessModelXMLExport.writeInstanceToFile(Instance instance,
java.io.File file)
Writes the given instance to the given file.
|
void |
ProcessModelXMLExport.writeInstanceToFile(Instance instance,
java.io.File file,
boolean intend)
Writes the given instance to the given file.
|
void |
ProcessModelXMLExport.writeProcessTypesToFile(java.util.Set<ProcessModelXMLHelperTools.SerialisableProcessType> items,
java.io.File file)
Writes the given adhoc template id mapping to the specified file.
|
void |
ProcessModelXMLExport.writeTemplateAndStatusToFile(Template template,
TemplateStatus templateStatus,
java.io.File file)
Writes the given template including its status to the given file.
|
void |
ProcessModelXMLExport.writeTemplateAndStatusToFile(Template template,
TemplateStatus templateStatus,
java.io.File file,
boolean intend)
Writes the given template including its status to the given file.
|
void |
ProcessModelXMLExport.writeTemplateInformationsToFile(java.util.Map<java.util.UUID,ProcessModelXMLHelperTools.TemplateInformation> items,
java.io.File file)
Writes the given template informations to the specified file.
|
void |
ProcessModelXMLExport.writeTemplateLocksToFile(java.util.Map<java.util.UUID,ProcessModelXMLHelperTools.LockDescription> locks,
java.io.File file)
Writes the given template locks to the specified file.
|
void |
ProcessModelXMLExport.writeTemplateToFile(Template template,
java.io.File file)
Writes the given template to the given file.
|
void |
ProcessModelXMLExport.writeTemplateToFile(Template template,
java.io.File file,
boolean intend)
Writes the given template to the given file.
|
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.Document |
XMLHelperTools.getDocumentFromFile(java.io.File file,
javax.xml.validation.Schema schema,
org.xml.sax.ErrorHandler errorHandler)
Read a Document from a stream.
|
static org.w3c.dom.Document |
XMLHelperTools.getDocumentFromStream(java.io.InputStream inputStream)
Parse a Stream and converts it to a Document
|
static org.w3c.dom.Document |
XMLHelperTools.getDocumentFromStream(java.io.InputStream inputStream,
javax.xml.validation.Schema schema,
org.xml.sax.ErrorHandler errorHandler,
boolean nsAware)
Read a Document from a file.
|
static org.w3c.dom.Document |
XMLHelperTools.getDocumentFromString(java.lang.String string,
javax.xml.validation.Schema schema)
Parse a string and converts it to a Document.
|
static void |
XMLHelperTools.validateAndPrintDoc(org.w3c.dom.Node node,
javax.xml.validation.Schema schema)
Checks, if a node uses a valid schema.
|
static void |
XMLHelperTools.validateDocument(org.w3c.dom.Node node,
javax.xml.validation.Schema schema)
Checks, if a node uses a valid schema.
|
static void |
XMLHelperTools.validateStream(java.io.InputStream is,
javax.xml.validation.Schema schema)
Checks, if a node uses a valid schema.
|
static void |
XMLHelperTools.writeDocumentToFile(org.w3c.dom.Node node,
java.io.File file,
javax.xml.validation.Schema schema)
Exports a DOM node to a file, validates the node before the export, if a schema type is
provided.
|
static void |
XMLHelperTools.writeDocumentToFile(org.w3c.dom.Node node,
java.io.File file,
javax.xml.validation.Schema schema,
boolean intend)
Exports a DOM node to a file, validates the node before the export, if a schema type is
provided.
|