Source Code Cross Referenced for IncludePartThemeVariant.java in  » J2EE » Pustefix » de » schlund » pfixcore » editor2 » core » dom » 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 » J2EE » Pustefix » de.schlund.pfixcore.editor2.core.dom 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * This file is part of PFIXCORE.
003:         *
004:         * PFIXCORE is free software; you can redistribute it and/or modify
005:         * it under the terms of the GNU Lesser General Public License as published by
006:         * the Free Software Foundation; either version 2 of the License, or
007:         * (at your option) any later version.
008:         *
009:         * PFIXCORE is distributed in the hope that it will be useful,
010:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
011:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
012:         * GNU Lesser General Public License for more details.
013:         *
014:         * You should have received a copy of the GNU Lesser General Public License
015:         * along with PFIXCORE; if not, write to the Free Software
016:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
017:         */
018:
019:        package de.schlund.pfixcore.editor2.core.dom;
020:
021:        import java.util.Collection;
022:
023:        import org.w3c.dom.Node;
024:
025:        import de.schlund.pfixcore.editor2.core.exception.EditorIOException;
026:        import de.schlund.pfixcore.editor2.core.exception.EditorParsingException;
027:        import de.schlund.pfixcore.editor2.core.exception.EditorSecurityException;
028:
029:        /**
030:         * Represents the piece of an include part containing all information
031:         * corresponding to a specific theme.
032:         * 
033:         * @author Sebastian Marsching <sebastian.marsching@1und1.de>
034:         */
035:        public interface IncludePartThemeVariant extends
036:                Comparable<IncludePartThemeVariant> {
037:            /**
038:             * Returns theme of this part
039:             * 
040:             * @return Theme this part is used for
041:             */
042:            Theme getTheme();
043:
044:            /**
045:             * Returns the include part this variant belongs to
046:             * 
047:             * @return IncludePart for this theme specific part
048:             */
049:            IncludePart getIncludePart();
050:
051:            /**
052:             * Returns the XML Node containing the content of this InlcudePart for the
053:             * selected theme
054:             * 
055:             * @return XML Node for the given theme
056:             */
057:            Node getXML();
058:
059:            /**
060:             * Sets the content of this IncludePart for the selected theme.
061:             * Does the same as {@link #setXML(Node, boolean)} with <code>indent</code>
062:             * set to <code>true</code>.
063:             * 
064:             * @param xml
065:             *            XML Node containing the content to save
066:             * @throws EditorIOException
067:             * @throws EditorParsingException
068:             * @throws EditorSecurityException
069:             */
070:            void setXML(Node xml) throws EditorIOException,
071:                    EditorParsingException, EditorSecurityException;
072:
073:            /**
074:             * Sets the content of this IncludePart for the selected theme
075:             * 
076:             * @param xml XML Node containing the content to save
077:             * @param indent if <code>true</code> content will be saved in "pretty"
078:             *               format. 
079:             * @throws EditorIOException
080:             * @throws EditorParsingException
081:             * @throws EditorSecurityException
082:             */
083:            void setXML(Node xml, boolean indent) throws EditorIOException,
084:                    EditorParsingException, EditorSecurityException;
085:
086:            /**
087:             * Returns all include parts this IncludePart is depending on. Actually
088:             * IncludePartThemeVariant objects are returned to honor the fact, that this
089:             * IncludePart depends on a specific version of another IncludePart. This
090:             * method returns all variants of an IncludePart this part is depending on -
091:             * not just the variant for a specific ThemeList.
092:             * 
093:             * @param recursive
094:             *            If set to <code>true</code> all dependendencies, including
095:             *            those which are dependencies of other dependencies themselves
096:             *            are included in the returned list
097:             * @return All dependend include parts
098:             * @throws EditorParsingException
099:             */
100:            Collection<IncludePartThemeVariant> getIncludeDependencies(
101:                    boolean recursive) throws EditorParsingException;
102:
103:            /**
104:             * Returns all images this Include is depending on. This method returns all
105:             * variants of an IncludePart this part is depending on - not just the
106:             * variant for a specific ThemeList.
107:             * 
108:             * @param recursive
109:             *            If set to <code>true</code> all dependendencies, including
110:             *            those which are dependencies of other dependencies themselves
111:             *            are included in the returned list
112:             * @return All dependend images
113:             * @throws EditorParsingException
114:             * @see Image
115:             */
116:            Collection<Image> getImageDependencies(boolean recursive)
117:                    throws EditorParsingException;
118:
119:            /**
120:             * Returns all include parts this IncludePart is depending on. Actually
121:             * IncludePartThemeVariant objects are returned to honor the fact, that this
122:             * IncludePart depends on a specific version of another IncludePart.
123:             * This list may very depending on the target for which this part is
124:             * rendererd.
125:             * 
126:             * @param target
127:             *            Target to do the lookup for
128:             * @param recursive
129:             *            If set to <code>true</code> all dependendencies, including
130:             *            those which are dependencies of other dependencies themselves
131:             *            are included in the returned list
132:             * @return All dependend include parts
133:             * @throws EditorParsingException
134:             */
135:            Collection<IncludePartThemeVariant> getIncludeDependencies(
136:                    Target target, boolean recursive)
137:                    throws EditorParsingException;
138:
139:            /**
140:             * Returns all images this Include is depending on.
141:             * This list may depend on the given target.
142:             * 
143:             * @param target
144:             *            Target to do the lookup for
145:             * @param recursive
146:             *            If set to <code>true</code> all dependendencies, including
147:             *            those which are dependencies of other dependencies themselves
148:             *            are included in the returned list
149:             * @return All dependend images
150:             * @throws EditorParsingException
151:             * @see Image
152:             */
153:            Collection<Image> getImageDependencies(Target target,
154:                    boolean recursive) throws EditorParsingException;
155:
156:            /**
157:             * Returns pages which are using this IncludePart (directly or inderectly)
158:             * 
159:             * @return All pages depending on this IncludePart
160:             * @see Page
161:             */
162:            Collection<Page> getAffectedPages();
163:
164:            /**
165:             * Returns projects which are using this IncludePart. These are all projects
166:             * which contain at least one page returned by {@link #getAffectedPages()}.
167:             * 
168:             * @return All projects using this IncludePart
169:             */
170:            Collection<Project> getAffectedProjects();
171:
172:            /**
173:             * Returns the MD5 checksum of the serialized XML code. This checksum can
174:             * for example be used to check, whether the include part has been changed.
175:             * If the part does not yet have any content, the special string "0" is
176:             * returned.
177:             * 
178:             * @return MD5 checksum for this part
179:             */
180:            String getMD5();
181:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.