View Javadoc

1   
2   package hotsax.html.sax;
3   
4   public class Attribute extends Lval {
5       private String name;
6       private String value;
7   
8       public Attribute(String name, String value)
9       {
10              super(name);
11              this.name = name;
12              this.value = value;
13      }
14  
15      public String toString() {
16              return ": " + name + "=\"" + value + "\"";
17      }
18  
19  
20      public String getName() { return name; }
21      public String getValue() { return value; }
22  }