Package software.amazon.smithy.build
Class TransformContext
java.lang.Object
software.amazon.smithy.build.TransformContext
- All Implemented Interfaces:
- ToSmithyBuilder<TransformContext>
Context object used when applying a 
ProjectionTransformer.
 Implementer's note: A context object is used to allow contextual information provided to projection transforms to evolve over time.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic TransformContext.Builderbuilder()getModel()Gets the model to transform.Get the original model before applying the projection.Gets an immutable list ofValidationEvents that were encountered when loading the source model.Gets the name of the projection being applied.Gets the arguments object of the transform.Gets the source models, or models that are considered the subject of the build.Gets theModelTransformerthat has been configured to aid in the transformation.Take this object and create a builder that contains all of the current property values of this object.
- 
Method Details- 
builder- Returns:
- Returns a TransformContext builder.
 
- 
toBuilderDescription copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToSmithyBuilder<TransformContext>
- Returns:
- a builder for type T
 
- 
getSettingsGets the arguments object of the transform.- Returns:
- Returns the transformer arguments.
 
- 
getModelGets the model to transform.- Returns:
- Returns the model to transform.
 
- 
getOriginalModelGet the original model before applying the projection.- Returns:
- The optionally provided original model.
 
- 
getSourcesGets the source models, or models that are considered the subject of the build.This does not return an exhaustive set of model paths! There are typically two kinds of models that are added to a build: source models and discovered models. Discovered models are someone else's models. Source models are the models owned by the package being built. - Returns:
- Returns the source models.
 
- 
getProjectionNameGets the name of the projection being applied.If no projection could be found, "source" is assumed. - Returns:
- Returns the explicit or assumed projection name.
 
- 
getTransformerGets theModelTransformerthat has been configured to aid in the transformation.- Returns:
- Returns the model transformer.
 
- 
getOriginalModelValidationEventsGets an immutable list ofValidationEvents that were encountered when loading the source model.- Returns:
- Returns the encountered validation events.
 
 
-