001    /*
002     * Copyright 2010 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may      obtain a copy of the License at
007     *
008     *      http://www.osedu.org/licenses/ECL-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.student.contract.model;
017    
018    import java.util.ArrayList;
019    import java.util.List;
020    
021    /**
022     *
023     * @author nwright
024     */
025    public class ServiceMethod {
026    
027        private String service;
028    
029        public String getService() {
030            return service;
031        }
032    
033        public void setService(String service) {
034            this.service = service;
035        }
036        private String name;
037    
038        /**
039         * Get the value of name
040         *
041         * @return the value of name
042         */
043        public String getName() {
044            return name;
045        }
046    
047        /**
048         * Set the value of name
049         *
050         * @param name new value of name
051         */
052        public void setName(String name) {
053            this.name = name;
054        }
055        private String url;
056    
057        public String getUrl() {
058            return url;
059        }
060    
061        public void setUrl(String url) {
062            this.url = url;
063        }
064        private String description;
065    
066        public String getDescription() {
067            return description;
068        }
069    
070        public void setDescription(String description) {
071            this.description = description;
072        }
073        private List<ServiceMethodParameter> parameters;
074    
075        public List<ServiceMethodParameter> getParameters() {
076            if (parameters == null) {
077                parameters = new ArrayList();
078            }
079            return parameters;
080        }
081    
082        public void setParameters(List<ServiceMethodParameter> parameters) {
083            this.parameters = parameters;
084        }
085        private ServiceMethodReturnValue returnValue;
086    
087        public ServiceMethodReturnValue getReturnValue() {
088            return returnValue;
089        }
090    
091        public void setReturnValue(ServiceMethodReturnValue returnValue) {
092            this.returnValue = returnValue;
093        }
094        private List<ServiceMethodError> errors;
095    
096        public List<ServiceMethodError> getErrors() {
097            if (errors == null) {
098                errors = new ArrayList();
099            }
100            return errors;
101        }
102    
103        public void setErrors(List<ServiceMethodError> errors) {
104            this.errors = errors;
105        }
106        
107    
108        private String implNotes;
109    
110        public String getImplNotes() {
111            return implNotes;
112        }
113    
114        public void setImplNotes(String implNotes) {
115            this.implNotes = implNotes;
116        }
117        
118        private boolean deprecated;
119    
120        public boolean isDeprecated() {
121            return deprecated;
122        }
123    
124        public void setDeprecated(boolean deprecated) {
125            this.deprecated = deprecated;
126        }
127        
128    }