View Javadoc

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.view;
20  
21  import java.beans.BeanInfo;
22  import java.io.IOException;
23  import java.util.List;
24  import java.util.Map;
25  import javax.faces.FacesWrapper;
26  import javax.faces.application.Resource;
27  import javax.faces.component.UIComponent;
28  import javax.faces.component.UIViewRoot;
29  import javax.faces.context.FacesContext;
30  
31  /**
32   * @since 2.2
33   */
34  public abstract class ViewDeclarationLanguageWrapper extends ViewDeclarationLanguage 
35      implements FacesWrapper<ViewDeclarationLanguage>
36  {
37  
38      public void buildView(FacesContext context, UIViewRoot view) throws IOException
39      {
40          getWrapped().buildView(context, view);
41      }
42  
43      public UIViewRoot createView(FacesContext context, String viewId)
44      {
45          return getWrapped().createView(context, viewId);
46      }
47  
48      public BeanInfo getComponentMetadata(FacesContext context, Resource componentResource)
49      {
50          return getWrapped().getComponentMetadata(context, componentResource);
51      }
52  
53      public Resource getScriptComponentResource(FacesContext context, Resource componentResource)
54      {
55          return getWrapped().getScriptComponentResource(context, componentResource);
56      }
57  
58      public StateManagementStrategy getStateManagementStrategy(FacesContext context, String viewId)
59      {
60          return getWrapped().getStateManagementStrategy(context, viewId);
61      }
62  
63      public ViewMetadata getViewMetadata(FacesContext context, String viewId)
64      {
65          return getWrapped().getViewMetadata(context, viewId);
66      }
67  
68      public void renderView(FacesContext context, UIViewRoot view) throws IOException
69      {
70          getWrapped().renderView(context, view);
71      }
72  
73      public UIViewRoot restoreView(FacesContext context, String viewId)
74      {
75          return getWrapped().restoreView(context, viewId);
76      }
77  
78      public void retargetAttachedObjects(FacesContext context, UIComponent topLevelComponent, 
79          List<AttachedObjectHandler> handlers)
80      {
81          getWrapped().retargetAttachedObjects(context, topLevelComponent, handlers);
82      }
83  
84      public void retargetMethodExpressions(FacesContext context, UIComponent topLevelComponent)
85      {
86          getWrapped().retargetMethodExpressions(context, topLevelComponent);
87      }
88  
89      public String getId()
90      {
91          return getWrapped().getId();
92      }
93  
94      public boolean viewExists(FacesContext facesContext, String viewId)
95      {
96          return getWrapped().viewExists(facesContext, viewId);
97      }
98  
99      public UIComponent createComponent(FacesContext context, String taglibURI, String tagName,
100         Map<String, Object> attributes)
101     {
102         return getWrapped().createComponent(context, taglibURI, tagName, attributes);
103     }
104 
105     public List<String> calculateResourceLibraryContracts(FacesContext context, String viewId)
106     {
107         return getWrapped().calculateResourceLibraryContracts(context, viewId);
108     }
109     
110     public abstract ViewDeclarationLanguage getWrapped();
111 }