Source Code Cross Referenced for TransactionGoto.java in  » XML » activexml » org » xdev » base » xssl » manage » 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 » XML » activexml » org.xdev.base.xssl.manage 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Created on May 25, 2004
003:         *
004:         * TODO To change the template for this generated file go to
005:         * Window - Preferences - Java - Code Style - Code Templates
006:         */
007:        package org.xdev.base.xssl.manage;
008:
009:        import java.util.ArrayList;
010:        import java.util.HashMap;
011:        import java.util.List;
012:        import org.jdom.Element;
013:
014:        import org.jaxen.XPath;
015:
016:        import org.xdev.base.xssl.XSSLAction;
017:        import org.xdev.base.xssl.XSSLReturn;
018:
019:        /**
020:         * @author AYegorov
021:         *
022:         * TODO To change the template for this generated type comment go to
023:         * Window - Preferences - Java - Code Style - Code Templates
024:         */
025:        public class TransactionGoto extends XSSLReturn {
026:
027:            private Object returnValue = null;
028:
029:            /**
030:             * @param id
031:             * @param properties
032:             */
033:            public TransactionGoto(String id) {
034:                super (id);
035:                // TODO Auto-generated constructor stub
036:            }
037:
038:            /**
039:             * @param id
040:             * @param properties
041:             */
042:            public TransactionGoto(String id, HashMap properties) {
043:                super (id, properties);
044:                // TODO Auto-generated constructor stub
045:            }
046:
047:            protected void set() throws Exception {
048:                XPath xpath = this .getXPathProperty("path");
049:
050:                List actions = xpath.selectNodes(this );
051:
052:                int size = actions.size();
053:
054:                Object action = null;
055:
056:                List returnValues = new ArrayList();
057:
058:                XSSLAction sourceParent = null;
059:                XSSLAction targetParent = (XSSLAction) this 
060:                        .getParentComponent();
061:
062:                List children = targetParent.getChildren();
063:
064:                List newChildren = new ArrayList();
065:
066:                List sourceChildren = null;
067:
068:                int sz = children.size();
069:
070:                for (int j = 0; j < sz; j++) {
071:                    newChildren.add(((Element) children.get(0)).detach());
072:                }
073:
074:                for (int i = 0; i < size; i++) {
075:                    if ((action = actions.get(i)) instanceof  XSSLAction) {
076:                        sourceParent = (XSSLAction) ((XSSLAction) action)
077:                                .getParentComponent();
078:
079:                        newChildren.add(newChildren.indexOf(this ) + 1,
080:                                ((XSSLAction) ((XSSLAction) action)
081:                                        .newInstance(this .getRoot(),
082:                                                targetParent)));
083:
084:                        if (!this .hasProperty("break")
085:                                || this .getBooleanProperty("break")) {
086:                            ((XSSLAction) action).breakExecution();
087:                        }
088:
089:                    }
090:                }
091:
092:                targetParent.setContent(newChildren);
093:
094:                /*if (returnValues.size() == 0) {
095:                	this.returnValue = "";
096:                }
097:                else if (returnValues.size() == 1){
098:                	this.returnValue = returnValues.get(0);
099:                }
100:                else {
101:                	this.returnValue = returnValues;
102:                }*/
103:            }
104:
105:            /* (non-Javadoc)
106:             * @see org.xdev.base.xssl.XSSLReturn#getValue()
107:             */
108:            public Object getObjectValue() {
109:                return this.returnValue;
110:            }
111:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.