Source code: com/aendvari/tethys/context/inset/Inset.java
1 /*
2 * Inset.java
3 *
4 * Copyright (c) 2001, 2002 Aendvari, Ltd. All Rights Reserved.
5 *
6 * See the file LICENSE for terms of use.
7 *
8 */
9
10 package com.aendvari.tethys.context.inset;
11
12 import com.aendvari.tethys.context.*;
13
14
15 /**
16 * <p>This class is used to hold an inset definition.</p>
17 *
18 * @author Scott Milne
19 *
20 */
21
22 public class Inset extends Context
23 {
24 /* Variables */
25
26 /** The content of the inset. */
27 private String content;
28
29
30 /* Constructors */
31
32 /**
33 * Constructs an <code>Inset</code> from the supplied values.
34 *
35 * @param location The location of the inset. This includes the inset name.
36 * @param content The content of the inset.
37 *
38 */
39
40 public Inset(String location, String content)
41 {
42 super(location);
43
44 this.content = content;
45 }
46
47
48 /* Attributes */
49
50 public void setContent(String content) { this.content = content; }
51 public String getContent() { return content; }
52
53
54 /* Debug */
55
56 public String toString()
57 {
58 String toString = "Inset=[";
59
60 toString += "location=" + getLocation() + ",";
61 toString += "content=" + getContent() + ",";
62 toString += "]";
63
64 return toString;
65 }
66 }
67