KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > addressing > miheaders > RelatesTo


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.axis2.addressing.miheaders;
17
18 /**
19  * Class RelatesTo
20  */

21 public class RelatesTo {
22     /**
23      * Field value
24      */

25     private String JavaDoc value;
26
27     /**
28      * Field relationshipType
29      */

30     private String JavaDoc relationshipType;
31
32     /**
33      * Constructor RelatesTo
34      *
35      * @param address
36      */

37     public RelatesTo(String JavaDoc address) {
38         this.value = address;
39     }
40
41     /**
42      * Constructor RelatesTo
43      *
44      * @param value
45      * @param relationshipType
46      */

47     public RelatesTo(String JavaDoc value, String JavaDoc relationshipType) {
48         this.value = value;
49         this.relationshipType = relationshipType;
50     }
51
52     /**
53      * Method getValue
54      *
55      * @return
56      */

57     public String JavaDoc getValue() {
58         return value;
59     }
60
61     /**
62      * Method setValue
63      *
64      * @param value
65      */

66     public void setValue(String JavaDoc value) {
67         this.value = value;
68     }
69
70     /**
71      * Method getRelationshipType
72      *
73      * @return
74      */

75     public String JavaDoc getRelationshipType() {
76         return relationshipType;
77     }
78
79     /**
80      * Method setRelationshipType
81      *
82      * @param relationshipType
83      */

84     public void setRelationshipType(String JavaDoc relationshipType) {
85         this.relationshipType = relationshipType;
86     }
87 }
88
Popular Tags