001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU General Public License as published by the
009: * Free Software Foundation; either version 2 of the License, or (at your option)
010: * any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
014: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
015: * for more details.
016: *
017: * You should have received a copy of the GNU General Public License along with
018: * this program; if not, write to the Free Software Foundation, Inc.,
019: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: *
021: *
022: * $Id$
023: */
024: package com.bostechcorp.cbesb.runtime.cbr;
025:
026: import javax.xml.namespace.QName;
027:
028: public class TargetElement {
029:
030: private QName _interface;
031: private QName operation;
032: private QName service;
033: private int timeout;
034:
035: /**
036: * @return the _interface
037: */
038: public QName getInterface() {
039: return _interface;
040: }
041:
042: /**
043: * @param _interface
044: * the _interface to set
045: */
046: public void setInterface(QName _interface) {
047: this ._interface = _interface;
048: }
049:
050: /**
051: * @return the operation
052: */
053: public QName getOperation() {
054: return operation;
055: }
056:
057: /**
058: * @param operation
059: * the operation to set
060: */
061: public void setOperation(QName operation) {
062: this .operation = operation;
063: }
064:
065: /**
066: * @return the service
067: */
068: public QName getService() {
069: return service;
070: }
071:
072: /**
073: * @param service
074: * the service to set
075: */
076: public void setService(QName service) {
077: this .service = service;
078: }
079:
080: /**
081: * @return the timeout
082: */
083: public int getTimeout() {
084: return timeout;
085: }
086:
087: /**
088: * @param timeout
089: * the timeout to set
090: */
091: public void setTimeout(int timeout) {
092: this .timeout = timeout;
093: }
094:
095: public String toString() {
096: StringBuffer buffer = new StringBuffer();
097: buffer.append("\tInterface = " + _interface + "\n");
098: buffer.append("\tOperation = " + operation + "\n");
099: buffer.append("\tService = " + service + "\n");
100: buffer.append("\tTimeout = " + timeout + "\n");
101: return buffer.toString();
102: }
103: }
|