|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.eclipse.wst.validation.Validator
org.eclipse.wst.validation.Validator.V1
public static class Validator.V1
A validator that uses version 1 of the validation framework.
| Nested Class Summary | |
|---|---|
static class |
Validator.V1.V1Copy
|
| Nested classes/interfaces inherited from class org.eclipse.wst.validation.Validator |
|---|
Validator.Level, Validator.V1, Validator.V2 |
| Constructor Summary | |
|---|---|
Validator.V1(ValidatorMetaData vmd,
ValidationConfiguration config,
IProject project)
Create a new version 1 validator. |
|
| Method Summary | |
|---|---|
IValidator |
asIValidator()
|
Validator.V1 |
asV1Validator()
If you are a version 1 validator, answer yourself as one, otherwise answer null. |
Validator |
copy(boolean includeChangeCounts)
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
java.lang.String |
getValidatorClassname()
Answer the name of the class that implements the validator. |
ValidatorMetaData |
getVmd()
|
boolean |
setBuildValidation(boolean buildValidation)
Set whether this validator should be triggered by the build process. |
boolean |
setManualValidation(boolean manualValidation)
Set whether this validator should be triggered as part of a manual validation. |
ValidationResult |
validate(IResource resource,
int kind,
org.eclipse.wst.validation.internal.ValOperation operation,
IProgressMonitor monitor)
Validate the resource. |
void |
validationFinishing(IProject project,
ValidationState state,
IProgressMonitor monitor)
This method will be called when validation is complete. |
| Methods inherited from class org.eclipse.wst.validation.Validator |
|---|
asV2Validator, bumpChangeCountGlobal, bumpChangeCountMessages, clean, compareTo, copy, create, create, getChangeCountGlobal, getChangeCountMessages, getDelegatingId, getMarkerId, getMessage, getMessageSettings, getProject, getSourceId, getVersion, hasGlobalChanges, hashCodeForConfig, isBuildValidation, isChanged, isManualValidation, resetChangeCounters, sameConfig, setDelegatingId, setMarkerId, setSourceId, setVersion, shouldClearMarkers, shouldValidate, shouldValidate, shouldValidateProject, shouldValidateProject, toString, validate, validationStarting |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Validator.V1(ValidatorMetaData vmd,
ValidationConfiguration config,
IProject project)
vmd - config - this is used to set the global enablement options. In some case this can be null.| Method Detail |
|---|
public void validationFinishing(IProject project,
ValidationState state,
IProgressMonitor monitor)
Validator
validationFinishing in class Validatorproject - the project that was validated. The very last call in the validation will set this to
null so that the validator knows that all the projects have now been validated.state - a way to pass arbitrary, validator specific, data from one invocation of a validator to
the next, during the validation phase.monitor - the monitor that should be used for reporting progress if the clean takes a long time.public IValidator asIValidator()
asIValidator in class Validatorpublic Validator.V1 asV1Validator()
Validator
asV1Validator in class Validatorpublic Validator copy(boolean includeChangeCounts)
copy in class Validatorpublic java.lang.String getName()
getName in class Validatorpublic ValidatorMetaData getVmd()
public java.lang.String getValidatorClassname()
Validator
getValidatorClassname in class Validatorpublic java.lang.String getId()
getId in class Validatorpublic boolean setBuildValidation(boolean buildValidation)
Validator
setBuildValidation in class Validatorpublic boolean setManualValidation(boolean manualValidation)
Validator
setManualValidation in class Validator
public ValidationResult validate(IResource resource,
int kind,
org.eclipse.wst.validation.internal.ValOperation operation,
IProgressMonitor monitor)
Validator
validate in class Validatorresource - The resource to be validated.kind - The kind of resource change, see IResourceDelta for values.operation - The operation that this validation is running under. This can
be null.monitor - A way to report progress. This can be null.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||