Source Code Cross Referenced for AppParameter.java in  » Workflow-Engines » shark » org » enhydra » shark » api » internal » toolagent » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » shark » org.enhydra.shark.api.internal.toolagent 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.enhydra.shark.api.internal.toolagent;
002:
003:        import java.io.Serializable;
004:
005:        /**
006:         * This class represents the parameter passed to tool agent application.
007:         * It holds all neccessary information about shark's activity variable.
008:         * It differs from original WfMC spec in the following:
009:         * <ul>
010:         * <li> it defines two fields for parameter name (instead of one as it is in spec):
011:         * the actual one, and the formal one
012:         * <li> it defines additional field which determines the mode of parameter
013:         * (it can be input, output or input and output parameter).
014:         * <li> it defined additional field which determines the Java class
015:         * for the parameter
016:         * </ul>
017:         */
018:        public final class AppParameter implements  Serializable {
019:
020:            /**
021:             * The name of the actual parameter (shark variable). This is the Id of
022:             * the FormalParameter or DataField from XPDL definition, if mode of
023:             * corresponding FormalParameter from XPDL Application Definition is OUT or
024:             * IN_OUT, otherwise it is the expression which is evaluated to get the
025:             * value contained in this object.
026:             */
027:            public String the_actual_name = null;
028:
029:            /**
030:             * The name of the formal parameter of XPDL application definition
031:             * that corresponds to this AppParameter instance.
032:             */
033:            public String the_formal_name = null;
034:
035:            /**
036:             * The mode of the formal parameter, as defined in its XPDL application
037:             * definition. It can be:
038:             * <ul>
039:             * <li> "IN" - then shark doesn't take into account the value of this
040:             * parameter after execution of tool agent.
041:             * <li> "OUT" - then shark takes into account the value of this parameter
042:             * after execution, but tool agent application should not care about
043:             * this parameter value when it gets it.
044:             * <li> "INOUT" - then both, shark and tool agent application take into
045:             * account the value of this parameter.
046:             * </ul>
047:             */
048:            public String the_mode = null;
049:
050:            /**
051:             * The value of the parameter - this is a value of a shark variable
052:             * if mode of corresponding FormalParameter from XPDL Application Definition
053:             * is OUT or IN_OUT, otherwise it is the value of evaluated expression for
054:             * the actual parameter in XPDL.
055:             */
056:            public Object the_value = null;
057:
058:            /**
059:             * The java class of parameter.
060:             */
061:            public Class the_class = null;
062:
063:            /**
064:             * The length of parameter value. This is not used in standard shark kernel
065:             * implementation, and it is defined only to stay as close as possible
066:             * to WfMC spec.
067:             */
068:            public long the_length = -1;
069:
070:            /**
071:             * The type of parameter. This is not used in standard shark kernel
072:             * implementation, and it is defined only to stay as close as possible
073:             * to WfMC spec.
074:             */
075:            public long the_type = -1;
076:
077:            /**
078:             * Creates instance with all object fields initialized to null possible
079:             * and primitive type fields to -1.
080:             */
081:            public AppParameter() {
082:            }
083:
084:            /**
085:             * Creates an instance with fields set to the given parameter values
086:             * (the_length and the_type fields are initialize to -1).
087:             */
088:            public AppParameter(String _the_actual_name,
089:                    String _the_formal_name, String _the_mode,
090:                    Object _the_value, Class _the_class) {
091:
092:                the_actual_name = _the_actual_name;
093:                the_formal_name = _the_formal_name;
094:                the_mode = _the_mode;
095:                the_value = _the_value;
096:                the_class = _the_class;
097:            } // ctor
098:
099:            /**
100:             * Creates an instance with fields set to the given parameter values.
101:             */
102:            public AppParameter(String _the_actual_name,
103:                    String _the_formal_name, String _the_mode,
104:                    Object _the_value, Class _the_class, long _the_length_,
105:                    long _the_type_) {
106:                the_actual_name = _the_actual_name;
107:                the_formal_name = _the_formal_name;
108:                the_mode = _the_mode;
109:                the_value = _the_value;
110:                the_class = _the_class;
111:                the_length = _the_length_;
112:                the_type = _the_type_;
113:            } // ctor
114:
115:            public String toString() {
116:                return "[APN=" + the_actual_name + ", FPN=" + the_formal_name
117:                        + ", MODE=" + the_mode + ", VAL=" + the_value
118:                        + ", CLS=" + the_class + ", LNG=" + the_length
119:                        + ", TYP=" + the_type + "]";
120:            }
121:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.