Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/IJpaNode.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/IJpaNode.java23
1 files changed, 18 insertions, 5 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/IJpaNode.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/IJpaNode.java
index 71e1631999..c467ec0ebe 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/IJpaNode.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/IJpaNode.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 Oracle. All rights reserved.
+ * 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.
@@ -9,25 +9,38 @@
******************************************************************************/
package org.eclipse.jpt.core.internal;
+import java.util.List;
+
import org.eclipse.core.resources.IResource;
+import org.eclipse.jdt.core.dom.CompilationUnit;
+import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jpt.utility.internal.node.Node;
+import org.eclipse.wst.validation.internal.provisional.core.IMessage;
/**
* Tweak the node interface with JPA-specific protocol.
*/
-public interface IJpaNode extends Node {
+public interface IJpaNode extends Node, IAdaptable
+{
/**
- * Return the JPA project the object belongs to.
+ * Return the JPA project the node belongs to.
*/
IJpaProject jpaProject();
/**
- * Return the resource that most directly contains the object.
+ * Return the resource that most directly contains the node.
* This is used by JpaHelper.
*/
IResource resource();
-
+
+
+ // ********** validation **********
+
+ /**
+ * Adds to the list of current messages
+ */
+ public void addToMessages(List<IMessage> messages, CompilationUnit astRoot);
// ********** covariant overrides **********

Back to the top