Class IdRefTrait.Provider
- java.lang.Object
 - 
- software.amazon.smithy.model.traits.IdRefTrait.Provider
 
 
- 
- All Implemented Interfaces:
 TraitService
- Enclosing class:
 - IdRefTrait
 
public static final class IdRefTrait.Provider extends java.lang.Object implements TraitService
 
- 
- 
Constructor Summary
Constructors Constructor Description Provider() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdRefTraitcreateTrait(ShapeId target, Node value)Creates the trait from a node value.ShapeIdgetShapeId() 
 - 
 
- 
- 
Method Detail
- 
getShapeId
public ShapeId getShapeId()
- Specified by:
 getShapeIdin interfaceTraitService- Returns:
 - Gets the shape ID of the trait that this provider created.
 
 
- 
createTrait
public IdRefTrait createTrait(ShapeId target, Node value)
Description copied from interface:TraitServiceCreates the trait from a node value.- Specified by:
 createTraitin interfaceTraitService- Parameters:
 target- The shape targeted by the trait.value- The value of the trait.- Returns:
 - Returns the created trait.
 
 
 - 
 
 -