Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AbstractUIElement |
|
| 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.component.base; | |
17 | ||
18 | import org.seasar.uruma.component.UIElement; | |
19 | import org.seasar.uruma.component.UIElementVisitor; | |
20 | ||
21 | /** | |
22 | * {@link UIElement} を表す基底クラスです。<br /> | |
23 | * | |
24 | * @author y-komori | |
25 | */ | |
26 | 2836 | public abstract class AbstractUIElement implements UIElement { |
27 | private String path; | |
28 | ||
29 | private String basePath; | |
30 | ||
31 | private String location; | |
32 | ||
33 | /* | |
34 | * @see org.seasar.uruma.component.UIElement#getPath() | |
35 | */ | |
36 | public String getPath() { | |
37 | 736 | return this.path; |
38 | } | |
39 | ||
40 | /* | |
41 | * @see org.seasar.uruma.component.UIElement#setPath(java.lang.String) | |
42 | */ | |
43 | public void setPath(final String path) { | |
44 | 2820 | this.path = path; |
45 | 2820 | } |
46 | ||
47 | /* | |
48 | * @see org.seasar.uruma.component.UIElement#getBasePath() | |
49 | */ | |
50 | public String getBasePath() { | |
51 | 608 | return this.basePath; |
52 | } | |
53 | ||
54 | /* | |
55 | * @see org.seasar.uruma.component.UIElement#setBasePath(java.lang.String) | |
56 | */ | |
57 | public void setBasePath(final String basePath) { | |
58 | 2824 | this.basePath = basePath; |
59 | 2824 | } |
60 | ||
61 | /* | |
62 | * @see org.seasar.uruma.component.UIElement#getLocation() | |
63 | */ | |
64 | public String getLocation() { | |
65 | 512 | return this.location; |
66 | } | |
67 | ||
68 | /* | |
69 | * @see org.seasar.uruma.component.UIElement#setLocation(java.lang.String) | |
70 | */ | |
71 | public void setLocation(final String location) { | |
72 | 2820 | this.location = location; |
73 | 2820 | } |
74 | ||
75 | /* | |
76 | * @see java.lang.Object#toString() | |
77 | */ | |
78 | @Override | |
79 | public String toString() { | |
80 | 0 | return path; |
81 | } | |
82 | ||
83 | /* | |
84 | * @see org.seasar.uruma.component.UIElementVisitorAcceptor#accept(org.seasar.uruma.component.UIElementVisitor) | |
85 | */ | |
86 | public void accept(final UIElementVisitor visitor) { | |
87 | 0 | visitor.visit(this); |
88 | 0 | } |
89 | } |