01: /**
02: * $Id: AttributeBean.java,v 1.1 2005/06/25 05:34:51 hc109819 Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.admin.console.ssoa;
14:
15: public class AttributeBean implements Comparable {
16: private String name = null;
17: // Value is a reserved bean word, enjoy the use of setting!
18: private String setting = null;
19: private boolean encoded = false;
20:
21: public AttributeBean(String name, String setting) {
22: this .name = name;
23: this .setting = setting;
24: }
25:
26: public AttributeBean(String name, String setting, boolean encoded) {
27: this .name = name;
28: this .setting = setting;
29: this .encoded = encoded;
30: }
31:
32: public String getName() {
33: return name;
34: }
35:
36: public void setName(String name) {
37: this .name = name;
38: }
39:
40: public String getSetting() {
41: return setting;
42: }
43:
44: public void setSetting(String setting) {
45: this .setting = setting;
46: }
47:
48: public boolean getEncoded() {
49: return encoded;
50: }
51:
52: public void setEncoded(boolean encoded) {
53: this .encoded = encoded;
54: }
55:
56: public int compareTo(Object o) {
57: AttributeBean ab = (AttributeBean) o;
58: return this.name.compareToIgnoreCase(ab.getName());
59: }
60: }
|