KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > wsdl > impl > WSDLFeatureImpl


1 /*
2  * Copyright 2004,2005 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.wsdl.impl;
17
18 import org.apache.wsdl.WSDLFeature;
19
20 /**
21  * @author chathura@opensource.lk
22  */

23 public class WSDLFeatureImpl extends ComponentImpl implements WSDLFeature {
24     /**
25      * Field name
26      */

27     private String JavaDoc name;
28
29     /**
30      * Field required
31      */

32     private boolean required;
33
34     /**
35      * Method getName
36      *
37      * @return
38      */

39     public String JavaDoc getName() {
40         return name;
41     }
42
43     /**
44      * Method setName
45      *
46      * @param name
47      */

48     public void setName(String JavaDoc name) {
49         this.name = name;
50     }
51
52     /**
53      * Method isRequired
54      *
55      * @return
56      */

57     public boolean isRequired() {
58         return required;
59     }
60
61     /**
62      * Method setRequired
63      *
64      * @param required
65      */

66     public void setRequired(boolean required) {
67         this.required = required;
68     }
69 }
70
Popular Tags