Source Code Cross Referenced for WizardResult.java in  » Content-Management-System » hippo-cms » nl » hippo » cms » wizard » 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 » Content Management System » hippo cms » nl.hippo.cms.wizard 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package nl.hippo.cms.wizard;
002:
003:        import java.util.ArrayList;
004:        import java.util.Iterator;
005:        import java.util.List;
006:
007:        import nl.hippo.cms.wizard.aspects.Aspects;
008:        import nl.hippo.cms.wizard.aspects.PropertyAspect;
009:        import nl.hippo.cms.wizard.aspects.ComponentAspect;
010:        import nl.hippo.cms.wizard.aspects.XpathAspect;
011:
012:        /**
013:         * Helper class that is passed through the selected component path with the Component.fillResult() function,
014:         * to collect the data needed to create the new document. 
015:         * 
016:         * @author a.bogaart@hippo.nl
017:         *
018:         */
019:        public class WizardResult {
020:            private String type;
021:            private StringBuffer path = new StringBuffer();
022:            private String name;
023:            private String extension;
024:            private String sourceURI = "";
025:            private String workflowName = Constants.DEFAULT_RESOURCE_WORKFLOW;
026:            private String pipeline = "";
027:
028:            private List xpaths = new ArrayList();
029:            private List properties = new ArrayList();
030:            private boolean propertiesResult = false;
031:            private boolean xpathsResult = false;
032:
033:            private String resultAction;
034:
035:            private List ids = new ArrayList();
036:
037:            public String getResultAction() {
038:                return resultAction;
039:            }
040:
041:            public void setResultAction(String resultAction) {
042:                this .resultAction = resultAction;
043:            }
044:
045:            public String getExtension() {
046:                return extension;
047:            }
048:
049:            public void setExtension(String extension) {
050:                this .extension = extension;
051:            }
052:
053:            public String getName() {
054:                return name;
055:            }
056:
057:            public void setName(String name) {
058:                this .name = name;
059:            }
060:
061:            public String getPath() {
062:                return path.toString();
063:            }
064:
065:            public String getType() {
066:                return type;
067:            }
068:
069:            public void setType(String type) {
070:                this .type = type;
071:            }
072:
073:            public void setSourceURI(String sourceURI) {
074:                this .sourceURI = sourceURI;
075:            }
076:
077:            public String getSourceURI() {
078:                return sourceURI;
079:            }
080:
081:            public String getDocumentURI() {
082:                String tmpPath = this .path + Constants.URI_DELIMITER
083:                        + this .name + Constants.FILE_DELIMITER + this .extension;
084:                return tmpPath;
085:            }
086:
087:            public String getWorkflowName() {
088:                return workflowName;
089:            }
090:
091:            public void setWorkflowName(String workflowName) {
092:                this .workflowName = workflowName;
093:            }
094:
095:            public String getPipeline() {
096:                return pipeline;
097:            }
098:
099:            public void setPipeline(String pipeline) {
100:                this .pipeline = pipeline;
101:            }
102:
103:            public void addId(String id) {
104:                ids.add(id);
105:                //        addXpaths(aspects.getXpaths(id));
106:                //        addProperties(aspects.getProperties(id));
107:            }
108:
109:            public List getProperties() {
110:                return properties;
111:            }
112:
113:            public List getXpaths() {
114:                return xpaths;
115:            }
116:
117:            public boolean isPropertiesResult() {
118:                return propertiesResult;
119:            }
120:
121:            public void setPropertiesResult(boolean propertiesResult) {
122:                this .propertiesResult = propertiesResult;
123:            }
124:
125:            public boolean isXpathsResult() {
126:                return xpathsResult;
127:            }
128:
129:            public void setXpathsResult(boolean xpathsResult) {
130:                this .xpathsResult = xpathsResult;
131:            }
132:
133:            public void debug() {
134:                System.out
135:                        .println("***************** New Document ********************");
136:                System.out.println("Name: " + getName());
137:                System.out.println("Extension: " + getExtension());
138:                System.out.println("Type: " + getType());
139:                System.out.println("Path: " + getPath());
140:                System.out.println("DocURI: " + getDocumentURI());
141:                System.out.println("Pipeline: " + getPipeline());
142:                System.out.println("SourceURI: " + getSourceURI());
143:                System.out.println("WorkflowName: " + getWorkflowName());
144:                System.out.println("");
145:                System.out
146:                        .println("***************** xpaths ********************");
147:                System.out.println(getXpaths());
148:
149:                System.out.println("");
150:                System.out
151:                        .println("***************** properties ********************");
152:                System.out.println(getProperties());
153:
154:            }
155:
156:            /**
157:             * @param newPath
158:             */
159:            public void addPath(String newPath) {
160:                if (newPath.startsWith("/")) {
161:                    path.delete(0, path.length());
162:                } else {
163:                    path.append("/");
164:                }
165:                path.append(newPath);
166:            }
167:
168:            /**
169:             * @param newPath
170:             */
171:            public void addLowerCasePath(String newPath) {
172:                if (newPath.startsWith("/")) {
173:                    path.delete(0, path.length());
174:                } else {
175:                    path.append("/");
176:                }
177:                path.append(newPath.toLowerCase());
178:            }
179:
180:            public void addXpath(XpathAspect xpath) {
181:                xpaths.add(xpath);
182:            }
183:
184:            public void addProperty(PropertyAspect aspect) {
185:                properties.add(aspect);
186:            }
187:
188:            public void handleAspects(Aspects aspects) {
189:                Iterator it = ids.iterator();
190:                while (it.hasNext()) {
191:                    String id = (String) it.next();
192:                    List myAspects = (List) aspects.getAspectsById(id);
193:                    if (myAspects != null) {
194:                        Iterator it2 = myAspects.iterator();
195:                        while (it2.hasNext()) {
196:                            ComponentAspect asp = (ComponentAspect) it2.next();
197:                            asp.fillResult(this);
198:                        }
199:                    }
200:                }
201:            }
202:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.