Class BlobLengthPlugin
- java.lang.Object
-
- software.amazon.smithy.model.validation.node.BlobLengthPlugin
-
- All Implemented Interfaces:
NodeValidatorPlugin
public final class BlobLengthPlugin extends java.lang.Object
Validates length trait on blob shapes and members that target blob shapes.
-
-
Constructor Summary
Constructors Constructor Description BlobLengthPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
apply(Shape shape, Node value, ShapeIndex index)
Applies the plugin to the given shape, node value, and shape index.protected java.util.List<java.lang.String>
check(Shape shape, LengthTrait trait, StringNode node, ShapeIndex index)
-
-
-
Method Detail
-
check
protected java.util.List<java.lang.String> check(Shape shape, LengthTrait trait, StringNode node, ShapeIndex index)
-
apply
public final java.util.List<java.lang.String> apply(Shape shape, Node value, ShapeIndex index)
Description copied from interface:NodeValidatorPlugin
Applies the plugin to the given shape, node value, and shape index.- Specified by:
apply
in interfaceNodeValidatorPlugin
- Parameters:
shape
- Shape being checked.value
- Value being evaluated.index
- Shape index used to traverse the model.- Returns:
- Returns any validation messages that were encountered.
-
-