public class Contract extends Object
Constructor and Description |
---|
Contract() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object target) |
DataType |
getInputType() |
DataType |
getOutputType() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isValidateInput() |
boolean |
isValidateOutput() |
void |
setInputType(Class<?> clazz)
Set the input data type with Java class.
|
void |
setInputType(String inputType)
Set the input data type.
|
void |
setOutputType(Class<?> clazz)
Set the output data type with Java class.
|
void |
setOutputType(String outputType)
Set the output data type.
|
void |
setValidateInput(boolean validate)
Whether to validate the input
|
void |
setValidateOutput(boolean validate)
Whether to validate the output
|
String |
toString() |
public DataType getInputType()
public void setInputType(String inputType)
inputType
- input data typepublic void setInputType(Class<?> clazz)
clazz
- Java class which represents input data typepublic DataType getOutputType()
public void setOutputType(String outputType)
outputType
- output data typepublic void setOutputType(Class<?> clazz)
clazz
- Java class which represents output data typepublic boolean isValidateInput()
public void setValidateInput(boolean validate)
public boolean isValidateOutput()
public void setValidateOutput(boolean validate)
public boolean isEmpty()
Apache Camel