View Javadoc

1   package fr.ove.openmath.jome.ctrl.mml;
2   
3   /***
4   * A class for the representation of an attribute (pair name/value).
5   *
6   * @author © 2000 DIRAT Laurent
7   * @version 1.0 25/05/2000
8   */
9   public class Attribute {
10      /***
11      * The name of the attribute.
12      */
13      private String name;
14      
15      /***
16      * The value of the attribute.
17      */
18      private String value;
19      
20      /***
21      * Sets the name of the attribute.
22      * @param name the name of the attribute.
23      */
24      public void setName(String name) {
25          this.name = name;
26      }
27      
28      /***
29      * Returns the name of the attribute.
30      */
31      public String getName() {
32          return name;
33      }
34      
35      /***
36      * Sets the value of the attribute.
37      * @param value the value of the attribute.
38      */
39      public void setValue(String value) {
40          this.value = value;
41      }
42      
43      /***
44      * Returns the value of the attribute.
45      */
46      public String getValue() {
47          return value;
48      }
49      
50      /***
51      * Returns the string representation of the attribute.
52      */
53      public String toString() {
54          return name + "=\"" + value + "\"";
55      }
56  }
57