01: /*
02: * $Header: /cvs/j3dfly/J3dEditor/src/org/jdesktop/j3dedit/scenegrapheditor/sourcecontrol/MethodWithParameter.java,v 1.1 2005/04/20 22:21:20 paulby Exp $
03: *
04: * Sun Public License Notice
05: *
06: * The contents of this file are subject to the Sun Public License Version
07: * 1.0 (the "License"). You may not use this file except in compliance with
08: * the License. A copy of the License is available at http://www.sun.com/
09: *
10: * The Original Code is the Java 3D(tm) Scene Graph Editor.
11: * The Initial Developer of the Original Code is Jan Becicka.
12: * Portions created by Jan Becicka are Copyright (C) 2002.
13: * All Rights Reserved.
14: *
15: * Contributor(s): Jan Becicka.
16: *
17: **/
18: package org.jdesktop.j3dedit.scenegrapheditor.sourcecontrol;
19:
20: import java.lang.reflect.Method;
21:
22: /**
23: *
24: * @author Jan Becicka
25: * @version
26: */
27: public class MethodWithParameter {
28:
29: /** Holds value of property parameter. */
30: private Object parameter;
31:
32: /** Holds value of property method. */
33: private Method method;
34:
35: /** Creates new Pair */
36: public MethodWithParameter(Method m, Object p) {
37: method = m;
38: parameter = p;
39: }
40:
41: public String toString() {
42: return method.getName() + "(" + parameter.toString() + ")";
43: }
44:
45: /** Getter for property parameter.
46: * @return Value of property parameter.
47: */
48: public Object getParameter() {
49: return parameter;
50: }
51:
52: /** Setter for property parameter.
53: * @param parameter New value of property parameter.
54: */
55: public void setParameter(Object parameter) {
56: this .parameter = parameter;
57: }
58:
59: /** Getter for property method.
60: * @return Value of property method.
61: */
62: public Method getMethod() {
63: return method;
64: }
65:
66: /** Setter for property method.
67: * @param method New value of property method.
68: */
69: public void setMethod(Method method) {
70: this.method = method;
71: }
72:
73: }
|