source: trunk/org/expeditee/simple/SVariable.java@ 4

Last change on this file since 4 was 4, checked in by davidb, 16 years ago

Starting source code to Expeditee

File size: 666 bytes
Line 
1package org.expeditee.simple;
2
3/**
4 * Class for a generic variable.
5 *
6 * @author mrww1
7 *
8 */
9public abstract class SVariable<T> {
10 public static final String prefix = "$";
11
12 protected static final String separator = ".";
13
14 protected String name_;
15
16 protected T value_;
17
18 public SVariable(String name, T value) {
19 name_ = name;
20 value_ = value;
21 }
22
23 public SVariable() {
24 }
25
26 public String getName() {
27 return name_;
28 }
29
30 public T getValue() {
31 return value_;
32 }
33
34 protected void setName(String newName) {
35 name_ = newName;
36 }
37
38 public String stringValue() {
39 return value_.toString();
40 }
41
42 public abstract void setValue(SVariable<T> v) throws Exception;
43}
Note: See TracBrowser for help on using the repository browser.