blob: 7e715307c9951d86ed22b3491d81c09eb570c2ad [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.core;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jpt.utility.internal.node.Node;
/**
* Tweak the node interface with JPA-specific protocol.
*/
public interface JpaNode extends Node, IAdaptable
{
/**
* Return the JPA project the node belongs to.
*/
JpaProject jpaProject();
/**
* Return the resource that most directly contains the node.
* This is used by JpaHelper.
*/
IResource resource();
// ********** covariant overrides **********
JpaNode parent();
JpaProject root();
}