1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.locator;
18
19 import java.io.File;
20
21 /***
22 * Jetspeed default Template Descriptor implementation
23 *
24 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
25 * @version $Id: JetspeedTemplateDescriptor.java 516448 2007-03-09 16:25:47Z ate $
26 */
27 public class JetspeedTemplateDescriptor extends JetspeedLocatorDescriptor implements TemplateDescriptor
28 {
29 String absolutePath;
30 String appRelativePath;
31
32 public JetspeedTemplateDescriptor()
33 {
34 super();
35 }
36
37 public JetspeedTemplateDescriptor(LocatorDescriptor locator)
38 {
39 this.setCountry(locator.getCountry());
40 this.setLanguage(locator.getLanguage());
41 this.setMediaType(locator.getMediaType());
42 this.setName(locator.getName());
43 this.setType(locator.getType());
44 }
45
46
47
48
49 public String getAbsolutePath()
50 {
51 return this.absolutePath;
52 }
53
54
55
56
57 public void setAbsolutePath(String path)
58 {
59 this.absolutePath = (new File(path)).getAbsolutePath();
60 }
61
62
63
64 /***
65 * @see Object#clone
66 * @return an instance copy of this object
67 */
68 public Object clone() throws java.lang.CloneNotSupportedException
69 {
70 return super.clone();
71 }
72
73 /***
74 * @return
75 */
76 public String getAppRelativePath()
77 {
78 return appRelativePath;
79 }
80
81 /***
82 * @param string
83 */
84 public void setAppRelativePath(String string)
85 {
86 appRelativePath = string;
87 }
88
89 }