org.obe.xpdl.model.application
Class Application

java.lang.Object
  extended byorg.obe.util.AbstractBean
      extended byorg.obe.xpdl.model.misc.AbstractWFElement
          extended byorg.obe.xpdl.model.application.Application
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, Invokable, java.io.Serializable

public final class Application
extends AbstractWFElement
implements Invokable

Implementation of the XPDL Application element.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static java.lang.String EXTERNAL_REFERENCE
           
static java.lang.String FORMAL_PARAMETER
           
 
Constructor Summary
Application()
           
Application(java.lang.String id, java.lang.String name)
          Construct a new application.
 
Method Summary
 void accept(PackageVisitor visitor)
           
 void add(FormalParameter formalParameter)
           
 ExternalReference getExternalReference()
          Get an ExternalReference for the tool.
 FormalParameter[] getFormalParameter()
          Return a List of all FormalParameters for the tool.
 FormalParameter getFormalParameter(int i)
           
 FormalParameter getFormalParameter(java.lang.String id)
           
 void remove(FormalParameter formalParameter)
           
 void setExternalReference(ExternalReference externalReference)
          Set an ExternalReference for the tool.
 void setFormalParameter(FormalParameter[] formalParameters)
           
 void setFormalParameter(int i, FormalParameter formalParameter)
           
 java.lang.String toString()
           
 
Methods inherited from class org.obe.xpdl.model.misc.AbstractWFElement
createExtendedAttributes, equals, getDescription, getExtendedAttributes, getId, getName, hashCode, setDescription, setExtendedAttributes, setId, setName
 
Methods inherited from class org.obe.util.AbstractBean
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clear, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, get, get, getBeanContext, getListModel, hasChangeListeners, hasVetoListeners, remove, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, set, set, setBeanContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EXTERNAL_REFERENCE

public static final java.lang.String EXTERNAL_REFERENCE
See Also:
Constant Field Values

FORMAL_PARAMETER

public static final java.lang.String FORMAL_PARAMETER
See Also:
Constant Field Values
Constructor Detail

Application

public Application()

Application

public Application(java.lang.String id,
                   java.lang.String name)
Construct a new application.

Parameters:
id - The application id
name - The application name
Method Detail

accept

public void accept(PackageVisitor visitor)

add

public void add(FormalParameter formalParameter)
         throws java.beans.PropertyVetoException
Specified by:
add in interface Invokable
Throws:
java.beans.PropertyVetoException

remove

public void remove(FormalParameter formalParameter)
            throws java.beans.PropertyVetoException
Specified by:
remove in interface Invokable
Throws:
java.beans.PropertyVetoException

getFormalParameter

public FormalParameter[] getFormalParameter()
Return a List of all FormalParameters for the tool.

Specified by:
getFormalParameter in interface Invokable
Returns:
A List of FormalParameter objects

getFormalParameter

public FormalParameter getFormalParameter(int i)
Specified by:
getFormalParameter in interface Invokable

getFormalParameter

public FormalParameter getFormalParameter(java.lang.String id)
Specified by:
getFormalParameter in interface Invokable

setFormalParameter

public void setFormalParameter(FormalParameter[] formalParameters)
                        throws java.beans.PropertyVetoException
Specified by:
setFormalParameter in interface Invokable
Throws:
java.beans.PropertyVetoException

setFormalParameter

public void setFormalParameter(int i,
                               FormalParameter formalParameter)
                        throws java.beans.PropertyVetoException
Specified by:
setFormalParameter in interface Invokable
Throws:
java.beans.PropertyVetoException

getExternalReference

public ExternalReference getExternalReference()
Get an ExternalReference for the tool. This may be used if the tool is accessible through a URI (for example, a web service). This method may return null if the formal parameters are specified.

Returns:
The ExternalReference

setExternalReference

public void setExternalReference(ExternalReference externalReference)
Set an ExternalReference for the tool. This may be used if the tool is accessible through a URI (for example, a web service).

Parameters:
externalReference - The ExternalReference

toString

public java.lang.String toString()
Overrides:
toString in class AbstractWFElement


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.