View Javadoc
1   /*******************************************************************************
2    * Portions created by Sebastian Thomschke are copyright (c) 2005-2011 Sebastian
3    * Thomschke.
4    * 
5    * All Rights Reserved. This program and the accompanying materials
6    * are made available under the terms of the Eclipse Public License v1.0
7    * which accompanies this distribution, and is available at
8    * http://www.eclipse.org/legal/epl-v10.html
9    * 
10   * Contributors:
11   *     Sebastian Thomschke - initial implementation.
12   *******************************************************************************/
13  package net.sf.oval.ogn;
14  
15  import java.lang.reflect.AccessibleObject;
16  
17  /**
18   * @author Sebastian Thomschke
19   *
20   */
21  public class ObjectGraphNavigationResult
22  {
23  	public final Object root;
24  
25  	public final String path;
26  
27  	public final Object targetParent;
28  
29  	/**
30  	 * field or method
31  	 */
32  	public final AccessibleObject targetAccessor;
33  
34  	/**
35  	 * accessor's value
36  	 */
37  	public final Object target;
38  
39  	public ObjectGraphNavigationResult(final Object root, final String path, final Object targetParent,
40  			final AccessibleObject targetAccessor, final Object target)
41  	{
42  		this.root = root;
43  		this.path = path;
44  		this.targetParent = targetParent;
45  		this.targetAccessor = targetAccessor;
46  		this.target = target;
47  	}
48  }