com.jbbres.lib.actions.files
Class ActionsExecutableFile

java.lang.Object
  extended by java.io.File
      extended by com.jbbres.lib.file.MimeFile
          extended by com.jbbres.lib.file.formats.AbstractContentFile<java.io.File[]>
              extended by com.jbbres.lib.file.formats.ZipFile
                  extended by com.jbbres.lib.actions.files.ActionsWorkflowFile
                      extended by com.jbbres.lib.actions.files.ActionsExecutableFile
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.io.File>

public class ActionsExecutableFile
extends ActionsWorkflowFile

Represents an Action(s) executable workflow file (.wexe).

Action(s) executable workflow files are similar to workflow files (.wkfl). 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.

Since:
1.0.0
Version:
1.0.0
Author:
Jean-Baptiste Bres
See Also:
ActionsWorkflowFile, Serialized Form

Field 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
ActionsExecutableFile(java.io.File file)
          Creates a new ActionsExecutableFile instance by converting the pathname string of the given file into an abstract pathname.
ActionsExecutableFile(java.io.File parent, java.lang.String child)
          Creates a new ActionsExecutableFile instance from a parent abstract pathname and a child pathname string.
ActionsExecutableFile(java.lang.String pathname)
          Creates a new ActionsExecutableFile instance by converting the given pathname string into an abstract pathname.
ActionsExecutableFile(java.lang.String parent, java.lang.String child)
          Creates a new ActionsExecutableFile instance from a parent pathname string and a child pathname string.
ActionsExecutableFile(java.net.URI uri)
          Creates a new ActionsExecutableFile instance by converting the given file: URI into an abstract pathname.
 
Method Summary
static com.jbbres.lib.file.MimeType getStaticMimeType()
          Returns the MimeType object associated to this type of file.
 
Methods inherited from class com.jbbres.lib.actions.files.ActionsWorkflowFile
addProgressListener, fireProgressFinish, fireProgressStart, fireProgressUpdate, getMimeType, getWorkflow, parse, removeProgressListener
 
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

MIME_DESCRIPTION

public static final java.lang.String MIME_DESCRIPTION
The MIME type description


MIME_EXTENSION

public static final java.lang.String MIME_EXTENSION
The file extension.

See Also:
Constant Field Values

MIME_TYPE

public static final java.lang.String MIME_TYPE
The MIME type.

See Also:
Constant Field Values
Constructor Detail

ActionsExecutableFile

public ActionsExecutableFile(java.io.File file)
Creates a new ActionsExecutableFile 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.

Parameters:
file - - a file.

ActionsExecutableFile

public ActionsExecutableFile(java.net.URI uri)
Creates a new ActionsExecutableFile instance by converting the given file: URI into an abstract pathname.

The exact form of a file: URI is system-dependent, hence the transformation performed by this constructor is also system-dependent.

For a given abstract pathname f it is guaranteed that
new File( f.toURI()).equals( f.getAbsoluteFile())
so long as the original abstract pathname, the URI, and the new abstract pathname are all created in (possibly different invocations of) the same Java virtual machine. This relationship typically does not hold, however, when a file: URI that is created in a virtual machine on one operating system is converted into an abstract pathname in a virtual machine on a different operating system.

Parameters:
uri - - - An absolute, hierarchical URI with a scheme equal to "file", a non-empty path component, and undefined authority, query, and fragment components

ActionsExecutableFile

public ActionsExecutableFile(java.lang.String parent,
                             java.lang.String child)
Creates a new ActionsExecutableFile instance from a parent pathname string and a child pathname string.

If parent is null then the new File instance is created as if by invoking the single-argument File constructor on the given child pathname string.

Otherwise the parent pathname string is taken to denote a directory, and the child pathname string is taken to denote either a directory or a file. If the child pathname string is absolute then it is converted into a relative pathname in a system-dependent way. If parent is the empty string then the new File instance is created by converting child into an abstract pathname and resolving the result against a system-dependent default directory. Otherwise each pathname string is converted into an abstract pathname and the child abstract pathname is resolved against the parent.

Parameters:
parent - - The parent pathname string
child - - The child pathname string

ActionsExecutableFile

public ActionsExecutableFile(java.io.File parent,
                             java.lang.String child)
Creates a new ActionsExecutableFile instance from a parent abstract pathname and a child pathname string.

If parent is null then the new File instance is created as if by invoking the single-argument File constructor on the given child pathname string.

Otherwise the parent abstract pathname is taken to denote a directory, and the child pathname string is taken to denote either a directory or a file. If the child pathname string is absolute then it is converted into a relative pathname in a system-dependent way. If parent is the empty abstract pathname then the new File instance is created by converting child into an abstract pathname and resolving the result against a system-dependent default directory. Otherwise each pathname string is converted into an abstract pathname and the child abstract pathname is resolved against the parent.

Parameters:
parent - - The parent abstract pathname
child - - The child pathname string

ActionsExecutableFile

public ActionsExecutableFile(java.lang.String pathname)
Creates a new ActionsExecutableFile 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.

Parameters:
pathname - - A pathname string
Method Detail

getStaticMimeType

public static com.jbbres.lib.file.MimeType getStaticMimeType()
Returns the MimeType object associated to this type of file.

Returns:
the MimeType associated to this type of file.


To file bugs or suggest feature enhancements, visit the app.jbbres.com Bug Reporter website.

Additional documentation available online at http://app.jbbres.com/actions/developers.

Copyright � 2009-2011 app.jbbres.com. All Rights Reserved.