001 /******************************************************************************* 002 * Portions created by Sebastian Thomschke are copyright (c) 2005-2011 Sebastian 003 * Thomschke. 004 * 005 * All Rights Reserved. This program and the accompanying materials 006 * are made available under the terms of the Eclipse Public License v1.0 007 * which accompanies this distribution, and is available at 008 * http://www.eclipse.org/legal/epl-v10.html 009 * 010 * Contributors: 011 * Sebastian Thomschke - initial implementation. 012 *******************************************************************************/ 013 package net.sf.oval.ogn; 014 015 import java.lang.reflect.AccessibleObject; 016 017 /** 018 * @author Sebastian Thomschke 019 * 020 */ 021 public class ObjectGraphNavigationResult 022 { 023 public final Object root; 024 025 public final String path; 026 027 public final Object targetParent; 028 029 /** 030 * field or method 031 */ 032 public final AccessibleObject targetAccessor; 033 034 /** 035 * accessor's value 036 */ 037 public final Object target; 038 039 public ObjectGraphNavigationResult(final Object root, final String path, final Object targetParent, 040 final AccessibleObject targetAccessor, final Object target) 041 { 042 this.root = root; 043 this.path = path; 044 this.targetParent = targetParent; 045 this.targetAccessor = targetAccessor; 046 this.target = target; 047 } 048 }