com.microsoft.tfs.core.externaltools.validators
Interface ExternalToolValidator

All Known Implementing Classes:
AbstractToolValidator, CompareToolValidator, MergeToolValidator, ViewToolValidator

public interface ExternalToolValidator

Validates command line arguments for an external tool.

Since:
TEE-SDK-10.1

Method Summary
 void validate(ExternalTool externalTool)
          Tests whether the command and arguments for the given ExternalToolException satisfy the validator's requirements.
 

Method Detail

validate

void validate(ExternalTool externalTool)
              throws ExternalToolException
Tests whether the command and arguments for the given 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.

Parameters:
externalTool - the tool to validate (must not be null)
Throws:
ExternalToolException - if the tool is invalid


© 2015 Microsoft. All rights reserved.