Class AbstractTrait.Provider
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTrait.Provider
-
- All Implemented Interfaces:
TraitService
- Direct Known Subclasses:
BooleanTrait.Provider
,DeprecatedTrait.Provider
,EndpointTrait.Provider
,HttpErrorTrait.Provider
,HttpTrait.Provider
,ProtocolsTrait.Provider
,StringListTrait.Provider
,StringTrait.Provider
- Enclosing class:
- AbstractTrait
public abstract static class AbstractTrait.Provider extends java.lang.Object implements TraitService
Basic provider implementation that returns the name of the provided trait.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapeId
getShapeId()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.model.traits.TraitService
createTrait
-
-
-
-
Constructor Detail
-
Provider
public Provider(ShapeId id)
- Parameters:
id
- ID of the trait that the provider creates.
-
-
Method Detail
-
getShapeId
public ShapeId getShapeId()
- Specified by:
getShapeId
in interfaceTraitService
- Returns:
- Gets the shape ID of the trait that this provider created.
-
-