KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jofti > model > ParsedObject


1 /*
2  * ParsedObject.java
3  *
4  * Created on 17 August 2003, 10:21
5  */

6
7 package com.jofti.model;
8
9
10 import java.util.Map JavaDoc;
11 /**
12  *
13  * Representation of a parsed object that is used by the introspector.
14  * @author xenephon (xenephon@jofti.com)
15  *
16  *
17  */

18 public class ParsedObject
19 {
20     private Class JavaDoc classValue = null;
21         
22     private Map JavaDoc fieldValues = null;
23     
24     private Map JavaDoc dimensionClassMappings =null;
25     
26     private Map JavaDoc methodValues = null;
27     
28     private boolean isInterface =false;
29     
30     private boolean isProxy;
31     
32     private Map JavaDoc fieldMethods = null;
33     
34     /**
35      * @return Returns the isInterface.
36      */

37     public boolean isInterface()
38     {
39         return isInterface;
40     }
41
42     /**
43      * @param isInterface The isInterface to set.
44      */

45     public void setInterface(boolean isInterface)
46     {
47         this.isInterface = isInterface;
48     }
49
50     /**
51      * @return Returns the isProxy.
52      */

53     public boolean isProxy()
54     {
55         return isProxy;
56     }
57
58     /**
59      * @param isProxy The isProxy to set.
60      */

61     public void setProxy(boolean isProxy)
62     {
63         this.isProxy = isProxy;
64     }
65
66     /** Getter for property objectValue.
67      * @return Value of property objectValue.
68      *
69      */

70     public java.lang.Object JavaDoc getClassValue()
71     {
72         return classValue;
73     }
74     
75     /** Setter for property objectValue.
76      * @param objectValue New value of property objectValue.
77      *
78      */

79     public void setClassValue(java.lang.Class JavaDoc objectValue)
80     {
81         this.classValue = objectValue;
82     }
83     
84
85     /** Getter for property fieldValues.
86      * @return Value of property fieldValues.
87      *
88      */

89     public Map JavaDoc getFieldValues()
90     {
91         return fieldValues;
92     }
93     
94     /** Setter for property fieldValues.
95      * @param fieldValues New value of property fieldValues.
96      *
97      */

98     public void setFieldValues(Map JavaDoc fieldValues)
99     {
100         this.fieldValues = fieldValues;
101     }
102     
103  
104     public void addField(Object JavaDoc key, Object JavaDoc field){
105             fieldValues.put(key,field);
106     }
107     /**
108      * @return Returns the methodValues.
109      */

110     public Map JavaDoc getMethodValues() {
111         return methodValues;
112     }
113     /**
114      * @param methodValues The methodValues to set.
115      */

116     public void setMethodValues(Map JavaDoc methodValues) {
117         this.methodValues = methodValues;
118     }
119     
120      public void addMethod(Object JavaDoc key, Object JavaDoc field){
121         methodValues.put(key,field);
122 }
123     public Map JavaDoc getDimensionClassMappings() {
124         return dimensionClassMappings;
125     }
126     public void setDimensionClassMappings(Map JavaDoc dimensionClassMappings) {
127         this.dimensionClassMappings = dimensionClassMappings;
128     }
129     public Map JavaDoc getFieldMethods() {
130         return fieldMethods;
131     }
132     
133     public void setFieldMethods(Map JavaDoc fieldMethods) {
134         this.fieldMethods = fieldMethods;
135     }
136 }
137
Popular Tags