View Javadoc

1   /*
2    * Copyright 2010 The Kuali Foundation
3    *
4    * Licensed under the Educational Community 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.osedu.org/licenses/ECL-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.kuali.student.contract.model;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  /**
22   *
23   * @author nwright
24   */
25  public class ServiceMethod {
26  
27      private String service;
28  
29      public String getService() {
30          return service;
31      }
32  
33      public void setService(String service) {
34          this.service = service;
35      }
36      private String name;
37  
38      /**
39       * Get the value of name
40       *
41       * @return the value of name
42       */
43      public String getName() {
44          return name;
45      }
46  
47      /**
48       * Set the value of name
49       *
50       * @param name new value of name
51       */
52      public void setName(String name) {
53          this.name = name;
54      }
55      private String url;
56  
57      public String getUrl() {
58          return url;
59      }
60  
61      public void setUrl(String url) {
62          this.url = url;
63      }
64      private String description;
65  
66      public String getDescription() {
67          return description;
68      }
69  
70      public void setDescription(String description) {
71          this.description = description;
72      }
73      private List<ServiceMethodParameter> parameters;
74  
75      public List<ServiceMethodParameter> getParameters() {
76          if (parameters == null) {
77              parameters = new ArrayList();
78          }
79          return parameters;
80      }
81  
82      public void setParameters(List<ServiceMethodParameter> parameters) {
83          this.parameters = parameters;
84      }
85      private ServiceMethodReturnValue returnValue;
86  
87      public ServiceMethodReturnValue getReturnValue() {
88          return returnValue;
89      }
90  
91      public void setReturnValue(ServiceMethodReturnValue returnValue) {
92          this.returnValue = returnValue;
93      }
94      private List<ServiceMethodError> errors;
95  
96      public List<ServiceMethodError> getErrors() {
97          if (errors == null) {
98              errors = new ArrayList();
99          }
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 }