org.obe.xpdl.model.pkg
Class XPDLPackage

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

public final class XPDLPackage
extends ResourceContainer

A XPDLPackage is the top-level element in an XPDL document.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static java.lang.String COMPLETION_STRATEGY
           
static java.lang.String CONFORMANCE_CLASS
           
static java.lang.String EXTERNAL_PACKAGE
           
static java.lang.String NAMESPACES
           
static java.lang.String PACKAGE_HEADER
           
static java.lang.String PACKAGE_ID
           
static java.lang.String SCRIPT
           
static java.lang.String TYPE_DECLARATION
           
static java.lang.String WORKFLOW_PROCESS
           
 
Fields inherited from class org.obe.xpdl.model.misc.ResourceContainer
APPLICATION, ASSIGNMENT_STRATEGY, CALENDAR, DATA_FIELD, EMPTY_APPLICATION, EMPTY_DATA_FIELD, EMPTY_PARTICIPANT, PARTICIPANT, REDEFINABLE_HEADER
 
Constructor Summary
XPDLPackage()
           
XPDLPackage(java.lang.String id, java.lang.String name, PackageHeader packageHeader)
          Construct a new XPDLPackage.
 
Method Summary
 void accept(PackageVisitor visitor)
           
 void add(ExternalPackage extPkg)
           
 void add(TypeDeclaration typeDecl)
           
 void add(WorkflowProcess workflowProcess)
           
 java.lang.String getCompletionStrategy()
           
 ConformanceClass getConformanceClass()
          Get the ConformanceClass.
 ExternalPackage[] getExternalPackage()
           
 ExternalPackage getExternalPackage(int i)
           
 ExternalPackage getExternalPackage(java.lang.String id)
           
 java.util.Map getNamespaces()
          Returns all XML namespace prefix:URI mappings declared on the Package element of the XPDL document.
 PackageHeader getPackageHeader()
          Get the PackageHeader.
 java.lang.String getPackageId()
          Synonym for AbstractWFElement.getId().
 Script getScript()
          Get an object defining the scripting language to use for expressions.
 TypeDeclaration[] getTypeDeclaration()
           
 TypeDeclaration getTypeDeclaration(int i)
           
 TypeDeclaration getTypeDeclaration(java.lang.String id)
           
 WorkflowProcess[] getWorkflowProcess()
           
 WorkflowProcess getWorkflowProcess(int i)
           
 WorkflowProcess getWorkflowProcess(java.lang.String id)
           
 void remove(ExternalPackage extPkg)
           
 void remove(TypeDeclaration typeDecl)
           
 void remove(WorkflowProcess workflowProcess)
           
 void setCompletionStrategy(java.lang.String completionStrategy)
           
 void setConformanceClass(ConformanceClass conformanceClass)
          Set the ConformanceClass.
 void setExternalPackage(ExternalPackage[] externalPackages)
           
 void setExternalPackage(int i, ExternalPackage externalPackage)
           
 void setPackageHeader(PackageHeader packageHeader)
          Set the PackageHeader.
 void setScript(Script script)
          Set the script language for expressions.
 void setTypeDeclaration(int i, TypeDeclaration typeDeclaration)
           
 void setTypeDeclaration(TypeDeclaration[] typeDeclarations)
           
 void setWorkflowProcess(int i, WorkflowProcess workflowProcess)
           
 void setWorkflowProcess(WorkflowProcess[] workflowProcesses)
           
 java.lang.String toString()
           
 
Methods inherited from class org.obe.xpdl.model.misc.ResourceContainer
add, add, add, getApplication, getApplication, getApplication, getAssignmentStrategy, getCalendar, getDataField, getDataField, getDataField, getParticipant, getParticipant, getParticipant, getRedefinableHeader, remove, remove, remove, setApplication, setApplication, setAssignmentStrategy, setCalendar, setDataField, setDataField, setParticipant, setParticipant, setRedefinableHeader
 
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

COMPLETION_STRATEGY

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

CONFORMANCE_CLASS

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

EXTERNAL_PACKAGE

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

NAMESPACES

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

PACKAGE_HEADER

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

PACKAGE_ID

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

SCRIPT

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

TYPE_DECLARATION

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

WORKFLOW_PROCESS

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

XPDLPackage

public XPDLPackage()

XPDLPackage

public XPDLPackage(java.lang.String id,
                   java.lang.String name,
                   PackageHeader packageHeader)
Construct a new XPDLPackage.

Parameters:
id - The package ID
name - The package name
packageHeader - The PackageHeader object
Method Detail

accept

public void accept(PackageVisitor visitor)
Overrides:
accept in class ResourceContainer

getNamespaces

public java.util.Map getNamespaces()
Returns all XML namespace prefix:URI mappings declared on the Package element of the XPDL document.

Returns:
XML namespace prefix:URI mappings.

getPackageId

public java.lang.String getPackageId()
Synonym for AbstractWFElement.getId(). Required for compatibility between in-memory and EJB process repositories.

Returns:
the package ID.

getCompletionStrategy

public java.lang.String getCompletionStrategy()

setCompletionStrategy

public void setCompletionStrategy(java.lang.String completionStrategy)

getConformanceClass

public ConformanceClass getConformanceClass()
Get the ConformanceClass.

Returns:
The ConformanceClass

setConformanceClass

public void setConformanceClass(ConformanceClass conformanceClass)
Set the ConformanceClass.

Parameters:
conformanceClass -

add

public void add(ExternalPackage extPkg)
         throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

public void remove(ExternalPackage extPkg)
            throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getExternalPackage

public ExternalPackage[] getExternalPackage()

getExternalPackage

public ExternalPackage getExternalPackage(int i)

getExternalPackage

public ExternalPackage getExternalPackage(java.lang.String id)

setExternalPackage

public void setExternalPackage(ExternalPackage[] externalPackages)
                        throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setExternalPackage

public void setExternalPackage(int i,
                               ExternalPackage externalPackage)
                        throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getPackageHeader

public PackageHeader getPackageHeader()
Get the PackageHeader.

Returns:
The PackageHeader

setPackageHeader

public void setPackageHeader(PackageHeader packageHeader)
Set the PackageHeader. This method will throw an IllegalArgumentException if the argument is null.

Parameters:
packageHeader - The new package header

getScript

public Script getScript()
Get an object defining the scripting language to use for expressions.

Returns:
The Script

setScript

public void setScript(Script script)
Set the script language for expressions.

Parameters:
script - The new script language

add

public void add(TypeDeclaration typeDecl)
         throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

public void remove(TypeDeclaration typeDecl)
            throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getTypeDeclaration

public TypeDeclaration[] getTypeDeclaration()

getTypeDeclaration

public TypeDeclaration getTypeDeclaration(int i)

getTypeDeclaration

public TypeDeclaration getTypeDeclaration(java.lang.String id)

setTypeDeclaration

public void setTypeDeclaration(TypeDeclaration[] typeDeclarations)
                        throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setTypeDeclaration

public void setTypeDeclaration(int i,
                               TypeDeclaration typeDeclaration)
                        throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

add

public void add(WorkflowProcess workflowProcess)
         throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

public void remove(WorkflowProcess workflowProcess)
            throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getWorkflowProcess

public WorkflowProcess[] getWorkflowProcess()

getWorkflowProcess

public WorkflowProcess getWorkflowProcess(int i)

getWorkflowProcess

public WorkflowProcess getWorkflowProcess(java.lang.String id)

setWorkflowProcess

public void setWorkflowProcess(WorkflowProcess[] workflowProcesses)
                        throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setWorkflowProcess

public void setWorkflowProcess(int i,
                               WorkflowProcess workflowProcess)
                        throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

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.