KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.ArrayList JavaDoc;
19 import java.util.List JavaDoc;
20
21 /**
22  * Class FlowImpl
23  */

24 public class FlowImpl implements Flow {
25     /**
26      * Field list
27      */

28     protected final List JavaDoc list;
29
30     /**
31      * Constructor FlowImpl
32      */

33     public FlowImpl() {
34         list = new ArrayList JavaDoc();
35     }
36
37     /**
38      * Method addHandler
39      *
40      * @param handler
41      */

42     public void addHandler(HandlerDescription handler) {
43         list.add(handler);
44     }
45
46     /**
47      * Method getHandler
48      *
49      * @param index
50      * @return
51      */

52     public HandlerDescription getHandler(int index) {
53         return (HandlerDescription) list.get(index);
54     }
55
56     /**
57      * Method getHandlerCount
58      *
59      * @return
60      */

61     public int getHandlerCount() {
62         return list.size();
63     }
64 }
65
Popular Tags