Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Procedures |
|
| 0.0;0 |
1 | /* | |
2 | * Copyright 2004-2008 the Seasar Foundation and the Others. | |
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, | |
13 | * either express or implied. See the License for the specific language | |
14 | * governing permissions and limitations under the License. | |
15 | */ | |
16 | package org.seasar.uruma.procedure.entity; | |
17 | ||
18 | import java.util.ArrayList; | |
19 | import java.util.Collections; | |
20 | import java.util.List; | |
21 | ||
22 | import org.seasar.uruma.util.AssertionUtil; | |
23 | ||
24 | /** | |
25 | * 一つの画面に対応するプロシジャ定義を表すクラスです。<br /> | |
26 | * 本クラスはプロシジャ実行定義ファイルの procedures 要素に対応します。<br /> | |
27 | * | |
28 | * @author y-komori | |
29 | */ | |
30 | 0 | public class Procedures { |
31 | 0 | private List<Sequence> sequences = new ArrayList<Sequence>(); |
32 | ||
33 | /** | |
34 | * プロシジャシーケンスを追加します。<br /> | |
35 | * | |
36 | * @param sequence | |
37 | * プロシジャシーケンス | |
38 | */ | |
39 | public void addSequence(final Sequence sequence) { | |
40 | 0 | AssertionUtil.assertNotNull("sequence", sequence); |
41 | 0 | sequences.add(sequence); |
42 | 0 | } |
43 | ||
44 | /** | |
45 | * プロシジャシーケンスを削除します。<br /> | |
46 | * | |
47 | * @param sequence | |
48 | * 削除対象のプロシジャシーケンス | |
49 | */ | |
50 | public void removeSequence(final Sequence sequence) { | |
51 | 0 | AssertionUtil.assertNotNull("sequence", sequence); |
52 | 0 | sequences.remove(sequence); |
53 | 0 | } |
54 | ||
55 | /** | |
56 | * プロシジャシーケンスの一覧を取得します。<br /> | |
57 | * | |
58 | * @return プロシジャシーケンスの一覧 | |
59 | */ | |
60 | public List<Sequence> getSequences() { | |
61 | 0 | return Collections.unmodifiableList(sequences); |
62 | } | |
63 | } |