Class LengthTrait.Provider

java.lang.Object
software.amazon.smithy.model.traits.LengthTrait.Provider
All Implemented Interfaces:
TraitService
Enclosing class:
LengthTrait

public static final class LengthTrait.Provider extends Object implements TraitService
  • Constructor Details

    • Provider

      public Provider()
  • Method Details

    • getShapeId

      public ShapeId getShapeId()
      Specified by:
      getShapeId in interface TraitService
      Returns:
      Gets the shape ID of the trait that this provider created.
    • createTrait

      public LengthTrait createTrait(ShapeId target, Node value)
      Description copied from interface: TraitService
      Creates the trait from a node value.
      Specified by:
      createTrait in interface TraitService
      Parameters:
      target - The shape targeted by the trait.
      value - The value of the trait.
      Returns:
      Returns the created trait.