Class CollectionLengthPlugin
- java.lang.Object
-
- software.amazon.smithy.model.validation.node.CollectionLengthPlugin
-
- All Implemented Interfaces:
NodeValidatorPlugin
public class CollectionLengthPlugin extends java.lang.Object
Validates the length trait on both list and set shapes or members that target them.
-
-
Constructor Summary
Constructors Constructor Description CollectionLengthPlugin()
-
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)
protected java.util.List<java.lang.String>
check(Shape shape, LengthTrait trait, ArrayNode node, ShapeIndex index)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.model.validation.node.NodeValidatorPlugin
apply
-
-
-
-
Method Detail
-
check
protected java.util.List<java.lang.String> check(Shape shape, LengthTrait trait, ArrayNode node, ShapeIndex index)
-
apply
public final java.util.List<java.lang.String> apply(Shape shape, Node value, ShapeIndex index)
- Specified by:
apply
in interfaceNodeValidatorPlugin
-
-