001: /*
002: * The contents of this file are subject to the terms of the Common Development
003: * and Distribution License (the License). You may not use this file except in
004: * compliance with the License.
005: *
006: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
007: * or http://www.netbeans.org/cddl.txt.
008: *
009: * When distributing Covered Code, include this CDDL Header Notice in each file
010: * and include the License file at http://www.netbeans.org/cddl.txt.
011: * If applicable, add the following below the CDDL Header, with the fields
012: * enclosed by brackets [] replaced by your own identifying information:
013: * "Portions Copyrighted [year] [name of copyright owner]"
014: *
015: * The Original Software is NetBeans. The Initial Developer of the Original
016: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
017: * Microsystems, Inc. All Rights Reserved.
018: */
019:
020: package org.netbeans.modules.sql.project.wsdl;
021:
022: import javax.xml.namespace.QName;
023:
024: public class SQLMapEntry {
025:
026: public static final String REQUEST_REPLY_SERVICE = "requestReplyService";
027:
028: public static final String OPERATION_TAG = "operation";
029:
030: public static final String PORTTYPE_TAG = "portType";
031:
032: public static final String PARTNERLINK_TAG = "partnerLink";
033:
034: public static final String WSDL_FILE_TAG = "wsdlfile";
035:
036: public static final String SQL_FILE_TAG = "sqlfile";
037:
038: public static final String TYPE_TAG = "type";
039:
040: public static final String SQLMAP_TAG = "sql";
041:
042: private String partnerLink;
043:
044: private String portType;
045:
046: private String operation;
047:
048: private String sqlfileName;
049:
050: private String wsdlfileName;
051:
052: private String type;
053:
054: private String roleName;
055:
056: public SQLMapEntry(String partnerLink, String portType,
057: String operation, String sqlfileName, String wsdlFileName,
058: String type) {
059: super ();
060: this .partnerLink = partnerLink;
061: this .portType = portType;
062: this .operation = operation;
063: this .sqlfileName = sqlfileName;
064: this .wsdlfileName = wsdlFileName;
065: this .type = type;
066: this .roleName = wsdlFileName.substring(0, wsdlFileName
067: .indexOf(".wsdl"))
068: + "_myrole";
069: }
070:
071: /**
072: * @return the fileName
073: */
074: public String getSQLFileName() {
075: return sqlfileName;
076: }
077:
078: /**
079: * @return the fileName
080: */
081: public String getWSDLFileName() {
082: return wsdlfileName;
083: }
084:
085: /**
086: * @return the operation
087: */
088: public String getOperation() {
089: return operation;
090: }
091:
092: /**
093: * @return the partnerLink
094: */
095: public QName getPartnerLink() {
096: return QName.valueOf(partnerLink);
097:
098: }
099:
100: /**
101: * @return the portType
102: */
103: public QName getPortType() {
104: return QName.valueOf(portType);
105: }
106:
107: /**
108: * @return the type
109: */
110: public String getType() {
111: return type;
112: }
113:
114: /**
115: * @return the roleName
116: */
117: public String getRoleName() {
118: return roleName;
119: }
120:
121: }
|