Package software.amazon.smithy.build
Class ProjectionResult
java.lang.Object
software.amazon.smithy.build.ProjectionResult
The result of applying a projection to a model.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectionResult.Builderbuilder()Creates aProjectionResultbuilder.Gets the validation events encountered after projecting the model.getModel()Gets the result of projecting the model.getPluginManifest(String pluginName) Gets the result of a specific plugin.Gets the results of each plugin.Gets the name of the projection that was executed.booleanisBroken()Returns true if the projection contains error or danger events.
-
Method Details
-
builder
Creates aProjectionResultbuilder.- Returns:
- Returns the created builder.
-
getProjectionName
Gets the name of the projection that was executed.- Returns:
- Returns the projection name.
-
getModel
Gets the result of projecting the model.- Returns:
- Returns the projected model.
-
isBroken
public boolean isBroken()Returns true if the projection contains error or danger events.- Returns:
- Returns true if the projected model is broken.
-
getEvents
Gets the validation events encountered after projecting the model.- Returns:
- Returns the encountered validation events.
-
getPluginManifests
Gets the results of each plugin.- Returns:
- Returns a map of plugin names to their file manifests.
-
getPluginManifest
Gets the result of a specific plugin.- Parameters:
pluginName- Name of the plugin to retrieve.- Returns:
- Returns the files created by the given plugin or an empty list.
-