1 /* 2 * Copyright 2001-2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.apache.geronimo.ews.ws4j2ee.context.webservices.server; 17 18 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFWSDLPort; 19 20 /*** 21 * This encapsulates the Qname wsdlport name and this is the concrete implementation of the WSCFWSDLPort 22 */ 23 public abstract class AbstractWSCFWSDLPort extends WSCFElement implements WSCFWSDLPort { 24 25 /*** 26 * WSDL Port namespace URI 27 */ 28 protected String namespaceURI; 29 30 /*** 31 * WSDL port local part 32 */ 33 protected String localpart; 34 35 36 ////////////////////////////////jaxb interfacing block///////////////////////////////////// 37 // 38 // protected XsdQNameType jaxbWSDLPort; 39 // 40 // public WSCFWSDLPortImpl(XsdQNameType jaxbWSDLPort){ 41 // 42 // if(null == jaxbWSDLPort){return;} 43 // 44 // this.jaxbWSDLPort = jaxbWSDLPort; 45 // 46 // if(null != jaxbWSDLPort.getValue()){ 47 // this.localpart = jaxbWSDLPort.getValue().getLocalPart(); 48 // this.namespaceURI = jaxbWSDLPort.getValue().getNamespaceURI(); 49 // } 50 // 51 // 52 // } 53 // 54 // 55 // /////////////////////////////////////////////////////////////////////////////////////////// 56 // 57 // 58 // /*** 59 // * The constructor. this will get the naspace and the lacalpart extracted from the element. 60 // * @param e 61 // * @throws WSCFException 62 // */ 63 // public WSCFWSDLPortImpl(Element e) throws WSCFException{ 64 // super(e); 65 // //extract the namespace URI 66 // Element element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_NAMESPACE_URI); 67 // if(null != element){this.namespaceURI = element.getNodeValue();} 68 // 69 // //extract the local part 70 // element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_LOCALPART); 71 // if(null != element){this.localpart = element.getNodeValue();} 72 // 73 // } 74 75 /*** 76 * Gets the local part of the WSDL port element 77 * 78 * @return local part 79 */ 80 public String getLocalpart() { 81 return localpart; 82 } 83 84 /*** 85 * Gets the namespace URI of the WSDL port element 86 * 87 * @return 88 */ 89 public String getNamespaceURI() { 90 return namespaceURI; 91 } 92 93 /*** 94 * @return 95 */ 96 // public XsdQNameType getJaxbWSDLPort() { 97 // return jaxbWSDLPort; 98 // } 99 // 100 }