01: /**
02: * $Id: InstanceBean.java,v 1.2 2005/07/25 18:15:27 pd109850 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.fabric;
14:
15: import com.sun.portal.admin.console.common.PSBaseBean;
16:
17: public class InstanceBean {
18:
19: private String name = null;
20: private String host = null;
21: private String port = null;
22: private String wcType = null;
23:
24: public InstanceBean(String name, String host, String port,
25: String wcType) {
26: this .name = name;
27: this .host = host == null ? "" : host;
28: this .port = port == null ? "" : port;
29: this .wcType = wcType;
30: }
31:
32: public String getName() {
33: return name;
34: }
35:
36: public String getHost() {
37: return host;
38: }
39:
40: public String getPort() {
41: return port;
42: }
43:
44: public String getWcType() {
45: String lWcType = "";
46: if (wcType != null) {
47: lWcType = PSBaseBean.getLocalizedString("fabric", wcType);
48: }
49: return lWcType;
50: }
51: }
|