|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.File com.jbbres.lib.file.MimeFile com.jbbres.lib.file.formats.AbstractContentFile<java.io.File[]> com.jbbres.lib.file.formats.ZipFile com.jbbres.lib.actions.files.ActionsWorkflowFile
public class ActionsWorkflowFile
Represents an Action(s) workflow file (.wkfl).
The workflow stored into the file can be accessed by calling the
getWorkflow()
method. The reflective method:
parse(Workflow)
stores the given workflow into the file, overriden
any previous data.
[Note: the following description is given for information only and might
change without notice. If you are willing to interact with workflow files,
uses getWorkflow()
and parse(Workflow)
.]
The workflow file is a ZIP file containing the following files:
Element
objects
composing the workflow. element#
where #
is the element number (integer).
Numbers start at 0 and increament without missing value:
element0
, element1
, element2
...CopyFiles
action, the entry associated will be: Variable
objects in creation order, then Action
objects, in workflow order.
So, if for example a workflow is composed of 2 variables and 6 actions,
element0
and element1
will contains the full class
names of the two variables, and element2
to
element5
will contains the full class name of the actions,
element2
being the first action in the workflow,
element3
the second etc.variable.instanceName.element#
that store the instance name of
the variable object associated to element#
.Properties
object
associated to the element.Action(s) workflow files are similar to executable workflow files (.wexe). They formats are exactly the same. The only difference is in the way that Action(s) process them when it receives on the them as an argument:
ActionsExecutableFile
extends java.io.File
and
inherits all its functionalities.
Release Notes:
v1.1.0:
v1.1.1:
ActionsExecutableFile
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
MIME_DESCRIPTION
The MIME type description. |
static java.lang.String |
MIME_EXTENSION
The file extension. |
static java.lang.String |
MIME_TYPE
The MIME type. |
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
ActionsWorkflowFile(java.io.File file)
Creates a new ActionsWorkflowFile instance by converting the
pathname string of the given file into an abstract pathname. |
|
ActionsWorkflowFile(java.io.File parent,
java.lang.String child)
Creates a new ActionsWorkflowFile instance from a parent
abstract pathname and a child pathname string. |
|
ActionsWorkflowFile(java.lang.String pathname)
Creates a new ActionsWorkflowFile instance by converting the
given pathname string into an abstract pathname. |
|
ActionsWorkflowFile(java.lang.String parent,
java.lang.String child)
Creates a new ActionsWorkflowFile instance from a parent
pathname string and a child pathname string. |
|
ActionsWorkflowFile(java.net.URI uri)
Creates a new ActionsWorkflowFile instance by converting the
given file: URI into an abstract pathname. |
Method Summary | |
---|---|
void |
addProgressListener(com.jbbres.lib.event.ProgressListener listener)
Adds a progression listener. |
void |
fireProgressFinish(java.lang.String text)
Calls the progressFinish(ProgressEvent) methods of all the
listeners. |
void |
fireProgressStart(java.lang.String text)
Calls the progressStart(ProgressEvent) methods of all the
listeners. |
void |
fireProgressUpdate(int value,
int min,
int max,
java.lang.String text)
Calls the progressUpdate(ProgressEvent) methods of all the
listeners. |
com.jbbres.lib.file.MimeType |
getMimeType()
|
static com.jbbres.lib.file.MimeType |
getStaticMimeType()
Returns the MimeType object associated to this type of file. |
Workflow |
getWorkflow()
Returns a Workflow instance of the workflow stored in the file. |
void |
parse(Workflow workflow)
Parses the given workflow and stores it in the file. |
void |
removeProgressListener(com.jbbres.lib.event.ProgressListener listener)
Removes a progression listener. |
Methods inherited from class com.jbbres.lib.file.formats.ZipFile |
---|
getContent, parse |
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MIME_DESCRIPTION
public static final java.lang.String MIME_EXTENSION
public static final java.lang.String MIME_TYPE
Constructor Detail |
---|
public ActionsWorkflowFile(java.io.File file)
ActionsWorkflowFile
instance by converting the
pathname string of the given file into an abstract pathname. If the given
string is the empty string, then the result is the empty abstract
pathname.
file
- - A filepublic ActionsWorkflowFile(java.net.URI uri)
ActionsWorkflowFile
instance by converting the
given file: URI into an abstract pathname. new File( f.toURI()).equals( f.getAbsoluteFile())
uri
- - An absolute, hierarchical URI with a scheme equal to "file",
a non-empty path component, and undefined authority, query,
and fragment componentspublic ActionsWorkflowFile(java.lang.String parent, java.lang.String child)
ActionsWorkflowFile
instance from a parent
pathname string and a child pathname string.
parent
- - The parent pathname stringchild
- - The child pathname stringpublic ActionsWorkflowFile(java.io.File parent, java.lang.String child)
ActionsWorkflowFile
instance from a parent
abstract pathname and a child pathname string.
parent
- - The parent abstract pathnamechild
- - The child pathname stringpublic ActionsWorkflowFile(java.lang.String pathname)
ActionsWorkflowFile
instance by converting the
given pathname string into an abstract pathname. If the given string is
the empty string, then the result is the empty abstract pathname.
pathname
- - A pathname stringMethod Detail |
---|
public static com.jbbres.lib.file.MimeType getStaticMimeType()
MimeType
object associated to this type of file.
MimeType
associated to this type of file.public Workflow getWorkflow() throws java.io.FileNotFoundException, java.io.IOException, ElementNotFoundException
Workflow
instance of the workflow stored in the file.
Workflow
instance of the workflow stored in the file.
java.io.FileNotFoundException
- - Signals that the file cannot be found
java.io.IOException
- - Signals that an I/O exception has occurred.
ElementNotFoundException
- - Signals that one of the element of the workflow cannot be
found within the user element library.public void parse(Workflow workflow)
workflow
- - workflow to be parsed and stored.public void addProgressListener(com.jbbres.lib.event.ProgressListener listener)
listener
- the listenerpublic void removeProgressListener(com.jbbres.lib.event.ProgressListener listener)
listener
- the listenerpublic void fireProgressStart(java.lang.String text)
progressStart(ProgressEvent)
methods of all the
listeners.
public void fireProgressUpdate(int value, int min, int max, java.lang.String text)
progressUpdate(ProgressEvent)
methods of all the
listeners.
value
- - the current value of the progressiommin
- - the minimum value of the progressionmax
- - the maximum value of the progressionpublic void fireProgressFinish(java.lang.String text)
progressFinish(ProgressEvent)
methods of all the
listeners.
public com.jbbres.lib.file.MimeType getMimeType()
getMimeType
in class com.jbbres.lib.file.formats.ZipFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |