Interface ComponentVerifierExtension.VerificationError.Attribute
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ComponentVerifierExtension.VerificationError.ExceptionAttribute,ComponentVerifierExtension.VerificationError.GroupAttribute,ComponentVerifierExtension.VerificationError.HttpAttribute
- Enclosing interface:
- ComponentVerifierExtension.VerificationError
public static interface ComponentVerifierExtension.VerificationError.Attribute extends Serializable
Interface defining an attribute which is a key for the detailed error messages. This is implemented by several standard enums likeComponentVerifierExtension.VerificationError.ExceptionAttribute,ComponentVerifierExtension.VerificationError.HttpAttributeorComponentVerifierExtension.VerificationError.GroupAttributebut can also implemented for component specific details. This is best done viaComponentVerifierExtension.VerificationError.asAttribute(String)or using one of the other builder method in this error builder (likeorg.apache.camel.component.extension.verifier.ResultErrorBuilder#detail(String, Object)With respecting to name, the same rules as for
ComponentVerifierExtension.VerificationError.Codeapply: Standard attributes are all upper case with _ as separators, whereas custom attributes are lower case with underscore separators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetName()Bean style accessor to name; This is required for framework like Jackson using bean convention for object serialization.Stringname()Name of the attribute.
-
-
-
Method Detail
-
name
String name()
Name of the attribute. All uppercase for standard attributes and all lower case for custom attributes. Separator between words is an underscore.- Returns:
- attribute name
-
getName
default String getName()
Bean style accessor to name; This is required for framework like Jackson using bean convention for object serialization.- Returns:
- attribute name
-
-