01: //** Copyright Statement ***************************************************
02: //The Salmon Open Framework for Internet Applications (SOFIA)
03: // Copyright (C) 1999 - 2002, Salmon LLC
04: //
05: // This program is free software; you can redistribute it and/or
06: // modify it under the terms of the GNU General Public License version 2
07: // as published by the Free Software Foundation;
08: //
09: // This program is distributed in the hope that it will be useful,
10: // but WITHOUT ANY WARRANTY; without even the implied warranty of
11: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: // GNU General Public License for more details.
13: //
14: // You should have received a copy of the GNU General Public License
15: // along with this program; if not, write to the Free Software
16: // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: //
18: // For more information please visit http://www.salmonllc.com
19: //** End Copyright Statement ***************************************************
20:
21: package com.salmonllc.personalization;
22:
23: /**
24: * A name/value pair component that represents one class or instance attribute in a Skin.
25: */
26: public class Attribute {
27: String _attribute;
28: String _value;
29: Attribute _next;
30:
31: Attribute(String attribute, String value) {
32: _attribute = attribute;
33: _value = value;
34: }
35:
36: Attribute getNext() {
37: return _next;
38: }
39:
40: void setNext(Attribute next) {
41: _next = next;
42: }
43:
44: public String getAttribute() {
45: return _attribute;
46: }
47:
48: public String getValue() {
49: return _value;
50: }
51:
52: public void setValue(String val) {
53: _value = val;
54: }
55:
56: public String toString() {
57: return _attribute + ":" + _value;
58: }
59: }
|