Source Code Cross Referenced for CmsExtendedHtmlImportDefault.java in  » Content-Management-System » opencms » org » opencms » importexport » 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 » opencms » org.opencms.importexport 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * File   : $Source: /usr/local/cvs/opencms/src/org/opencms/importexport/CmsExtendedHtmlImportDefault.java,v $
003:         * Date   : $Date: 2008-02-27 12:05:48 $
004:         * Version: $Revision: 1.2 $
005:         *
006:         * This library is part of OpenCms -
007:         * the Open Source Content Management System
008:         *
009:         * Copyright (c) 2002 - 2008 Alkacon Software GmbH (http://www.alkacon.com)
010:         *
011:         * This library is free software; you can redistribute it and/or
012:         * modify it under the terms of the GNU Lesser General Public
013:         * License as published by the Free Software Foundation; either
014:         * version 2.1 of the License, or (at your option) any later version.
015:         *
016:         * This library is distributed in the hope that it will be useful,
017:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
018:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
019:         * Lesser General Public License for more details.
020:         *
021:         * For further information about Alkacon Software GmbH, please see the
022:         * company website: http://www.alkacon.com
023:         *
024:         * For further information about OpenCms, please see the
025:         * project website: http://www.opencms.org
026:         * 
027:         * You should have received a copy of the GNU Lesser General Public
028:         * License along with this library; if not, write to the Free Software
029:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
030:         */
031:
032:        package org.opencms.importexport;
033:
034:        /**
035:         * The CmsExtendedHtmlImportManager keeps the default values for the HTML-> OpenCms Template converter.<p>
036:         *
037:         * This default values are saved in the configuration file <code>opencms-importexport.xml</code>.<p>
038:         * 
039:         * @see org.opencms.importexport.CmsImportExportManager#getExtendedHtmlImportDefault()
040:         *
041:         * @author Anja Röttgers
042:         * 
043:         * @version $Revision: 1.2 $
044:         * 
045:         * @since 7.0.2
046:         */
047:        public class CmsExtendedHtmlImportDefault {
048:
049:            /** the destination directory in the OpenCms VFS. */
050:            private String m_destinationDir;
051:
052:            /** the gallery name of the downloads. */
053:            private String m_downloadGallery;
054:
055:            /** the element name of the template. */
056:            private String m_element;
057:
058:            /** the encoding used for all imported input files. */
059:            private String m_encoding;
060:
061:            /** the end pattern for extracting content. */
062:            private String m_endPattern;
063:
064:            /** the image gallery name. */
065:            private String m_imageGallery;
066:
067:            /** the input directory in the "real" file system. */
068:            private String m_inputDir;
069:
070:            /** should broken links be kept. */
071:            private String m_keepBrokenLinks;
072:
073:            /** the external link gallery name. */
074:            private String m_linkGallery;
075:
076:            /** the local use for content definition. */
077:            private String m_locale;
078:
079:            /** the overwrite value new resources. */
080:            private String m_overwrite;
081:
082:            /** the start pattern for extracting content. */
083:            private String m_startPattern;
084:
085:            /** the template use for all pages. */
086:            private String m_template;
087:
088:            /**
089:             * Default Constructor.<p>
090:             */
091:            public CmsExtendedHtmlImportDefault() {
092:
093:                m_overwrite = "true";
094:                m_keepBrokenLinks = "";
095:                m_template = "/system/modules/org.opencms.welcome/templates/empty";
096:                m_startPattern = "";
097:                m_locale = "en";
098:                m_linkGallery = "";
099:                m_encoding = "ISO-8859-1";
100:                m_inputDir = "";
101:                m_imageGallery = "";
102:                m_endPattern = "";
103:                m_element = "body";
104:                m_downloadGallery = "";
105:                m_destinationDir = "";
106:            }
107:
108:            /**
109:             * Returns the destinationDir.<p>
110:             *
111:             * @return the destinationDir
112:             */
113:            public String getDestinationDir() {
114:
115:                return m_destinationDir;
116:            }
117:
118:            /**
119:             * Returns the downloadGallery.<p>
120:             *
121:             * @return the downloadGallery
122:             */
123:            public String getDownloadGallery() {
124:
125:                return m_downloadGallery;
126:            }
127:
128:            /**
129:             * Returns the element.<p>
130:             *
131:             * @return the element
132:             */
133:            public String getElement() {
134:
135:                return m_element;
136:            }
137:
138:            /**
139:             * Returns the encoding.<p>
140:             *
141:             * @return the encoding
142:             */
143:            public String getEncoding() {
144:
145:                return m_encoding;
146:            }
147:
148:            /**
149:             * Returns the endPattern.<p>
150:             *
151:             * @return the endPattern
152:             */
153:            public String getEndPattern() {
154:
155:                return m_endPattern;
156:            }
157:
158:            /**
159:             * Returns the imageGallery.<p>
160:             *
161:             * @return the imageGallery
162:             */
163:            public String getImageGallery() {
164:
165:                return m_imageGallery;
166:            }
167:
168:            /**
169:             * Returns the inputDir.<p>
170:             *
171:             * @return the inputDir
172:             */
173:            public String getInputDir() {
174:
175:                return m_inputDir;
176:            }
177:
178:            /**
179:             * Returns the keepBrokenLinks.<p>
180:             *
181:             * @return the keepBrokenLinks
182:             */
183:            public String getKeepBrokenLinks() {
184:
185:                return m_keepBrokenLinks;
186:            }
187:
188:            /**
189:             * Returns the linkGallery.<p>
190:             *
191:             * @return the linkGallery
192:             */
193:            public String getLinkGallery() {
194:
195:                return m_linkGallery;
196:            }
197:
198:            /**
199:             * Returns the locale.<p>
200:             *
201:             * @return the locale
202:             */
203:            public String getLocale() {
204:
205:                return m_locale;
206:            }
207:
208:            /**
209:             * Returns the overwrite.<p>
210:             *
211:             * @return the overwrite
212:             */
213:            public String getOverwrite() {
214:
215:                return m_overwrite;
216:            }
217:
218:            /**
219:             * Returns the startPattern.<p>
220:             *
221:             * @return the startPattern
222:             */
223:            public String getStartPattern() {
224:
225:                return m_startPattern;
226:            }
227:
228:            /**
229:             * Returns the template.<p>
230:             *
231:             * @return the template
232:             */
233:            public String getTemplate() {
234:
235:                return m_template;
236:            }
237:
238:            /**
239:             * Sets the destinationDir.<p>
240:             *
241:             * @param destinationDir the destinationDir to set
242:             */
243:            public void setDestinationDir(String destinationDir) {
244:
245:                m_destinationDir = destinationDir;
246:            }
247:
248:            /**
249:             * Sets the downloadGallery.<p>
250:             *
251:             * @param downloadGallery the downloadGallery to set
252:             */
253:            public void setDownloadGallery(String downloadGallery) {
254:
255:                m_downloadGallery = downloadGallery;
256:            }
257:
258:            /**
259:             * Sets the element.<p>
260:             *
261:             * @param element the element to set
262:             */
263:            public void setElement(String element) {
264:
265:                m_element = element;
266:            }
267:
268:            /**
269:             * Sets the encoding.<p>
270:             *
271:             * @param encoding the encoding to set
272:             */
273:            public void setEncoding(String encoding) {
274:
275:                m_encoding = encoding;
276:            }
277:
278:            /**
279:             * Sets the endPattern.<p>
280:             *
281:             * @param endPattern the endPattern to set
282:             */
283:            public void setEndPattern(String endPattern) {
284:
285:                m_endPattern = endPattern;
286:            }
287:
288:            /**
289:             * Sets the imageGallery.<p>
290:             *
291:             * @param imageGallery the imageGallery to set
292:             */
293:            public void setImageGallery(String imageGallery) {
294:
295:                m_imageGallery = imageGallery;
296:            }
297:
298:            /**
299:             * Sets the inputDir.<p>
300:             *
301:             * @param inputDir the inputDir to set
302:             */
303:            public void setInputDir(String inputDir) {
304:
305:                m_inputDir = inputDir;
306:            }
307:
308:            /**
309:             * Sets the keepBrokenLinks.<p>
310:             *
311:             * @param keepBrokenLinks the keepBrokenLinks to set
312:             */
313:            public void setKeepBrokenLinks(String keepBrokenLinks) {
314:
315:                m_keepBrokenLinks = keepBrokenLinks;
316:            }
317:
318:            /**
319:             * Sets the linkGallery.<p>
320:             *
321:             * @param linkGallery the linkGallery to set
322:             */
323:            public void setLinkGallery(String linkGallery) {
324:
325:                m_linkGallery = linkGallery;
326:            }
327:
328:            /**
329:             * Sets the locale.<p>
330:             *
331:             * @param locale the locale to set
332:             */
333:            public void setLocale(String locale) {
334:
335:                m_locale = locale;
336:            }
337:
338:            /**
339:             * Sets the overwrite.<p>
340:             *
341:             * @param overwrite the overwrite to set
342:             */
343:            public void setOverwrite(String overwrite) {
344:
345:                m_overwrite = overwrite;
346:            }
347:
348:            /**
349:             * Sets the startPattern.<p>
350:             *
351:             * @param startPattern the startPattern to set
352:             */
353:            public void setStartPattern(String startPattern) {
354:
355:                m_startPattern = startPattern;
356:            }
357:
358:            /**
359:             * Sets the template.<p>
360:             *
361:             * @param template the template to set
362:             */
363:            public void setTemplate(String template) {
364:
365:                m_template = template;
366:            }
367:
368:            /**
369:             * @see java.lang.Object#toString()
370:             */
371:            public String toString() {
372:
373:                StringBuffer result = new StringBuffer();
374:                result.append("\n DestinationDir:").append(getDestinationDir());
375:                result.append("\n InputDir:").append(getInputDir());
376:                result.append("\n DownloadGallery:").append(
377:                        getDownloadGallery());
378:                result.append("\n ImageGallery:").append(getImageGallery());
379:                result.append("\n LinkGallery:").append(getLinkGallery());
380:                result.append("\n Template:").append(getTemplate());
381:                result.append("\n Element:").append(getElement());
382:                result.append("\n Locale:").append(getLocale());
383:                result.append("\n Encoding:").append(getEncoding());
384:                result.append("\n StartPattern:").append(getStartPattern());
385:                result.append("\n EndPattern:").append(getEndPattern());
386:                result.append("\n Overwrite:").append(getOverwrite());
387:                result.append("\n KeepBrokenLinks:").append(
388:                        getKeepBrokenLinks());
389:                return result.toString();
390:            }
391:
392:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.