|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.validation.ValidationState
public final class ValidationState
Keep track of arbitrary validation data, during the course of a validation.
To enable more efficient caching, the validation framework, allows individual validators to cache arbitrary data during the validation process. Use of this object is completely optional.
Since some validators wish to share data with other validators, any validator can see the state data for any other validator, since the id is simply the validator's extension id.
This object is freed at the end of the validation process.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Field Summary | |
---|---|
static java.lang.String |
TriggerResource
Deprecated. This approach is not thread safe, the longer form of the AbstractValidator validate method should be used instead. |
Constructor Summary | |
---|---|
ValidationState()
|
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String id)
Answer the state data for the given validator. |
void |
put(java.lang.String id,
java.lang.Object value)
Save some state information. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TriggerResource
If a resource that is depended on by others is changed, then the dependent resources are validated. The depended on resource, which is the resource that actually changed, is placed into the ValidationState using this id.
AbstractValidator#validate(ValidationEvent, ValidationState, org.eclipse.core.runtime.IProgressMonitor)
Constructor Detail |
---|
public ValidationState()
Method Detail |
---|
public void put(java.lang.String id, java.lang.Object value)
id
- By convention this is the fully qualified validator extension id.
For example: org.eclipse.wst.html.ui.HTMLValidatorvalue
- Any arbitrary data that the validator might find useful. The
validation framework doesn't do anything with this object except
pass it along during the validation process.public java.lang.Object get(java.lang.String id)
id
- By convention this is the fully qualified validator extension point
id. For example org.eclipse.wst.html.ui.HTMLValidator
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |