KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > description > PhaseRule


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.description;
17
18 /**
19  * Class PhaseRule
20  */

21 public class PhaseRule {
22
23     // can be either name of phase or handler
24

25     /**
26      * Field before
27      */

28     private String JavaDoc before;
29
30     // can be either name of phase or handler
31

32     /**
33      * Field after
34      */

35     private String JavaDoc after;
36
37     /**
38      * Field phaseName
39      */

40     private String JavaDoc phaseName;
41
42     /**
43      * Field phaseFirst
44      */

45     private boolean phaseFirst;
46
47     /**
48      * Field phaseLast
49      */

50     private boolean phaseLast;
51
52     /**
53      * Constructor PhaseRule
54      */

55     public PhaseRule() {
56         this.before = "";
57         this.after = "";
58         this.phaseName = "";
59     }
60     
61     public PhaseRule(String JavaDoc phaseName) {
62            this.before = "";
63            this.after = "";
64            this.phaseName = phaseName;
65        }
66
67     /**
68      * Method getBefore
69      *
70      * @return
71      */

72     public String JavaDoc getBefore() {
73         return before;
74     }
75
76     /**
77      * Method setBefore
78      *
79      * @param before
80      */

81     public void setBefore(String JavaDoc before) {
82         this.before = before;
83     }
84
85     /**
86      * Method getAfter
87      *
88      * @return
89      */

90     public String JavaDoc getAfter() {
91         return after;
92     }
93
94     /**
95      * Method setAfter
96      *
97      * @param after
98      */

99     public void setAfter(String JavaDoc after) {
100         this.after = after;
101     }
102
103     /**
104      * Method getPhaseName
105      *
106      * @return
107      */

108     public String JavaDoc getPhaseName() {
109         return phaseName;
110     }
111
112     /**
113      * Method setPhaseName
114      *
115      * @param phaseName
116      */

117     public void setPhaseName(String JavaDoc phaseName) {
118         this.phaseName = phaseName;
119     }
120
121     /**
122      * Method isPhaseFirst
123      *
124      * @return
125      */

126     public boolean isPhaseFirst() {
127         return phaseFirst;
128     }
129
130     /**
131      * Method setPhaseFirst
132      *
133      * @param phaseFirst
134      */

135     public void setPhaseFirst(boolean phaseFirst) {
136         this.phaseFirst = phaseFirst;
137     }
138
139     /**
140      * Method isPhaseLast
141      *
142      * @return
143      */

144     public boolean isPhaseLast() {
145         return phaseLast;
146     }
147
148     /**
149      * Method setPhaseLast
150      *
151      * @param phaseLast
152      */

153     public void setPhaseLast(boolean phaseLast) {
154         this.phaseLast = phaseLast;
155     }
156 }
157
Popular Tags