- Type Parameters:
T - - type to which we want to convert the contract
- All Superinterfaces:
ContractReader<T>, ContractStorer<T>
- Since:
- 1.1.0
- Author:
- Marcin Grzejszczak
-
Method Summary
boolean
Should this file be accepted by the converter.
Methods inherited from interface org.springframework.cloud.contract.spec.ContractReader
read
-
Method Details
-
isAccepted
boolean isAccepted(File file)
Should this file be accepted by the converter. Can use the file extension to check
if the conversion is possible.
- Parameters:
file - - file to be considered for conversion
- Returns:
- -
true if the given implementation can convert the file
-
convertFrom
- Parameters:
file - - file to convert
- Returns:
- -
Contract representation of the file
-
convertTo
- Parameters:
contract - - the parsed contract
- Returns:
- -
ContractConverter the type to which we do the conversion