001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)EndpointInfo.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.ui.runtime.verifier;
030:
031: import java.util.List;
032:
033: /**
034: * This class is used as a model for information about an Endpoint
035: */
036: public class EndpointInfo {
037:
038: /**
039: * endpoint name
040: */
041: private String mName;
042:
043: /**
044: * corresponding component
045: */
046: private String mComponentName;
047:
048: /**
049: * corresponding SU name
050: */
051: private String mServiceUnitName;
052:
053: /**
054: * list of application variables
055: */
056: private List mAppVarList;
057:
058: /**
059: * list of application configurations
060: */
061: private List mAppConfigList;
062:
063: /**
064: * Constructor
065: */
066: public EndpointInfo() {
067:
068: }
069:
070: /**
071: * Constructor
072: */
073: public EndpointInfo(String endpointName, String componentName,
074: String serviceUnitName, List appVarList, List appConfigList) {
075: this .mName = endpointName;
076: this .mComponentName = componentName;
077: this .mServiceUnitName = serviceUnitName;
078: this .mAppVarList = appVarList;
079: this .mAppConfigList = appConfigList;
080: }
081:
082: /**
083: * getter for endpointName
084: * @returns String the endpointName
085: */
086: public String getEndpointName() {
087: return mName;
088: }
089:
090: /**
091: * getter for componentName
092: * @returns String the componentName
093: */
094: public String getComponentName() {
095: return mComponentName;
096: }
097:
098: /**
099: * getter for serviceunitname
100: * @returns String the serviceunitname
101: */
102: public String getServiceUnitName() {
103: return mServiceUnitName;
104: }
105:
106: /**
107: * getter for list of application variables used
108: * @returns List list of application variables
109: * used by this endpoint
110: */
111: public List getApplicationVariables() {
112: return mAppVarList;
113: }
114:
115: /**
116: * getter for list of application configurations used
117: * @returns List list of application configurations associated
118: * with this endpoint
119: */
120: public List getApplicationConfigurations() {
121: return mAppConfigList;
122: }
123:
124: /**
125: * setter for endpointName
126: * @param name the endpointName
127: */
128: public void setEndpointName(String name) {
129: mName = name;
130: }
131:
132: /**
133: * setter for componentName
134: * @param componentName the componentName
135: */
136: public void setComponentName(String componentName) {
137: mComponentName = componentName;
138: }
139:
140: /**
141: * setter for serviceunitname
142: * @param serviceunitName the serviceunitname
143: */
144: public void setServiceUnitName(String serviceunitName) {
145: mServiceUnitName = serviceunitName;
146: }
147:
148: /**
149: * setter for list of application variables used
150: * @param appVarList list of application variables
151: * used by this endpoint
152: */
153: public void setApplicationVariables(List appVarList) {
154: mAppVarList = appVarList;
155: }
156:
157: /**
158: * setter for list of application configurations used
159: * @param appConfigList list of application configurations associated
160: * with this endpoint
161: */
162: public void setApplicationConfigurations(List appConfigList) {
163: mAppConfigList = appConfigList;
164: }
165:
166: /**
167: * This method provides a String representation for an EndpointInfo object
168: */
169: public String toString() {
170: StringBuffer result = new StringBuffer();
171: result
172: .append(" EndpointName=" + mName + " ServiceUnitName="
173: + mServiceUnitName + " ComponentName="
174: + mComponentName);
175: if (mAppVarList != null) {
176: result.append("Application Variables: " + mAppVarList);
177: }
178: if (mAppConfigList != null) {
179: result.append("Application Configuration List"
180: + mAppConfigList);
181: }
182: return result.toString();
183: }
184: }
|