public static enum NodeValidationVisitor.Feature extends java.lang.Enum<NodeValidationVisitor.Feature>
| Enum Constant and Description |
|---|
ALLOW_CONSTRAINT_ERRORS |
RANGE_TRAIT_ZERO_VALUE_WARNING
Emit a warning when a range trait is incompatible with a default value of 0.
|
| Modifier and Type | Method and Description |
|---|---|
static NodeValidationVisitor.Feature |
fromNode(Node node) |
static Node |
toNode(NodeValidationVisitor.Feature feature) |
static NodeValidationVisitor.Feature |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NodeValidationVisitor.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeValidationVisitor.Feature RANGE_TRAIT_ZERO_VALUE_WARNING
This was a common pattern in Smithy 1.0 and earlier. It implies that the value is effectively required. However, changing the type of the value by un-boxing it or adjusting the range trait would be a lossy transformation when migrating a model from 1.0 to 2.0.
public static final NodeValidationVisitor.Feature ALLOW_CONSTRAINT_ERRORS
public static NodeValidationVisitor.Feature[] values()
for (NodeValidationVisitor.Feature c : NodeValidationVisitor.Feature.values()) System.out.println(c);
public static NodeValidationVisitor.Feature valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static NodeValidationVisitor.Feature fromNode(Node node)
public static Node toNode(NodeValidationVisitor.Feature feature)