01: /*
02: * ScarabRenderEngine.java
03: *
04: * Created on 27. april 2006, 16:18
05: *
06: */
07:
08: package org.tigris.scarab.tools.radeox;
09:
10: import org.radeox.api.engine.WikiRenderEngine;
11: import org.radeox.engine.BaseRenderEngine;
12:
13: /**
14: *
15: * @author <a href="mailto:mick@wever.org">Michael Semb Wever</a>
16: * @version $Id$
17: */
18: public final class ScarabRenderEngine extends BaseRenderEngine
19: implements WikiRenderEngine {
20:
21: // Constants -----------------------------------------------------
22:
23: // Attributes ----------------------------------------------------
24:
25: // Static --------------------------------------------------------
26:
27: // Constructors --------------------------------------------------
28:
29: /** Creates a new instance of ScarabRenderEngine */
30: public ScarabRenderEngine() {
31: }
32:
33: // Public --------------------------------------------------------
34:
35: // WikiRenderEngne implementation ----------------------------------------------
36:
37: public boolean exists(String string) {
38: return false;
39: }
40:
41: public boolean showCreate() {
42: return false;
43: }
44:
45: public void appendLink(StringBuffer buffer, String name,
46: String anchor, String string1) {
47: appendLink(buffer, name, anchor);
48: if (anchor != null && anchor.length() > 0) {
49: buffer.setLength(buffer.length() - 1);
50: buffer.append(anchor);
51: }
52: buffer.append("]");
53: }
54:
55: public void appendLink(StringBuffer buffer, String name,
56: String anchor) {
57: buffer.append("[");
58: if (name != null && name.length() > 0) {
59: buffer.append(name);
60: }
61: if (anchor != null && anchor.length() > 0) {
62: buffer.append(anchor);
63: }
64: buffer.append("]");
65: }
66:
67: public void appendCreateLink(StringBuffer buffer, String name,
68: String anchor) {
69: appendLink(buffer, name, anchor);
70: }
71:
72: // Y overrides ---------------------------------------------------
73:
74: // Package protected ---------------------------------------------
75:
76: // Protected -----------------------------------------------------
77:
78: // Private -------------------------------------------------------
79:
80: // Inner classes -------------------------------------------------
81:
82: }
|