public final class OriginalShapeIdTrait extends AbstractTrait
This is a synthetic trait that is not defined in the semantic model, nor is it persisted when the model is serialized.
AbstractTrait.Provider
Constructor and Description |
---|
OriginalShapeIdTrait(ShapeId original) |
Modifier and Type | Method and Description |
---|---|
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
ShapeId |
getOriginalId()
Gets the original shape ID of the shape before it was renamed.
|
boolean |
isSynthetic()
Checks if this trait is persisted with the shape, or if it is a
synthetic, or transient trait, only meant to temporarily aid in
some kind of in-memory model transformation.
|
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public OriginalShapeIdTrait(ShapeId original)
public ShapeId getOriginalId()
public boolean isSynthetic()
Trait
Because synthetic traits are not persisted with shapes, they also do not need to be defined in Smithy's semantic model before they can be used in the model.
protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait