Class IdRefPlugin
- java.lang.Object
-
- software.amazon.smithy.model.validation.node.IdRefPlugin
-
- All Implemented Interfaces:
NodeValidatorPlugin
public final class IdRefPlugin extends java.lang.Object
Validates that the value contained in a string shape is a valid shape ID and that the shape ID targets a shape that is in the set of shapes matching the selector.Relative shape IDs may resolve to public prelude shapes if they don't resolve to shapes defined in the same namespace as the ID.
-
-
Constructor Summary
Constructors Constructor Description IdRefPlugin()
-
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, IdRefTrait trait, StringNode 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, IdRefTrait trait, StringNode node, ShapeIndex index)
-
apply
public final java.util.List<java.lang.String> apply(Shape shape, Node value, ShapeIndex index)
- Specified by:
apply
in interfaceNodeValidatorPlugin
-
-