Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
VisitContextWrapper |
|
| 1.0;1 |
1 | /* | |
2 | * Licensed to the Apache Software Foundation (ASF) under one | |
3 | * or more contributor license agreements. See the NOTICE file | |
4 | * distributed with this work for additional information | |
5 | * regarding copyright ownership. The ASF licenses this file | |
6 | * to you under the Apache License, Version 2.0 (the | |
7 | * "License"); you may not use this file except in compliance | |
8 | * with the License. You may obtain a copy of the License at | |
9 | * | |
10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
11 | * | |
12 | * Unless required by applicable law or agreed to in writing, | |
13 | * software distributed under the License is distributed on an | |
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
15 | * KIND, either express or implied. See the License for the | |
16 | * specific language governing permissions and limitations | |
17 | * under the License. | |
18 | */ | |
19 | package javax.faces.component.visit; | |
20 | ||
21 | import java.util.Collection; | |
22 | import java.util.Set; | |
23 | ||
24 | import javax.faces.FacesWrapper; | |
25 | import javax.faces.component.UIComponent; | |
26 | import javax.faces.context.FacesContext; | |
27 | ||
28 | /** | |
29 | * @since 2.0 | |
30 | */ | |
31 | 0 | public abstract class VisitContextWrapper extends VisitContext implements FacesWrapper<VisitContext> |
32 | { | |
33 | ||
34 | /** | |
35 | * | |
36 | */ | |
37 | public VisitContextWrapper() | |
38 | 0 | { |
39 | ||
40 | 0 | } |
41 | ||
42 | /** | |
43 | * {@inheritDoc} | |
44 | */ | |
45 | @Override | |
46 | public FacesContext getFacesContext() | |
47 | { | |
48 | 0 | return getWrapped().getFacesContext(); |
49 | } | |
50 | ||
51 | /** | |
52 | * {@inheritDoc} | |
53 | */ | |
54 | @Override | |
55 | public Set<VisitHint> getHints() | |
56 | { | |
57 | 0 | return getWrapped().getHints(); |
58 | } | |
59 | ||
60 | /** | |
61 | * {@inheritDoc} | |
62 | */ | |
63 | @Override | |
64 | public Collection<String> getIdsToVisit() | |
65 | { | |
66 | 0 | return getWrapped().getIdsToVisit(); |
67 | } | |
68 | ||
69 | /** | |
70 | * {@inheritDoc} | |
71 | */ | |
72 | @Override | |
73 | public Collection<String> getSubtreeIdsToVisit(UIComponent component) | |
74 | { | |
75 | 0 | return getWrapped().getSubtreeIdsToVisit(component); |
76 | } | |
77 | ||
78 | public abstract VisitContext getWrapped(); | |
79 | ||
80 | /** | |
81 | * {@inheritDoc} | |
82 | */ | |
83 | @Override | |
84 | public VisitResult invokeVisitCallback(UIComponent component, VisitCallback callback) | |
85 | { | |
86 | 0 | return getWrapped().invokeVisitCallback(component, callback); |
87 | } | |
88 | ||
89 | } |