Package org.apache.camel.catalog
Class ConfigurationPropertiesValidationResult
java.lang.Object
org.apache.camel.catalog.ConfigurationPropertiesValidationResult
- All Implemented Interfaces:
Serializable
Details result of validating configuration properties (eg application.properties for camel-main).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefaultValue(String name, String value) voidaddDeprecated(String name) voidaddIncapable(String uri) voidaddInvalidArray(String name, String value) voidaddInvalidBoolean(String name, String value) voidaddInvalidDuration(String name, String value) voidaddInvalidEnum(String name, String value) voidaddInvalidEnumChoices(String name, String[] choices) voidaddInvalidEnumSuggestions(String name, String[] suggestions) voidaddInvalidInteger(String name, String value) voidaddInvalidMap(String name, String value) voidaddInvalidNumber(String name, String value) voidaddInvalidReference(String name, String value) voidaddRequired(String name) voidaddSyntaxError(String syntaxError) voidaddUnknown(String name) voidaddUnknownComponent(String name) voidaddUnknownSuggestions(String name, String[] suggestions) getEnumChoices(String optionName) intintintgetText()booleanbooleanbooleanbooleanvoidsetAccepted(boolean accepted) voidsetFileName(String fileName) voidsetLineNumber(int lineNumber) voidsummaryErrorMessage(boolean includeHeader) A human readable summary of the validation errors.summaryErrorMessage(boolean includeHeader, boolean ignoreDeprecated, boolean includeWarnings) A human readable summary of the validation errors.
-
Constructor Details
-
ConfigurationPropertiesValidationResult
public ConfigurationPropertiesValidationResult()
-
-
Method Details
-
getFileName
-
setFileName
-
getText
-
setText
-
getLineNumber
public int getLineNumber() -
setLineNumber
public void setLineNumber(int lineNumber) -
isAccepted
public boolean isAccepted() -
setAccepted
public void setAccepted(boolean accepted) -
summaryErrorMessage
A human readable summary of the validation errors.- Parameters:
includeHeader- whether to include a header- Returns:
- the summary, or null if no validation errors
-
summaryErrorMessage
public String summaryErrorMessage(boolean includeHeader, boolean ignoreDeprecated, boolean includeWarnings) A human readable summary of the validation errors.- Parameters:
includeHeader- whether to include a headerignoreDeprecated- whether to ignore deprecated options in use as an error or notincludeWarnings- whether to include warnings as an error or not- Returns:
- the summary, or null if no validation errors
-
hasErrors
public boolean hasErrors() -
getNumberOfErrors
public int getNumberOfErrors() -
hasWarnings
public boolean hasWarnings() -
getNumberOfWarnings
public int getNumberOfWarnings() -
isSuccess
public boolean isSuccess() -
addSyntaxError
-
addIncapable
-
addUnknownComponent
-
addUnknown
-
addUnknownSuggestions
-
addRequired
-
addDeprecated
-
addInvalidEnum
-
addInvalidEnumChoices
-
addInvalidEnumSuggestions
-
addInvalidReference
-
addInvalidMap
-
addInvalidArray
-
addInvalidBoolean
-
addInvalidInteger
-
addInvalidNumber
-
addInvalidDuration
-
addDefaultValue
-
getSyntaxError
-
getIncapable
-
getUnknown
-
getUnknownSuggestions
-
getUnknownComponent
-
getRequired
-
getDeprecated
-
getInvalidEnum
-
getInvalidEnumChoices
-
getEnumChoices
-
getInvalidReference
-
getInvalidMap
-
getInvalidArray
-
getInvalidBoolean
-
getInvalidInteger
-
getInvalidNumber
-
getInvalidDuration
-
getDefaultValues
-