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 org.apache.myfaces.el.unified;
20  
21  import javax.faces.el.EvaluationException;
22  import javax.faces.el.PropertyNotFoundException;
23  import javax.faces.el.PropertyResolver;
24  
25  /**
26   * @author Mathias Broekelmann (latest modification by $Author: slessard $)
27   * @version $Revision: 699848 $ $Date: 2008-09-28 11:12:21 -0500 (Sun, 28 Sep 2008) $
28   */
29  @SuppressWarnings("deprecation")
30  public class NoOpPropertyResolver extends PropertyResolver
31  {
32  
33      @SuppressWarnings("unchecked")
34      @Override
35      public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException
36      {
37          return null;
38      }
39  
40      @SuppressWarnings("unchecked")
41      @Override
42      public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException
43      {
44          return null;
45      }
46  
47      @Override
48      public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException
49      {
50          return null;
51      }
52  
53      @Override
54      public Object getValue(Object base, Object property) throws EvaluationException, PropertyNotFoundException
55      {
56          return null;
57      }
58  
59      @Override
60      public boolean isReadOnly(Object base, int index) throws EvaluationException, PropertyNotFoundException
61      {
62          return false;
63      }
64  
65      @Override
66      public boolean isReadOnly(Object base, Object property) throws EvaluationException, PropertyNotFoundException
67      {
68          return false;
69      }
70  
71      @Override
72      public void setValue(Object base, int index, Object value) throws EvaluationException, PropertyNotFoundException
73      {
74      }
75  
76      @Override
77      public void setValue(Object base, Object property, Object value) throws EvaluationException,
78              PropertyNotFoundException
79      {
80      }
81  
82  }