org.obe.xpdl.model.misc
Class ResourceContainer

java.lang.Object
  extended byorg.obe.util.AbstractBean
      extended byorg.obe.xpdl.model.misc.AbstractWFElement
          extended byorg.obe.xpdl.model.misc.ResourceContainer
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, CalendarRef, java.io.Serializable
Direct Known Subclasses:
WorkflowProcess, XPDLPackage

public abstract class ResourceContainer
extends AbstractWFElement
implements CalendarRef

Abstract container for resources common to XPDLPackage and WorkflowProcess.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static java.lang.String APPLICATION
           
static java.lang.String ASSIGNMENT_STRATEGY
           
static java.lang.String CALENDAR
           
static java.lang.String DATA_FIELD
           
protected static Application[] EMPTY_APPLICATION
           
protected static DataField[] EMPTY_DATA_FIELD
           
protected static Participant[] EMPTY_PARTICIPANT
           
static java.lang.String PARTICIPANT
           
static java.lang.String REDEFINABLE_HEADER
           
 
Constructor Summary
protected ResourceContainer(java.lang.String[] propertyNames, java.lang.Object[] initalValues)
           
protected ResourceContainer(java.lang.String[] propertyNames, java.lang.Object[] initalValues, java.lang.String id, java.lang.String name)
           
 
Method Summary
protected  void accept(PackageVisitor visitor)
           
 void add(Application application)
           
 void add(DataField dataField)
           
 void add(Participant participant)
           
 Application[] getApplication()
           
 Application getApplication(int i)
           
 Application getApplication(java.lang.String id)
           
 AssignmentStrategyDef getAssignmentStrategy()
          Returns the work item assignment strategy.
 java.lang.String getCalendar()
           
 DataField[] getDataField()
           
 DataField getDataField(int i)
           
 DataField getDataField(java.lang.String id)
           
 Participant[] getParticipant()
           
 Participant getParticipant(int i)
           
 Participant getParticipant(java.lang.String id)
           
 RedefinableHeader getRedefinableHeader()
          Get the RedefinableHeader.
 void remove(Application application)
           
 void remove(DataField dataField)
           
 void remove(Participant participant)
           
 void setApplication(Application[] applications)
           
 void setApplication(int i, Application application)
           
 void setAssignmentStrategy(AssignmentStrategyDef strategy)
          Sets the work item assignment strategy.
 void setCalendar(java.lang.String calendar)
           
 void setDataField(DataField[] dataFields)
           
 void setDataField(int i, DataField dataField)
           
 void setParticipant(int i, Participant participant)
           
 void setParticipant(Participant[] participants)
           
 void setRedefinableHeader(RedefinableHeader header)
          Set the RedefinableHeader.
 
Methods inherited from class org.obe.xpdl.model.misc.AbstractWFElement
createExtendedAttributes, equals, getDescription, getExtendedAttributes, getId, getName, hashCode, setDescription, setExtendedAttributes, setId, setName, toString
 
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

APPLICATION

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

ASSIGNMENT_STRATEGY

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

CALENDAR

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

DATA_FIELD

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

PARTICIPANT

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

REDEFINABLE_HEADER

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

EMPTY_APPLICATION

protected static final Application[] EMPTY_APPLICATION

EMPTY_DATA_FIELD

protected static final DataField[] EMPTY_DATA_FIELD

EMPTY_PARTICIPANT

protected static final Participant[] EMPTY_PARTICIPANT
Constructor Detail

ResourceContainer

protected ResourceContainer(java.lang.String[] propertyNames,
                            java.lang.Object[] initalValues)

ResourceContainer

protected ResourceContainer(java.lang.String[] propertyNames,
                            java.lang.Object[] initalValues,
                            java.lang.String id,
                            java.lang.String name)
Method Detail

accept

protected void accept(PackageVisitor visitor)

add

public final void add(Application application)
               throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

public final void remove(Application application)
                  throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getApplication

public final Application[] getApplication()

getApplication

public final Application getApplication(int i)

getApplication

public final Application getApplication(java.lang.String id)

setApplication

public final void setApplication(Application[] applications)
                          throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setApplication

public final void setApplication(int i,
                                 Application application)
                          throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getAssignmentStrategy

public final AssignmentStrategyDef getAssignmentStrategy()
Returns the work item assignment strategy.

Returns:
Assignment strategy definition, which must have a matching implementation registered in the AssignmentStrategyRepository.

setAssignmentStrategy

public final void setAssignmentStrategy(AssignmentStrategyDef strategy)
Sets the work item assignment strategy. This is an OBE XPDL-1.0 extension.

Parameters:
strategy - Assignment strategy definition, which must have a matching implementation registered in the AssignmentStrategyRepository.

getCalendar

public final java.lang.String getCalendar()
Specified by:
getCalendar in interface CalendarRef

setCalendar

public final void setCalendar(java.lang.String calendar)
Specified by:
setCalendar in interface CalendarRef

add

public final void add(DataField dataField)
               throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

public final void remove(DataField dataField)
                  throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getDataField

public final DataField[] getDataField()

getDataField

public final DataField getDataField(int i)

getDataField

public final DataField getDataField(java.lang.String id)

setDataField

public final void setDataField(DataField[] dataFields)
                        throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setDataField

public final void setDataField(int i,
                               DataField dataField)
                        throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

add

public final void add(Participant participant)
               throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

public final void remove(Participant participant)
                  throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getParticipant

public final Participant[] getParticipant()

getParticipant

public final Participant getParticipant(int i)

getParticipant

public final Participant getParticipant(java.lang.String id)

setParticipant

public final void setParticipant(Participant[] participants)
                          throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setParticipant

public final void setParticipant(int i,
                                 Participant participant)
                          throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getRedefinableHeader

public final RedefinableHeader getRedefinableHeader()
Get the RedefinableHeader.

Returns:
The RedefinableHeader

setRedefinableHeader

public final void setRedefinableHeader(RedefinableHeader header)
Set the RedefinableHeader.

Parameters:
header - The RedefinableHeader


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