001: /*
002: * ParsedObject.java
003: *
004: * Created on 17 August 2003, 10:21
005: */
006:
007: package com.jofti.model;
008:
009: import java.util.Map;
010:
011: /**
012: *
013: * Representation of a parsed object that is used by the introspector.
014: * @author xenephon (xenephon@jofti.com)
015: *
016: *
017: */
018: public class ParsedObject {
019: private Class classValue = null;
020:
021: private Map fieldValues = null;
022:
023: private Map dimensionClassMappings = null;
024:
025: private Map methodValues = null;
026:
027: private boolean isInterface = false;
028:
029: private boolean isProxy;
030:
031: private Map fieldMethods = null;
032:
033: /**
034: * @return Returns the isInterface.
035: */
036: public boolean isInterface() {
037: return isInterface;
038: }
039:
040: /**
041: * @param isInterface The isInterface to set.
042: */
043: public void setInterface(boolean isInterface) {
044: this .isInterface = isInterface;
045: }
046:
047: /**
048: * @return Returns the isProxy.
049: */
050: public boolean isProxy() {
051: return isProxy;
052: }
053:
054: /**
055: * @param isProxy The isProxy to set.
056: */
057: public void setProxy(boolean isProxy) {
058: this .isProxy = isProxy;
059: }
060:
061: /** Getter for property objectValue.
062: * @return Value of property objectValue.
063: *
064: */
065: public java.lang.Object getClassValue() {
066: return classValue;
067: }
068:
069: /** Setter for property objectValue.
070: * @param objectValue New value of property objectValue.
071: *
072: */
073: public void setClassValue(java.lang.Class objectValue) {
074: this .classValue = objectValue;
075: }
076:
077: /** Getter for property fieldValues.
078: * @return Value of property fieldValues.
079: *
080: */
081: public Map getFieldValues() {
082: return fieldValues;
083: }
084:
085: /** Setter for property fieldValues.
086: * @param fieldValues New value of property fieldValues.
087: *
088: */
089: public void setFieldValues(Map fieldValues) {
090: this .fieldValues = fieldValues;
091: }
092:
093: public void addField(Object key, Object field) {
094: fieldValues.put(key, field);
095: }
096:
097: /**
098: * @return Returns the methodValues.
099: */
100: public Map getMethodValues() {
101: return methodValues;
102: }
103:
104: /**
105: * @param methodValues The methodValues to set.
106: */
107: public void setMethodValues(Map methodValues) {
108: this .methodValues = methodValues;
109: }
110:
111: public void addMethod(Object key, Object field) {
112: methodValues.put(key, field);
113: }
114:
115: public Map getDimensionClassMappings() {
116: return dimensionClassMappings;
117: }
118:
119: public void setDimensionClassMappings(Map dimensionClassMappings) {
120: this .dimensionClassMappings = dimensionClassMappings;
121: }
122:
123: public Map getFieldMethods() {
124: return fieldMethods;
125: }
126:
127: public void setFieldMethods(Map fieldMethods) {
128: this.fieldMethods = fieldMethods;
129: }
130: }
|