diff options
Diffstat (limited to 'sources/ch/epfl/lamp/util/XMLAttribute.java')
-rw-r--r-- | sources/ch/epfl/lamp/util/XMLAttribute.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sources/ch/epfl/lamp/util/XMLAttribute.java b/sources/ch/epfl/lamp/util/XMLAttribute.java new file mode 100644 index 0000000000..309a4cc621 --- /dev/null +++ b/sources/ch/epfl/lamp/util/XMLAttribute.java @@ -0,0 +1,31 @@ +/* ____ ____ ____ ____ ______ *\ +** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala ** +** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL ** +** /_____/\____/\___/\____/____/ ** +\* */ + +// $Id$ + +package ch.epfl.lamp.util; + +/** An XML attribute. + */ +public class XMLAttribute { + + /** Name of the attribute. + */ + public String name; + + /** Value of the attribute. + */ + public String value; + + public XMLAttribute(String name, String value) { + this.name = name; + this.value = value; + } + + public String toString() { + return name + "=\"" + value + "\""; + } +}
\ No newline at end of file |