public final class Prelude
extends java.lang.Object
The prelude consists of public prelude shapes like
smithy.api#String and traits that are available to
all models like box and required.
A key design requirement of the prelude is that it cannot require a loaded prelude model in order to reason about the prelude as this would result in infinite recursion while loading the prelude model.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAMESPACE
The Smithy prelude namespace.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPreludeShape(ToShapeId id)
Checks if the given shape ID is defined by the prelude.
|
static boolean |
isPublicPreludeShape(ToShapeId id)
Checks if the given shape is a public shape or trait defined by the
prelude.
|
public static final java.lang.String NAMESPACE
public static boolean isPreludeShape(ToShapeId id)
Specifically, this checks if the namespace of the provided shape ID
is equal to smithy.api.
id - Shape ID to check.public static boolean isPublicPreludeShape(ToShapeId id)
id - Shape to check.