| java.lang.Object org.obe.xpdl.parser.dom4j.Dom4JXPDLParser
Dom4JXPDLParser | public class Dom4JXPDLParser implements XPDLParser,DOM4JNames(Code) | | An implementation of the XPDLParser interface, using DOM4J.
author: Anthony Eden author: Adrian Price |
Method Summary | |
protected Activity | createActivity(XPDLPackage pkg, WorkflowProcess wp, Element element) | protected ActivitySet | createActivitySet(XPDLPackage pkg, WorkflowProcess wp, Element element) | protected ActualParameter | createActualParameter(Element element) | protected Application | createApplication(ResourceContainer resCntr, Element element) | protected AssignmentStrategyDef | createAssignmentStrategy(Element element) | protected BlockActivity | createBlockActivity(Element element) | protected Rectangle | createBounds(Element boundsElement) | public Condition | createCondition(Element element) | protected ConformanceClass | createConformanceClass(Element element) Create a ConformanceClass object from the given element. | protected DataField | createDataField(ResourceContainer resCntr, Element element) | protected DataType | createDataType(ResourceContainer resCntr, Element element) | protected Deadline | createDeadline(Element element) Create a Deadline object from the given Element. | protected Event | createEvent(Element eventElement) | protected void | createExternalPackage(XPDLPackage pkg, Element element) | protected ExternalReference | createExternalReference(Element element) Create an ExternalReference object from the given Element. | protected ForEach | createForEach(Element element) | protected FormalParameter | createFormalParameter(ResourceContainer resCntr, Element element) | protected Implementation | createImplementation(XPDLPackage pkg, Element element) | public Join | createJoin(Element element) | protected Loop | createLoop(Element element) | protected PackageHeader | createPackageHeader(Element element) Create the package header from the given element. | protected Participant | createParticipant(Element element) | protected ProcessHeader | createProcessHeader(Element element) | protected RedefinableHeader | createRedefinableHeader(Element element) | protected Route | createRoute() | protected SchemaType | createSchemaType(Element typeElement) | protected Script | createScript(Element element) Create a Script object from the given Element. | protected SimulationInformation | createSimulationInformation(Element element) | public Split | createSplit(Element element) | protected SubFlow | createSubFlow(Element element) | protected TimeEstimation | createTimeEstimation(Element element) Create a TimeEstimation object. | protected Timer | createTimer(Element timerElement) | protected Tool | createTool(XPDLPackage pkg, Element element) | protected Transition | createTransition(XPDLPackage pkg, Element element) | protected TransitionRestriction | createTransitionRestriction(Element element) | protected Type | createType(ResourceContainer resCntr, Element parent) | protected TypeDeclaration | createTypeDeclaration(XPDLPackage pkg, Element element) | protected Until | createUntil(Element element) | protected While | createWhile(Element element) | protected WorkflowProcess | createWorkflowProcess(XPDLPackage pkg, Element element) | protected void | loadActivities(XPDLPackage pkg, WorkflowProcess wp, Graph graph, Element element) Load actvities from the given Element. | protected void | loadActivities(XPDLPackage pkg, WorkflowProcess wp, Graph graph, List elements) Load the activity objects from the given list of "Activity" elements. | protected void | loadActivitySets(XPDLPackage pkg, WorkflowProcess wp, Element element) Load activity sets from the given Element. | protected void | loadActivitySets(XPDLPackage pkg, WorkflowProcess wp, List elements) Load the activity set objects from the given list of "ActivitySet"
elements. | protected void | loadActualParameters(Invocation invocation, Element element) Load actual parameters from the given Element. | protected void | loadActualParameters(Invocation invocation, List elements) Load the actual parameters objects from the given list of
"ActualParameter" elements. | protected void | loadApplications(ResourceContainer resCntr, Element element) Load applications from the given Element. | protected void | loadApplications(ResourceContainer resCntr, List elements) Load the applications objects from the given list of "Application"
elements. | protected void | loadDataFields(ResourceContainer resCntr, Element element) Load data fields from the given Element. | protected void | loadDataFields(ResourceContainer resCntr, List elements) Load the data field objects from the given list of "DataField" elements. | protected void | loadDeadlines(Activity activity, List elements) | protected void | loadEnumerationValues(List elements, EnumerationType type) | protected ExtendedAttributes | loadExtendedAttributes(ResourceContainer resCntr, Element parent) Load extended attributes from the given parent. | protected ExtendedAttributes | loadExtendedAttributes(Element parent, Map obeExtAttrMap) Load extended attributes from the given parent. | protected void | loadExternalPackages(XPDLPackage pkg, Element element) | protected void | loadExternalPackages(XPDLPackage pkg, List elements) | protected void | loadFormalParameters(ResourceContainer resCntr, Invokable invokable, Element element) Load formal parameters from the given Element. | protected void | loadFormalParameters(ResourceContainer resCntr, Invokable invokable, List elements) Load the formal parameters objects from the given list of
"FormalParameter" elements. | protected void | loadMembers(ResourceContainer resCntr, List elements, ComplexType complexType) | protected void | loadParticipants(ResourceContainer resCntr, Element element) Load participants from the given Element. | protected void | loadParticipants(ResourceContainer resCntr, List elements) Load the participant objects from the given list of "Participant"
elements. | protected void | loadResponsibles(RedefinableHeader header, Element element) | protected void | loadResponsibles(RedefinableHeader header, List elements) | protected void | loadTransitionReferences(Split split, Element element) Load transition references from the given Element. | protected void | loadTransitionReferences(Split split, List elements) Load the transition references objects from the given list of
"TransitionRef" elements. | protected void | loadTransitionRestrictions(Activity activity, Element element) Load transition restrictions from the given Element. | protected void | loadTransitionRestrictions(Activity activity, List elements) Load the transition restriction objects from the given list of
"TransitionRestriction" elements. | protected void | loadTransitions(XPDLPackage pkg, Graph graph, Element element) Load transitions from the given Element. | protected void | loadTransitions(XPDLPackage pkg, Graph graph, List elements) Load the transition objects from the given list of "Transition"
elements. | protected void | loadTypeDeclarations(XPDLPackage pkg, Element element) Load type declarations from the given Element. | protected void | loadTypeDeclarations(XPDLPackage pkg, List elements) Load the type declaration objects from the given list of
"TypeDeclaration" elements. | protected void | loadWorkflowProcesses(XPDLPackage pkg, Element element) Load workflow processes from the given Element. | protected void | loadWorkflowProcesses(XPDLPackage pkg, List elements) Load the workflow process objects from the given list of
"WorkflowProcess" elements. | public XPDLPackage | parse(InputStream in) | public XPDLPackage | parse(Reader in) Parse the XPDL document which is provided by the given InputStream. | protected Integer | parseIntAttribute(Element element, String attribute) |
Dom4JXPDLParser | public Dom4JXPDLParser()(Code) | | Construct a new Dom4JXPDLParser.
|
createJoin | public Join createJoin(Element element)(Code) | | |
createPackageHeader | protected PackageHeader createPackageHeader(Element element) throws XPDLParserException(Code) | | 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 |
loadActualParameters | protected void loadActualParameters(Invocation invocation, Element element) throws XPDLParserException, PropertyVetoException(Code) | | 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 Parameters: element - The "ActualParameters" element throws: XPDLParserException - |
loadExtendedAttributes | protected ExtendedAttributes loadExtendedAttributes(ResourceContainer resCntr, Element parent) throws XPDLParserException, PropertyVetoException(Code) | | 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 - Parameters: parent - The parent element. A DOM document containing any 3rd party attributes (can benull ). throws: XPDLParserException - |
loadExtendedAttributes | protected ExtendedAttributes loadExtendedAttributes(Element parent, Map obeExtAttrMap) throws XPDLParserException, PropertyVetoException(Code) | | 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. Parameters: obeExtAttrMap - Map of parsed OBE extended attributes. A DOM document containing any 3rd party attributes (can benull ). throws: XPDLParserException - |
loadFormalParameters | protected void loadFormalParameters(ResourceContainer resCntr, Invokable invokable, Element element) throws XPDLParserException, PropertyVetoException(Code) | | 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 - Parameters: invokable - The list of formal parameters Parameters: element - The "FormalParameters" element throws: XPDLParserException - |
loadTransitionReferences | protected void loadTransitionReferences(Split split, Element element) throws XPDLParserException, PropertyVetoException(Code) | | 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 Parameters: element - The "TransitionRefs" element throws: XPDLParserException - |
loadTransitionReferences | protected void loadTransitionReferences(Split split, List elements) throws XPDLParserException, PropertyVetoException(Code) | | Load the transition references objects from the given list of
"TransitionRef" elements.
Parameters: split - The list of transition references Parameters: elements - The list of "TransitionRef" elements throws: XPDLParserException - |
loadTransitionRestrictions | protected void loadTransitionRestrictions(Activity activity, Element element) throws XPDLParserException, PropertyVetoException(Code) | | 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 Parameters: element - The "TransitionRestrictions" element throws: XPDLParserException - |
loadTransitionRestrictions | protected void loadTransitionRestrictions(Activity activity, List elements) throws XPDLParserException, PropertyVetoException(Code) | | Load the transition restriction objects from the given list of
"TransitionRestriction" elements.
Parameters: activity - The list of transition restriction Parameters: elements - The list of "TransitionRestriction" elements throws: XPDLParserException - |
loadTransitions | protected void loadTransitions(XPDLPackage pkg, Graph graph, Element element) throws XPDLParserException, PropertyVetoException(Code) | | Load transitions from the given Element. The element should represent a
collection of transitions (which is identified by the "Transitions"
tag).
Parameters: pkg - Parameters: graph - The list of transitions Parameters: element - The "Transitions" element throws: XPDLParserException - |
loadTypeDeclarations | protected void loadTypeDeclarations(XPDLPackage pkg, Element element) throws XPDLParserException, PropertyVetoException(Code) | | 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 - Parameters: element - The "TypeDeclarations" element throws: XPDLParserException - |
loadWorkflowProcesses | protected void loadWorkflowProcesses(XPDLPackage pkg, Element element) throws XPDLParserException, PropertyVetoException(Code) | | 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 - |
|
|