001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one or more
003     * contributor license agreements.  See the NOTICE file distributed with
004     * this work for additional information regarding copyright ownership.
005     * The ASF licenses this file to You under the Apache License, Version 2.0
006     * (the "License"); you may not use this file except in compliance with
007     * the License.  You may obtain a copy of the License at
008     *
009     *      http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */
017    package org.apache.servicemix.common.wsdl1;
018    
019    import javax.jbi.messaging.MessageExchange.Role;
020    import javax.wsdl.extensions.ExtensibilityElement;
021    import javax.xml.namespace.QName;
022    
023    import java.io.Serializable;
024    import java.net.URI;
025    
026    public class JbiEndpoint implements ExtensibilityElement, Serializable {
027    
028        /**
029         * Generated serial version UID
030         */
031        private static final long serialVersionUID = -3118867357618475968L;
032        
033        protected Boolean required;
034        protected QName elementType;
035        
036        protected Role role;
037        protected URI defaultMep;
038        protected QName defaultOperation;
039        
040        /**
041         * @return Returns the elementType.
042         */
043        public QName getElementType() {
044            return elementType;
045        }
046        /**
047         * @param elementType The elementType to set.
048         */
049        public void setElementType(QName elementType) {
050            this.elementType = elementType;
051        }
052        /**
053         * @return Returns the required.
054         */
055        public Boolean getRequired() {
056            return required;
057        }
058        /**
059         * @param required The required to set.
060         */
061        public void setRequired(Boolean required) {
062            this.required = required;
063        }
064        public Role getRole() {
065            return role;
066        }
067        public void setRole(Role role) {
068            this.role = role;
069        }
070        /**
071         * @return Returns the defaultMep.
072         */
073        public URI getDefaultMep() {
074            return defaultMep;
075        }
076        /**
077         * @param defaultMep The defaultMep to set.
078         */
079        public void setDefaultMep(URI defaultMep) {
080            this.defaultMep = defaultMep;
081        }
082        
083        /**
084         * @return Returns the defaultOperation.
085         */
086        public QName getDefaultOperation() {
087            return defaultOperation;
088        }
089        /**
090         * @param defaultOperation The defaultOperation to set.
091         */
092        public void setDefaultOperation(QName defaultOperation) {
093            this.defaultOperation = defaultOperation;
094        }
095        
096        public String toString() {
097            return "JbiEndpoint[" + 
098                        "required=" + required + ", " +
099                        "elementType=" + elementType + ", " +
100                        "role=" + role + ", " +
101                        "defaultMep=" + defaultMep + "," +
102                        "defaultOperation=" + defaultOperation + "]";
103        }
104        
105    }