Source code: org/alicebot/server/core/util/XMLResourceSpec.java
1 // Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov.
2 // Jad home page: http://www.geocities.com/kpdus/jad.html
3 // Decompiler options: packimports(3)
4
5 package org.alicebot.server.core.util;
6
7 import org.alicebot.server.core.Globals;
8
9 public class XMLResourceSpec
10 implements Cloneable
11 {
12
13 public XMLResourceSpec()
14 {
15 rolloverAtMax = false;
16 rolloverAtRestart = false;
17 }
18
19 public Object clone()
20 {
21 XMLResourceSpec xmlresourcespec = new XMLResourceSpec();
22 xmlresourcespec.description = description != null ? new String(description) : null;
23 xmlresourcespec.path = path != null ? new String(path) : null;
24 xmlresourcespec.root = root != null ? new String(root) : null;
25 xmlresourcespec.stylesheet = stylesheet != null ? new String(stylesheet) : null;
26 xmlresourcespec.encoding = encoding != null ? new String(encoding) : null;
27 xmlresourcespec.dtd = dtd != null ? new String(dtd) : null;
28 xmlresourcespec.backlink = backlink != null ? new String(backlink) : null;
29 xmlresourcespec.starttime = starttime != null ? new String(starttime) : null;
30 xmlresourcespec.rolloverAtMax = rolloverAtMax;
31 xmlresourcespec.rolloverAtRestart = rolloverAtRestart;
32 return xmlresourcespec;
33 }
34
35 public String description;
36 public String path;
37 public String root;
38 public String stylesheet;
39 public String encoding;
40 public String dtd;
41 public String backlink;
42 public String starttime;
43 public boolean rolloverAtMax;
44 public boolean rolloverAtRestart;
45 private static final String RESOURCE_BASE = Globals.getProperty("programd.logging.xml.resource-base", "../resources/");
46 public static final String HTML_ENTITIES_DTD = "<!DOCTYPE ALLOW_HTML_ENTITIES [ <!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin1//EN//HTML\" \"" + RESOURCE_BASE + "DTD/xhtml-lat1.ent\">" + " %HTMLlat1;" + " <!ENTITY % HTMLsymbol PUBLIC" + " \"-//W3C//ENTITIES Symbols//EN//HTML\"" + " \"" + RESOURCE_BASE + "DTD/xhtml-symbol.ent\">" + " %HTMLsymbol;" + " <!ENTITY % HTMLspecial PUBLIC" + " \"-//W3C//ENTITIES Special//EN//HTML\"" + " \"" + RESOURCE_BASE + "DTD/xhtml-special.ent\">" + " %HTMLspecial;" + " ]>";
47
48 }