01: // Copyright 2006, 2007 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // Unless required by applicable law or agreed to in writing, software
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14:
15: package org.apache.tapestry.internal.transform.pages;
16:
17: import org.apache.tapestry.annotations.Meta;
18: import org.apache.tapestry.annotations.Retain;
19: import org.apache.tapestry.internal.transform.InheritedAnnotation;
20:
21: /**
22: * Test class used with
23: * {@link org.apache.tapestry.internal.services.InternalClassTransformationImplTest}
24: */
25: @Meta("foo=bar")
26: @InheritedAnnotation
27: public class ParentClass {
28: private int _parentField;
29:
30: // Named so that we can force a name conflict
31:
32: private String _$conflictField;
33:
34: @Retain
35: private boolean _annotatedField;
36:
37: public void doNothingParentMethod() {
38:
39: }
40:
41: public void _$conflictMethod() {
42:
43: }
44:
45: public String get$conflictField() {
46: return _$conflictField;
47: }
48:
49: public void set$conflictField(String field) {
50: _$conflictField = field;
51: }
52:
53: public boolean isAnnotatedField() {
54: return _annotatedField;
55: }
56:
57: public void setAnnotatedField(boolean annotatedField) {
58: _annotatedField = annotatedField;
59: }
60:
61: public int getParentField() {
62: return _parentField;
63: }
64:
65: public void setParentField(int parentField) {
66: _parentField = parentField;
67: }
68:
69: }
|