|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.externaltools.validators.AbstractToolValidator
public abstract class AbstractToolValidator
Contains methods for required and forbidden substitution string checking.
Derived classes simply implement getForbiddenSubstitutions()
and
getRequiredSubstitutions()
.
Constructor Summary | |
---|---|
protected |
AbstractToolValidator()
|
Method Summary | |
---|---|
protected abstract java.lang.String[] |
getForbiddenSubstitutions()
Gets the substitution strings which are not allowed in arguments for this external tool. |
protected abstract java.lang.String[] |
getRequiredSubstitutions()
Gets the substitution strings which are not required in arguments for this external tool. |
void |
validate(ExternalTool externalTool)
Tests whether the command and arguments for the given ExternalToolException satisfy the validator's requirements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractToolValidator()
Method Detail |
---|
protected abstract java.lang.String[] getForbiddenSubstitutions()
protected abstract java.lang.String[] getRequiredSubstitutions()
public void validate(ExternalTool externalTool) throws ExternalToolException
ExternalToolException
satisfy the validator's requirements. For
example, some substitution strings may be required in arguments, others
may be forbidden. The method throws if the tool is invalid, it does not
throw if the tool is valid.
validate
in interface ExternalToolValidator
externalTool
- the tool to validate (must not be null
)
ExternalToolException
- if the tool is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |