01: /**
02: * $Id: AMLocation.java,v 1.1 2005/06/25 05:34:14 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.common;
14:
15: /**
16: *
17: * @author rt94277
18: */
19: public class AMLocation {
20:
21: /** Creates a new instance of AMLocation */
22: public AMLocation() {
23: }
24:
25: private String name = null; // name.
26: private String dn = null; // dn.
27:
28: /** Default constructor. */
29: public AMLocation(String dn, String name) {
30: this .name = name;
31: this .dn = dn;
32: }
33:
34: /** Get first password. */
35: public String getName() {
36: return name;
37: }
38:
39: /** Set password. */
40: public void setName(String value) {
41: name = value;
42: }
43:
44: /** Get DN. */
45: public String getDn() {
46: return dn;
47: }
48:
49: /** Set DN. */
50: public void setDn(String value) {
51: dn = value;
52: }
53:
54: public String toString() {
55: StringBuffer sb = new StringBuffer();
56: sb.append(dn).append("|").append(name);
57: return sb.toString();
58: }
59:
60: }
|