Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvbhadrir2005-04-04 17:18:43 +0000
committervbhadrir2005-04-04 17:18:43 +0000
commiteec7a3b602c22c61d9ba74e496c7b72af746b1a4 (patch)
treede8a8fa1f607628c1ed8504b59bcf153be8c7a86 /plugins/org.eclipse.wst.validation/validate_core/org/eclipse/wst
parentd233bbf7921c1ab6fa456056b9e4c8b1f2269feb (diff)
downloadwebtools.common-eec7a3b602c22c61d9ba74e496c7b72af746b1a4.tar.gz
webtools.common-eec7a3b602c22c61d9ba74e496c7b72af746b1a4.tar.xz
webtools.common-eec7a3b602c22c61d9ba74e496c7b72af746b1a4.zip
Validation Api javadoc
Diffstat (limited to 'plugins/org.eclipse.wst.validation/validate_core/org/eclipse/wst')
-rw-r--r--plugins/org.eclipse.wst.validation/validate_core/org/eclipse/wst/validation/core/IReporter.java20
1 files changed, 7 insertions, 13 deletions
diff --git a/plugins/org.eclipse.wst.validation/validate_core/org/eclipse/wst/validation/core/IReporter.java b/plugins/org.eclipse.wst.validation/validate_core/org/eclipse/wst/validation/core/IReporter.java
index 9459144b7..2396beafa 100644
--- a/plugins/org.eclipse.wst.validation/validate_core/org/eclipse/wst/validation/core/IReporter.java
+++ b/plugins/org.eclipse.wst.validation/validate_core/org/eclipse/wst/validation/core/IReporter.java
@@ -31,9 +31,10 @@ import java.util.List;
* Any messages which need to be displayed to the user are done through this class, and if the user
* cancels the current function, this class is the one which registers the cancellation.
*
- * [issue: CS - I think it would be useful to say something about the IReporter life cycle.
- * is an instance created when validation begins and then removed when validation ends? Does the
- * IReporter provide access to all messages ... or just the ones created by the associated validator?
+ * The IReporter instance is created at the time validation begins and ends when validation is complete.
+ * There is only one IReporter instance created for all validators that are run on a IResource. The IResource
+ * provides a way to get messages put out each validator and add and delete messages for one validator
+ * at a time.
* ]
*/
public interface IReporter {
@@ -110,10 +111,7 @@ public interface IReporter {
* The IValidator parameter must not be null.
* </p>
* @param origin
- * originator validator of the message.
- *
- * [issue : CS - it would be very nice if we could give the impression that there's just 'one reporter per validator'.
- * This would let us simplify many of our methods and enforce that an IValidator is only modifying its own reports.]
+ * originator validator of the message.
*/
public abstract void removeAllMessages(IValidator origin);
@@ -130,13 +128,9 @@ public interface IReporter {
* @param origin
* originator validator of the message.
* @param object
- * Object to which the message belongs.
+ * Object to which the message belongs. Object is the target object that was set on the IMessage
+ * when adding the message as problem marker.
*
- * [issue : CS - it would help to say a bit more about the 'object'. Is this object something that only
- * needs to exist for the life span of the validation or is this something that's longer lasting? I assume
- * the object is transient and doesn't need to be persisted? If the object a significant part of the API why
- * is it not associated with an IMessage or passed in as a parameter to addMessage()? It seems strange that the
- * 'object' only comes into play when removing messages.]
*/
public abstract void removeAllMessages(IValidator origin, Object object);

Back to the top