org.obe.xpdl.parser.dom4j
Class Dom4JXPDLParser

java.lang.Object
  extended byorg.obe.xpdl.parser.dom4j.Dom4JXPDLParser
All Implemented Interfaces:
DOM4JNames, OBENames, W3CNames, XPDLNames, XPDLParser

public class Dom4JXPDLParser
extends java.lang.Object
implements XPDLParser, DOM4JNames

An implementation of the XPDLParser interface, using DOM4J.

Author:
Anthony Eden, Adrian Price

Field Summary
 
Fields inherited from interface org.obe.xpdl.parser.dom4j.DOM4JNames
ACTUAL_PARAMETERS_QNAME, ASSIGNMENT_STRATEGY_QNAME, BLOCKACTIVITY_QNAME, BOUNDS_QNAME, CONDITION_QNAME, DESCRIPTION_QNAME, EVENT_QNAME, EXTENDED_ATTRIBUTES_QNAME, EXTERNAL_REFERENCE_QNAME, FOREACH_QNAME, FORMAL_PARAMETERS_QNAME, IN_QNAME, LOOP_QNAME, META_DATA_QNAME, OBE_NS, TIMER_QNAME, UNTIL_QNAME, WHILE_QNAME, XPDL_NS, XSD_NS, XSI_NS, XSI_SCHEMA_LOCATION_QNAME
 
Fields inherited from interface org.obe.xpdl.XPDLNames
ACCESS_LEVEL, ACTIVITIES, ACTIVITY, ACTIVITY_SET, ACTIVITY_SETS, ACTUAL_PARAMETER, ACTUAL_PARAMETERS, AND_KIND, APPLICATION, APPLICATION_KIND, APPLICATIONS, ARRAY_KIND, ARRAY_TYPE, ASYNCHR_KIND, AUTHOR, AUTOMATIC, AUTOMATIC_KIND, BASIC_TYPE, BEGIN, BLOCK_NAME, BLOCKACTIVITY, BLOCKID, BOOLEAN_KIND, CODEPAGE, CONDITION, CONDITION_KIND, CONFORMANCE_CLASS, COST, COST_UNIT, COUNTRYKEY, CREATED, DATA_FIELD, DATA_FIELDS, DATA_TYPE, DATETIME_KIND, DEADLINE, DEADLINE_CONDITION, DECLARED_TYPE, DEFAULTEXCEPTION_KIND, DESCRIPTION, DOCUMENTATION, DURATION, DURATION_UNIT, END, ENUMERATION_KIND, ENUMERATION_TYPE, ENUMERATION_VALUE, EXCEPTION_KIND, EXCEPTION_NAME, EXECUTION, EXPIRATION, EXTENDED_ATTRIBUTE, EXTENDED_ATTRIBUTES, EXTERNAL_PACKAGE, EXTERNAL_PACKAGES, EXTERNAL_REFERENCE, EXTERNAL_REFERENCE_KIND, FINISH_MODE, FLOAT_KIND, FORMAL_PARAMETER, FORMAL_PARAMETERS, FROM, FULL_BLOCKED_KIND, GRAMMAR, GRAPH_CONFORMANCE, HREF, HUMAN_KIND, ICON, ID, IMPLEMENTATION, IN_KIND, INDEX, INITIAL_VALUE, INOUT_KIND, INSTANTIATION_TYPE, INTEGER_KIND, IS_ARRAY, JOIN, LENGTH, LIMIT, LIST_KIND, LIST_TYPE, LOCATION, LOOP_BLOCKED_KIND, LOWER_INDEX, MANUAL, MANUAL_KIND, MEMBER, MODE, MULTIPLE_KIND, NAME, NAMESPACE, NO, NON_BLOCKED_KIND, ONCE_KIND, ORGANIZATIONAL_UNIT_KIND, OTHERWISE_KIND, OUT_KIND, PACKAGE, PACKAGE_HEADER, PARTICIPANT, PARTICIPANT_TYPE, PARTICIPANTS, PERFORMER, PERFORMER_KIND, PLAIN_TYPE, PRIORITY, PRIORITY_UNIT, PRIVATE_KIND, PROCEDURE_KIND, PROCESS_HEADER, PUBLIC_KIND, PUBLICATION_STATUS, RECORD_TYPE, REDEFINABLE_HEADER, REFERENCE_KIND, RELEASED_KIND, RESOURCE_KIND, RESOURCE_SET_KIND, RESPONSIBLE, RESPONSIBLES, ROLE_KIND, ROUTE, SCHEMA_KIND, SCHEMA_TYPE, SCRIPT, SIMULATION_INFORMATION, SPLIT, START_MODE, STRING_KIND, SUBFLOW, SYNCHR_KIND, SYSTEM_KIND, TIME_ESTIMATION, TO, TOOL, TRANSITION, TRANSITION_REFERENCE, TRANSITION_REFERENCES, TRANSITION_RESTRICTION, TRANSITION_RESTRICTIONS, TRANSITIONS, TYPE, TYPE_DECLARATION, TYPE_DECLARATIONS, UNDER_REVISION_KIND, UNDER_TEST_KIND, UNION_KIND, UNION_TYPE, UPPER_INDEX, VALID_FROM, VALID_TO, VALUE, VENDOR, VERSION, WAITING_TIME, WORKFLOW_PROCESS, WORKFLOW_PROCESSES, WORKING_TIME, XOR_KIND, XPDL_NS_PREFIX, XPDL_NS_URI, XPDL_SCHEMA_LOCATION, XPDL_VERSION, XPRESSION, XREF
 
Fields inherited from interface org.obe.xpdl.OBENames
ASSIGNMENT_STRATEGY, BOUNDS, CALENDAR, COUNT, EVENT, EXPAND_GROUPS, FOR_EACH, HEIGHT, IN, INTERVAL, LOOP, META_DATA, NORMAL_KIND, OBE, OBE_APIDOC_URL, OBE_ASSIGNMENT_STRATEGY, OBE_AUTHOR, OBE_BOUNDS, OBE_CALENDAR, OBE_COMPLETION_STRATEGY, OBE_EVENT, OBE_FORK, OBE_LOOP, OBE_META_DATA, OBE_NAME, OBE_NS_PREFIX, OBE_NS_URI, OBE_SCRIPT, OBE_TARGET, OBE_TIMER, OBE_TOOL_MODE, OBE_URL, OBE_VERSION, OVERDUE_KIND, PARALLEL_KIND, PREDICATE, RECOVERABLE, SEQUENTIAL_KIND, TIMER, UNDEFINED_KIND, UNTIL, WARNING_KIND, WHILE, WIDTH, X, Y
 
Fields inherited from interface org.obe.util.W3CNames
SOAP_NS_PREFIX, SOAP_NS_URI, SOAPBIND_NS_PREFIX, SOAPBIND_NS_URI, SOAPENC_NS_PREFIX, SOAPENC_NS_URI, UDDI_NS_PREFIX, UDDI_NS_URI, WSDL_NS_PREFIX, WSDL_NS_URI, WSI_NS_PREFIX, WSI_NS_URI, XML_NS_PREFIX, XML_NS_URI, XMLNS_NS_PREFIX, XMLNS_NS_URI, XSD_NS_PREFIX, XSD_NS_URI, XSD_SCHEMA, XSI_NO_NS_SCHEMA_LOCATION, XSI_NS_PREFIX, XSI_SCHEMA_LOCATION, XSI_URI, XSL_NS_PREFIX, XSL_URI
 
Constructor Summary
Dom4JXPDLParser()
          Construct a new Dom4JXPDLParser.
Dom4JXPDLParser(org.xml.sax.EntityResolver entityResolver)
           
 
Method Summary
protected  Activity createActivity(XPDLPackage pkg, WorkflowProcess wp, org.dom4j.Element element)
           
protected  ActivitySet createActivitySet(XPDLPackage pkg, WorkflowProcess wp, org.dom4j.Element element)
           
protected  ActualParameter createActualParameter(org.dom4j.Element element)
           
protected  Application createApplication(ResourceContainer resCntr, org.dom4j.Element element)
           
protected  AssignmentStrategyDef createAssignmentStrategy(org.dom4j.Element element)
           
protected  BlockActivity createBlockActivity(org.dom4j.Element element)
           
protected  java.awt.Rectangle createBounds(org.dom4j.Element boundsElement)
           
 Condition createCondition(org.dom4j.Element element)
           
protected  ConformanceClass createConformanceClass(org.dom4j.Element element)
          Create a ConformanceClass object from the given element.
protected  DataField createDataField(ResourceContainer resCntr, org.dom4j.Element element)
           
protected  DataType createDataType(ResourceContainer resCntr, org.dom4j.Element element)
           
protected  Deadline createDeadline(org.dom4j.Element element)
          Create a Deadline object from the given Element.
protected  Event createEvent(org.dom4j.Element eventElement)
           
protected  void createExternalPackage(XPDLPackage pkg, org.dom4j.Element element)
           
protected  ExternalReference createExternalReference(org.dom4j.Element element)
          Create an ExternalReference object from the given Element.
protected  ForEach createForEach(org.dom4j.Element element)
           
protected  FormalParameter createFormalParameter(ResourceContainer resCntr, org.dom4j.Element element)
           
protected  Implementation createImplementation(XPDLPackage pkg, org.dom4j.Element element)
           
 Join createJoin(org.dom4j.Element element)
           
protected  Loop createLoop(org.dom4j.Element element)
           
protected  PackageHeader createPackageHeader(org.dom4j.Element element)
          Create the package header from the given element.
protected  Participant createParticipant(org.dom4j.Element element)
           
protected  ProcessHeader createProcessHeader(org.dom4j.Element element)
           
protected  RedefinableHeader createRedefinableHeader(org.dom4j.Element element)
           
protected  Route createRoute()
           
protected  SchemaType createSchemaType(org.dom4j.Element typeElement)
           
protected  Script createScript(org.dom4j.Element element)
          Create a Script object from the given Element.
protected  SimulationInformation createSimulationInformation(org.dom4j.Element element)
           
 Split createSplit(org.dom4j.Element element)
           
protected  SubFlow createSubFlow(org.dom4j.Element element)
           
protected  TimeEstimation createTimeEstimation(org.dom4j.Element element)
          Create a TimeEstimation object.
protected  Timer createTimer(org.dom4j.Element timerElement)
           
protected  Tool createTool(XPDLPackage pkg, org.dom4j.Element element)
           
protected  Transition createTransition(XPDLPackage pkg, org.dom4j.Element element)
           
protected  TransitionRestriction createTransitionRestriction(org.dom4j.Element element)
           
protected  Type createType(ResourceContainer resCntr, org.dom4j.Element parent)
           
protected  TypeDeclaration createTypeDeclaration(XPDLPackage pkg, org.dom4j.Element element)
           
protected  Until createUntil(org.dom4j.Element element)
           
protected  While createWhile(org.dom4j.Element element)
           
protected  WorkflowProcess createWorkflowProcess(XPDLPackage pkg, org.dom4j.Element element)
           
protected  void loadActivities(XPDLPackage pkg, WorkflowProcess wp, Graph graph, org.dom4j.Element element)
          Load actvities from the given Element.
protected  void loadActivities(XPDLPackage pkg, WorkflowProcess wp, Graph graph, java.util.List elements)
          Load the activity objects from the given list of "Activity" elements.
protected  void loadActivitySets(XPDLPackage pkg, WorkflowProcess wp, org.dom4j.Element element)
          Load activity sets from the given Element.
protected  void loadActivitySets(XPDLPackage pkg, WorkflowProcess wp, java.util.List elements)
          Load the activity set objects from the given list of "ActivitySet" elements.
protected  void loadActualParameters(Invocation invocation, org.dom4j.Element element)
          Load actual parameters from the given Element.
protected  void loadActualParameters(Invocation invocation, java.util.List elements)
          Load the actual parameters objects from the given list of "ActualParameter" elements.
protected  void loadApplications(ResourceContainer resCntr, org.dom4j.Element element)
          Load applications from the given Element.
protected  void loadApplications(ResourceContainer resCntr, java.util.List elements)
          Load the applications objects from the given list of "Application" elements.
protected  void loadDataFields(ResourceContainer resCntr, org.dom4j.Element element)
          Load data fields from the given Element.
protected  void loadDataFields(ResourceContainer resCntr, java.util.List elements)
          Load the data field objects from the given list of "DataField" elements.
protected  void loadDeadlines(Activity activity, java.util.List elements)
           
protected  void loadEnumerationValues(java.util.List elements, EnumerationType type)
           
protected  ExtendedAttributes loadExtendedAttributes(org.dom4j.Element parent, java.util.Map obeExtAttrMap)
          Load extended attributes from the given parent.
protected  ExtendedAttributes loadExtendedAttributes(ResourceContainer resCntr, org.dom4j.Element parent)
          Load extended attributes from the given parent.
protected  void loadExternalPackages(XPDLPackage pkg, org.dom4j.Element element)
           
protected  void loadExternalPackages(XPDLPackage pkg, java.util.List elements)
           
protected  void loadFormalParameters(ResourceContainer resCntr, Invokable invokable, org.dom4j.Element element)
          Load formal parameters from the given Element.
protected  void loadFormalParameters(ResourceContainer resCntr, Invokable invokable, java.util.List elements)
          Load the formal parameters objects from the given list of "FormalParameter" elements.
protected  void loadMembers(ResourceContainer resCntr, java.util.List elements, ComplexType complexType)
           
protected  void loadParticipants(ResourceContainer resCntr, org.dom4j.Element element)
          Load participants from the given Element.
protected  void loadParticipants(ResourceContainer resCntr, java.util.List elements)
          Load the participant objects from the given list of "Participant" elements.
protected  void loadResponsibles(RedefinableHeader header, org.dom4j.Element element)
           
protected  void loadResponsibles(RedefinableHeader header, java.util.List elements)
           
protected  void loadTransitionReferences(Split split, org.dom4j.Element element)
          Load transition references from the given Element.
protected  void loadTransitionReferences(Split split, java.util.List elements)
          Load the transition references objects from the given list of "TransitionRef" elements.
protected  void loadTransitionRestrictions(Activity activity, org.dom4j.Element element)
          Load transition restrictions from the given Element.
protected  void loadTransitionRestrictions(Activity activity, java.util.List elements)
          Load the transition restriction objects from the given list of "TransitionRestriction" elements.
protected  void loadTransitions(XPDLPackage pkg, Graph graph, org.dom4j.Element element)
          Load transitions from the given Element.
protected  void loadTransitions(XPDLPackage pkg, Graph graph, java.util.List elements)
          Load the transition objects from the given list of "Transition" elements.
protected  void loadTypeDeclarations(XPDLPackage pkg, org.dom4j.Element element)
          Load type declarations from the given Element.
protected  void loadTypeDeclarations(XPDLPackage pkg, java.util.List elements)
          Load the type declaration objects from the given list of "TypeDeclaration" elements.
protected  void loadWorkflowProcesses(XPDLPackage pkg, org.dom4j.Element element)
          Load workflow processes from the given Element.
protected  void loadWorkflowProcesses(XPDLPackage pkg, java.util.List elements)
          Load the workflow process objects from the given list of "WorkflowProcess" elements.
 XPDLPackage parse(java.io.InputStream in)
          Parse the given InputStream into a XPDLPackage object.
 XPDLPackage parse(java.io.Reader in)
          Parse the XPDL document which is provided by the given InputStream.
protected  java.lang.Integer parseIntAttribute(org.dom4j.Element element, java.lang.String attribute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dom4JXPDLParser

public Dom4JXPDLParser()
Construct a new Dom4JXPDLParser.


Dom4JXPDLParser

public Dom4JXPDLParser(org.xml.sax.EntityResolver entityResolver)
Method Detail

parse

public XPDLPackage parse(java.io.InputStream in)
                  throws java.io.IOException,
                         XPDLParserException
Description copied from interface: XPDLParser
Parse the given InputStream into a XPDLPackage object.

Specified by:
parse in interface XPDLParser
Parameters:
in - The InputStream
Throws:
XPDLParserException - Any parser exception
java.io.IOException - Any I/O Exception

parse

public XPDLPackage parse(java.io.Reader in)
                  throws java.io.IOException,
                         XPDLParserException
Parse the XPDL document which is provided by the given InputStream.

Specified by:
parse in interface XPDLParser
Parameters:
in - The XPDL character stream
Returns:
The Workflow Package
Throws:
java.io.IOException - Any I/O Exception
XPDLParserException - Any parser exception

createPackageHeader

protected PackageHeader createPackageHeader(org.dom4j.Element element)
                                     throws XPDLParserException
Create the package header from the given element. This method will throw an XPDLParserException if the XPDLPackage header element is null.

Parameters:
element - The package header element
Throws:
XPDLParserException - Thrown if the element is null

createRedefinableHeader

protected RedefinableHeader createRedefinableHeader(org.dom4j.Element element)
                                             throws XPDLParserException,
                                                    java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createConformanceClass

protected ConformanceClass createConformanceClass(org.dom4j.Element element)
                                           throws XPDLParserException
Create a ConformanceClass object from the given element.

Parameters:
element - The ConformanceClass element
Throws:
XPDLParserException - Any parser exception

createScript

protected Script createScript(org.dom4j.Element element)
                       throws XPDLParserException
Create a Script object from the given Element.

Parameters:
element - The Element
Returns:
the Script object
Throws:
XPDLParserException

loadExternalPackages

protected void loadExternalPackages(XPDLPackage pkg,
                                    org.dom4j.Element element)
                             throws XPDLParserException,
                                    java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadExternalPackages

protected void loadExternalPackages(XPDLPackage pkg,
                                    java.util.List elements)
                             throws XPDLParserException,
                                    java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createExternalPackage

protected void createExternalPackage(XPDLPackage pkg,
                                     org.dom4j.Element element)
                              throws XPDLParserException,
                                     java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadResponsibles

protected void loadResponsibles(RedefinableHeader header,
                                org.dom4j.Element element)
                         throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

loadResponsibles

protected void loadResponsibles(RedefinableHeader header,
                                java.util.List elements)
                         throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

loadParticipants

protected void loadParticipants(ResourceContainer resCntr,
                                org.dom4j.Element element)
                         throws XPDLParserException,
                                java.beans.PropertyVetoException
Load participants from the given Element. The element should represent a collection of participants (which is identified by the "Participants" tag).

Parameters:
resCntr -
element - The "Participants" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadParticipants

protected void loadParticipants(ResourceContainer resCntr,
                                java.util.List elements)
                         throws XPDLParserException,
                                java.beans.PropertyVetoException
Load the participant objects from the given list of "Participant" elements.

Parameters:
resCntr -
elements - The list of "Participant" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createParticipant

protected Participant createParticipant(org.dom4j.Element element)
                                 throws XPDLParserException,
                                        java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadApplications

protected void loadApplications(ResourceContainer resCntr,
                                org.dom4j.Element element)
                         throws XPDLParserException,
                                java.beans.PropertyVetoException
Load applications from the given Element. The element should represent a collection of applications (which is identified by the "Applications" tag).

Parameters:
resCntr -
element - The "Applications" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadApplications

protected void loadApplications(ResourceContainer resCntr,
                                java.util.List elements)
                         throws XPDLParserException,
                                java.beans.PropertyVetoException
Load the applications objects from the given list of "Application" elements.

Parameters:
resCntr -
elements - The list of "Application" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createApplication

protected Application createApplication(ResourceContainer resCntr,
                                        org.dom4j.Element element)
                                 throws XPDLParserException,
                                        java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createAssignmentStrategy

protected AssignmentStrategyDef createAssignmentStrategy(org.dom4j.Element element)
                                                  throws XPDLParserException
Throws:
XPDLParserException

loadWorkflowProcesses

protected void loadWorkflowProcesses(XPDLPackage pkg,
                                     org.dom4j.Element element)
                              throws XPDLParserException,
                                     java.beans.PropertyVetoException
Load workflow processes from the given Element. The element should represent a collection of workflow process (which is identified by the "WorkflowProcesses" tag).

Parameters:
element - The "WorkflowProcesses" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadWorkflowProcesses

protected void loadWorkflowProcesses(XPDLPackage pkg,
                                     java.util.List elements)
                              throws XPDLParserException,
                                     java.beans.PropertyVetoException
Load the workflow process objects from the given list of "WorkflowProcess" elements.

Parameters:
elements - The list of "WorkflowProcess" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createWorkflowProcess

protected WorkflowProcess createWorkflowProcess(XPDLPackage pkg,
                                                org.dom4j.Element element)
                                         throws XPDLParserException,
                                                java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createProcessHeader

protected ProcessHeader createProcessHeader(org.dom4j.Element element)
                                     throws XPDLParserException
Throws:
XPDLParserException

loadActivitySets

protected void loadActivitySets(XPDLPackage pkg,
                                WorkflowProcess wp,
                                org.dom4j.Element element)
                         throws XPDLParserException,
                                java.beans.PropertyVetoException
Load activity sets from the given Element. The element should represent a collection of activity sets (which is identified by the "ActivitySets" tag).

Parameters:
pkg -
element - The "ActivitySets" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadActivitySets

protected void loadActivitySets(XPDLPackage pkg,
                                WorkflowProcess wp,
                                java.util.List elements)
                         throws XPDLParserException,
                                java.beans.PropertyVetoException
Load the activity set objects from the given list of "ActivitySet" elements.

Parameters:
pkg -
elements - The list of "Activity" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createActivitySet

protected ActivitySet createActivitySet(XPDLPackage pkg,
                                        WorkflowProcess wp,
                                        org.dom4j.Element element)
                                 throws XPDLParserException,
                                        java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadActivities

protected void loadActivities(XPDLPackage pkg,
                              WorkflowProcess wp,
                              Graph graph,
                              org.dom4j.Element element)
                       throws XPDLParserException,
                              java.beans.PropertyVetoException
Load actvities from the given Element. The element should represent a collection of activities (which is identified by the "Activities" tag).

Parameters:
pkg -
graph - The list of activities
element - The "Activities" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadActivities

protected void loadActivities(XPDLPackage pkg,
                              WorkflowProcess wp,
                              Graph graph,
                              java.util.List elements)
                       throws XPDLParserException,
                              java.beans.PropertyVetoException
Load the activity objects from the given list of "Activity" elements.

Parameters:
pkg -
graph - The list of activites
elements - The list of "Activity" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createActivity

protected Activity createActivity(XPDLPackage pkg,
                                  WorkflowProcess wp,
                                  org.dom4j.Element element)
                           throws XPDLParserException,
                                  java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadDeadlines

protected void loadDeadlines(Activity activity,
                             java.util.List elements)
                      throws XPDLParserException,
                             java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createDeadline

protected Deadline createDeadline(org.dom4j.Element element)
                           throws XPDLParserException
Create a Deadline object from the given Element.

Parameters:
element - The Element
Returns:
the Deadline object
Throws:
XPDLParserException

createBlockActivity

protected BlockActivity createBlockActivity(org.dom4j.Element element)

createImplementation

protected Implementation createImplementation(XPDLPackage pkg,
                                              org.dom4j.Element element)
                                       throws XPDLParserException,
                                              java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createRoute

protected Route createRoute()

createLoop

protected Loop createLoop(org.dom4j.Element element)
                   throws XPDLParserException,
                          java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createWhile

protected While createWhile(org.dom4j.Element element)
                     throws XPDLParserException,
                            java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createUntil

protected Until createUntil(org.dom4j.Element element)
                     throws XPDLParserException,
                            java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createForEach

protected ForEach createForEach(org.dom4j.Element element)
                         throws XPDLParserException
Throws:
XPDLParserException

createSubFlow

protected SubFlow createSubFlow(org.dom4j.Element element)
                         throws XPDLParserException,
                                java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createTool

protected Tool createTool(XPDLPackage pkg,
                          org.dom4j.Element element)
                   throws XPDLParserException,
                          java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createSimulationInformation

protected SimulationInformation createSimulationInformation(org.dom4j.Element element)
                                                     throws XPDLParserException
Throws:
XPDLParserException

createTimeEstimation

protected TimeEstimation createTimeEstimation(org.dom4j.Element element)
                                       throws XPDLParserException
Create a TimeEstimation object.

Parameters:
element - The TimeEstimation Element
Returns:
The TimeEstimation object
Throws:
XPDLParserException - Parse error

createCondition

public Condition createCondition(org.dom4j.Element element)
                          throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

loadTransitions

protected void loadTransitions(XPDLPackage pkg,
                               Graph graph,
                               org.dom4j.Element element)
                        throws XPDLParserException,
                               java.beans.PropertyVetoException
Load transitions from the given Element. The element should represent a collection of transitions (which is identified by the "Transitions" tag).

Parameters:
pkg -
graph - The list of transitions
element - The "Transitions" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadTransitions

protected void loadTransitions(XPDLPackage pkg,
                               Graph graph,
                               java.util.List elements)
                        throws XPDLParserException,
                               java.beans.PropertyVetoException
Load the transition objects from the given list of "Transition" elements.

Parameters:
pkg -
graph - The list of transitions
elements - The list of "Transition" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createTransition

protected Transition createTransition(XPDLPackage pkg,
                                      org.dom4j.Element element)
                               throws XPDLParserException,
                                      java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createEvent

protected Event createEvent(org.dom4j.Element eventElement)
                     throws XPDLParserException,
                            java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createTimer

protected Timer createTimer(org.dom4j.Element timerElement)
                     throws XPDLParserException,
                            java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadTransitionRestrictions

protected void loadTransitionRestrictions(Activity activity,
                                          org.dom4j.Element element)
                                   throws XPDLParserException,
                                          java.beans.PropertyVetoException
Load transition restrictions from the given Element. The element should represent a collection of transition restrictions (which is identified by the "TransitionRestrictions" tag).

Parameters:
activity - The list of transition restrictions
element - The "TransitionRestrictions" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadTransitionRestrictions

protected void loadTransitionRestrictions(Activity activity,
                                          java.util.List elements)
                                   throws XPDLParserException,
                                          java.beans.PropertyVetoException
Load the transition restriction objects from the given list of "TransitionRestriction" elements.

Parameters:
activity - The list of transition restriction
elements - The list of "TransitionRestriction" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createTransitionRestriction

protected TransitionRestriction createTransitionRestriction(org.dom4j.Element element)
                                                     throws XPDLParserException,
                                                            java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createJoin

public Join createJoin(org.dom4j.Element element)

createSplit

public Split createSplit(org.dom4j.Element element)
                  throws XPDLParserException,
                         java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadTransitionReferences

protected void loadTransitionReferences(Split split,
                                        org.dom4j.Element element)
                                 throws XPDLParserException,
                                        java.beans.PropertyVetoException
Load transition references from the given Element. The element should represent a collection of transition references (which is identified by the "TransitionRefs" tag).

Parameters:
split - The list of transition references
element - The "TransitionRefs" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadTransitionReferences

protected void loadTransitionReferences(Split split,
                                        java.util.List elements)
                                 throws XPDLParserException,
                                        java.beans.PropertyVetoException
Load the transition references objects from the given list of "TransitionRef" elements.

Parameters:
split - The list of transition references
elements - The list of "TransitionRef" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadFormalParameters

protected void loadFormalParameters(ResourceContainer resCntr,
                                    Invokable invokable,
                                    org.dom4j.Element element)
                             throws XPDLParserException,
                                    java.beans.PropertyVetoException
Load formal parameters from the given Element. The element should represent a collection of formal parameters (which is identified by the "FormalParameters" tag).

Parameters:
resCntr -
invokable - The list of formal parameters
element - The "FormalParameters" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadFormalParameters

protected void loadFormalParameters(ResourceContainer resCntr,
                                    Invokable invokable,
                                    java.util.List elements)
                             throws XPDLParserException,
                                    java.beans.PropertyVetoException
Load the formal parameters objects from the given list of "FormalParameter" elements.

Parameters:
resCntr -
invokable - The list of formal parameters
elements - The list of "FormalParameter" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createFormalParameter

protected FormalParameter createFormalParameter(ResourceContainer resCntr,
                                                org.dom4j.Element element)
                                         throws XPDLParserException,
                                                java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadActualParameters

protected void loadActualParameters(Invocation invocation,
                                    org.dom4j.Element element)
                             throws XPDLParserException,
                                    java.beans.PropertyVetoException
Load actual parameters from the given Element. The element should represent a collection of actual parameters (which is identified by the "ActualParameters" tag).

Parameters:
invocation - The list of actual parameters
element - The "ActualParameters" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadActualParameters

protected void loadActualParameters(Invocation invocation,
                                    java.util.List elements)
                             throws XPDLParserException,
                                    java.beans.PropertyVetoException
Load the actual parameters objects from the given list of "ActualParameter" elements.

Parameters:
invocation - The list of actual parameters
elements - The list of "ActualParameter" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createActualParameter

protected ActualParameter createActualParameter(org.dom4j.Element element)
                                         throws XPDLParserException
Throws:
XPDLParserException

createDataType

protected DataType createDataType(ResourceContainer resCntr,
                                  org.dom4j.Element element)
                           throws XPDLParserException,
                                  java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createType

protected Type createType(ResourceContainer resCntr,
                          org.dom4j.Element parent)
                   throws XPDLParserException,
                          java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createSchemaType

protected SchemaType createSchemaType(org.dom4j.Element typeElement)
                               throws XPDLParserException
Throws:
XPDLParserException

loadMembers

protected void loadMembers(ResourceContainer resCntr,
                           java.util.List elements,
                           ComplexType complexType)
                    throws XPDLParserException,
                           java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadEnumerationValues

protected void loadEnumerationValues(java.util.List elements,
                                     EnumerationType type)
                              throws XPDLParserException,
                                     java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadTypeDeclarations

protected void loadTypeDeclarations(XPDLPackage pkg,
                                    org.dom4j.Element element)
                             throws XPDLParserException,
                                    java.beans.PropertyVetoException
Load type declarations from the given Element. The element should represent a collection of type declarations (which is identified by the "TypeDeclarations" tag).

Parameters:
pkg -
element - The "TypeDeclarations" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadTypeDeclarations

protected void loadTypeDeclarations(XPDLPackage pkg,
                                    java.util.List elements)
                             throws XPDLParserException,
                                    java.beans.PropertyVetoException
Load the type declaration objects from the given list of "TypeDeclaration" elements.

Parameters:
pkg -
elements - The list of "TypeDeclaration" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createTypeDeclaration

protected TypeDeclaration createTypeDeclaration(XPDLPackage pkg,
                                                org.dom4j.Element element)
                                         throws XPDLParserException,
                                                java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadDataFields

protected void loadDataFields(ResourceContainer resCntr,
                              org.dom4j.Element element)
                       throws XPDLParserException,
                              java.beans.PropertyVetoException
Load data fields from the given Element. The element should represent a collection of data fields (which is identified by the "DataFields" tag).

Parameters:
resCntr -
element - The "DataFields" element
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadDataFields

protected void loadDataFields(ResourceContainer resCntr,
                              java.util.List elements)
                       throws XPDLParserException,
                              java.beans.PropertyVetoException
Load the data field objects from the given list of "DataField" elements.

Parameters:
resCntr -
elements - The list of "DataField" elements
Throws:
XPDLParserException
java.beans.PropertyVetoException

createDataField

protected DataField createDataField(ResourceContainer resCntr,
                                    org.dom4j.Element element)
                             throws XPDLParserException,
                                    java.beans.PropertyVetoException
Throws:
XPDLParserException
java.beans.PropertyVetoException

createExternalReference

protected ExternalReference createExternalReference(org.dom4j.Element element)
                                             throws XPDLParserException
Create an ExternalReference object from the given Element.

Parameters:
element - The "ExternalReference" element
Returns:
The ExternalReference object
Throws:
XPDLParserException

loadExtendedAttributes

protected ExtendedAttributes loadExtendedAttributes(ResourceContainer resCntr,
                                                    org.dom4j.Element parent)
                                             throws XPDLParserException,
                                                    java.beans.PropertyVetoException
Load extended attributes from the given parent. If the element has a child <ExtendedAttributes> element, the latter's child <ExtendedAttribute> elements recognized by OBE are parsed into the extendedAttributes map and removed from their parent. Any remaining 3rd party elements are detached and added to a new document, which becomes the method's return value.

Parameters:
resCntr -
parent - The parent element.
Returns:
A DOM document containing any 3rd party attributes (can be null).
Throws:
XPDLParserException
java.beans.PropertyVetoException

loadExtendedAttributes

protected ExtendedAttributes loadExtendedAttributes(org.dom4j.Element parent,
                                                    java.util.Map obeExtAttrMap)
                                             throws XPDLParserException,
                                                    java.beans.PropertyVetoException
Load extended attributes from the given parent. If the element has a child <ExtendedAttributes> element, the latter's child <ExtendedAttribute> elements recognized by OBE are parsed into the extendedAttributes map and removed from their parent. Any remaining 3rd party elements are detached and added to a new document, which becomes the method's return value.

Parameters:
parent - The parent element.
obeExtAttrMap - Map of parsed OBE extended attributes.
Returns:
A DOM document containing any 3rd party attributes (can be null).
Throws:
XPDLParserException
java.beans.PropertyVetoException

createBounds

protected java.awt.Rectangle createBounds(org.dom4j.Element boundsElement)

parseIntAttribute

protected java.lang.Integer parseIntAttribute(org.dom4j.Element element,
                                              java.lang.String attribute)


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