001: /**
002: *
003: * Licensed to the Apache Software Foundation (ASF) under one or more
004: * contributor license agreements. See the NOTICE file distributed with
005: * this work for additional information regarding copyright ownership.
006: * The ASF licenses this file to You under the Apache License, Version 2.0
007: * (the "License"); you may not use this file except in compliance with
008: * the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS,
014: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */package org.apache.openejb.jee;
018:
019: import javax.xml.bind.annotation.XmlAccessType;
020: import javax.xml.bind.annotation.XmlAccessorType;
021: import javax.xml.bind.annotation.XmlAttribute;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlID;
024: import javax.xml.bind.annotation.XmlTransient;
025: import javax.xml.bind.annotation.XmlType;
026: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
027: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
028: import javax.xml.namespace.QName;
029: import java.util.Properties;
030:
031: /**
032: * The port-component-ref element declares a client dependency
033: * on the container for resolving a Service Endpoint Interface
034: * to a WSDL port. It optionally associates the Service Endpoint
035: * Interface with a particular port-component. This is only used
036: * by the container for a Service.getPort(Class) method call.
037: */
038: @XmlAccessorType(XmlAccessType.FIELD)
039: @XmlType(name="port-component-refType",propOrder={"serviceEndpointInterface","enableMtom","portComponentLink"})
040: public class PortComponentRef {
041:
042: @XmlElement(name="service-endpoint-interface",required=true)
043: protected String serviceEndpointInterface;
044: @XmlElement(name="enable-mtom")
045: protected Boolean enableMtom;
046: @XmlElement(name="port-component-link")
047: protected String portComponentLink;
048: @XmlTransient
049: protected QName qname;
050: @XmlTransient
051: protected Properties properties;
052: @XmlAttribute
053: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
054: @XmlID
055: protected String id;
056:
057: public String getServiceEndpointInterface() {
058: return serviceEndpointInterface;
059: }
060:
061: public void setServiceEndpointInterface(String value) {
062: this .serviceEndpointInterface = value;
063: }
064:
065: public boolean isEnableMtom() {
066: return enableMtom != null && enableMtom;
067: }
068:
069: public void setEnableMtom(boolean value) {
070: this .enableMtom = value;
071: }
072:
073: public String getPortComponentLink() {
074: return portComponentLink;
075: }
076:
077: public void setPortComponentLink(String value) {
078: this .portComponentLink = value;
079: }
080:
081: public QName getQName() {
082: return qname;
083: }
084:
085: public void setQName(QName qname) {
086: this .qname = qname;
087: }
088:
089: public Properties getProperties() {
090: if (properties == null) {
091: properties = new Properties();
092: }
093: return properties;
094: }
095:
096: public String getId() {
097: return id;
098: }
099:
100: public void setId(String value) {
101: this.id = value;
102: }
103:
104: }
|