| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.seasar.teeda.core.mock; |
| 17 | |
|
| 18 | |
import javax.faces.el.EvaluationException; |
| 19 | |
import javax.faces.el.PropertyNotFoundException; |
| 20 | |
import javax.faces.el.PropertyResolver; |
| 21 | |
|
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
public class MockSingleConstructorPropertyResolver extends PropertyResolver { |
| 26 | |
|
| 27 | |
private PropertyResolver originalResolver_; |
| 28 | |
|
| 29 | 1 | public MockSingleConstructorPropertyResolver(PropertyResolver original) { |
| 30 | 1 | originalResolver_ = original; |
| 31 | 1 | } |
| 32 | |
|
| 33 | |
public Class getType(Object base, int index) throws EvaluationException, |
| 34 | |
PropertyNotFoundException { |
| 35 | 0 | return originalResolver_.getType(base, index); |
| 36 | |
} |
| 37 | |
|
| 38 | |
public Class getType(Object base, Object property) |
| 39 | |
throws EvaluationException, PropertyNotFoundException { |
| 40 | 0 | return originalResolver_.getType(base, property); |
| 41 | |
} |
| 42 | |
|
| 43 | |
public Object getValue(Object base, int index) throws EvaluationException, |
| 44 | |
PropertyNotFoundException { |
| 45 | 0 | return originalResolver_.getValue(base, index); |
| 46 | |
} |
| 47 | |
|
| 48 | |
public Object getValue(Object base, Object property) |
| 49 | |
throws EvaluationException, PropertyNotFoundException { |
| 50 | 0 | return originalResolver_.getValue(base, property); |
| 51 | |
} |
| 52 | |
|
| 53 | |
public boolean isReadOnly(Object base, int index) |
| 54 | |
throws EvaluationException, PropertyNotFoundException { |
| 55 | 0 | return originalResolver_.isReadOnly(base, index); |
| 56 | |
} |
| 57 | |
|
| 58 | |
public boolean isReadOnly(Object base, Object property) |
| 59 | |
throws EvaluationException, PropertyNotFoundException { |
| 60 | 0 | return originalResolver_.isReadOnly(base, property); |
| 61 | |
} |
| 62 | |
|
| 63 | |
public void setValue(Object base, int index, Object value) |
| 64 | |
throws EvaluationException, PropertyNotFoundException { |
| 65 | 0 | } |
| 66 | |
|
| 67 | |
public void setValue(Object base, Object property, Object value) |
| 68 | |
throws EvaluationException, PropertyNotFoundException { |
| 69 | 0 | } |
| 70 | |
|
| 71 | |
public PropertyResolver getOriginal() { |
| 72 | 1 | return originalResolver_; |
| 73 | |
} |
| 74 | |
} |