Class ArtifactDefinitions
java.lang.Object
software.amazon.smithy.codegen.core.trace.ArtifactDefinitions
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<ArtifactDefinitions>
public final class ArtifactDefinitions
extends Object
implements ToNode, ToSmithyBuilder<ArtifactDefinitions>
Class that defines the acceptable values that can be used in
ShapeLink
objects.-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArtifactDefinitions.Builder
builder()
static ArtifactDefinitions
Converts an ObjectNode that represents the definitions section of the trace file into a types maps and tags map.getTags()
Gets this Definition's Tags Map.getTypes()
Gets this Definition's Types Map.Take this object and create a builder that contains all of the current property values of this object.toNode()
Converts the types and tags Maps into a single ObjectNode.
-
Field Details
-
TYPE_TEXT
- See Also:
-
TAGS_TEXT
- See Also:
-
-
Method Details
-
fromNode
Converts an ObjectNode that represents the definitions section of the trace file into a types maps and tags map.- Parameters:
value
- ObjectNode that contains the JSON data inside the definitions tag of the trace file- Returns:
- an ArtifactDefinitions object created from the ObjectNode.
-
builder
-
toNode
Converts the types and tags Maps into a single ObjectNode. -
getTags
Gets this Definition's Tags Map. The tagsMap
defines the set of tags that can be used in aShapeLink
object. Each key is the name of the tag, and each value is the description of the tag. Tags are used to provide semantics to links. Tools that evaluate trace models use these tags to inform their analysis. For example, a tag for an AWS SDK code generator could be "requestBuilder" to indicate that a class is used as a builder for a request.- Returns:
- this Definition's Tags Map
-
getTypes
Gets this Definition's Types Map. The typesMap
defines the set of types that can be used in aShapeLink
object. Each key is the name of the type, and each value is a description of the type. For programming languages, these types represent language-specific components. For example, in Java, types should map to the possible values ofElementType
.- Returns:
- this Definition's Type's Map
-
toBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<ArtifactDefinitions>
- Returns:
- a builder for type T
-