Package software.amazon.smithy.build
Class ProjectionResult
- java.lang.Object
- 
- software.amazon.smithy.build.ProjectionResult
 
- 
 public final class ProjectionResult extends java.lang.ObjectThe result of applying a projection to a model.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classProjectionResult.BuilderBuilds up aProjectionResult.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProjectionResult.Builderbuilder()Creates aProjectionResultbuilder.java.util.List<ValidationEvent>getEvents()Gets the validation events encountered after projecting the model.ModelgetModel()Gets the result of projecting the model.java.util.Optional<FileManifest>getPluginManifest(java.lang.String artifactName)Gets the result of a specific plugin by plugin artifact name.java.util.Map<java.lang.String,FileManifest>getPluginManifests()Gets the results of each plugin.java.lang.StringgetProjectionName()Gets the name of the projection that was executed.booleanisBroken()Returns true if the projection contains error or danger events.
 
- 
- 
- 
Method Detail- 
builderpublic static ProjectionResult.Builder builder() Creates aProjectionResultbuilder.- Returns:
- Returns the created builder.
 
 - 
getProjectionNamepublic java.lang.String getProjectionName() Gets the name of the projection that was executed.- Returns:
- Returns the projection name.
 
 - 
getModelpublic Model getModel() Gets the result of projecting the model.- Returns:
- Returns the projected model.
 
 - 
isBrokenpublic boolean isBroken() Returns true if the projection contains error or danger events.- Returns:
- Returns true if the projected model is broken.
 
 - 
getEventspublic java.util.List<ValidationEvent> getEvents() Gets the validation events encountered after projecting the model.- Returns:
- Returns the encountered validation events.
 
 - 
getPluginManifestspublic java.util.Map<java.lang.String,FileManifest> getPluginManifests() Gets the results of each plugin.- Returns:
- Returns a map of plugin names to their file manifests.
 
 - 
getPluginManifestpublic java.util.Optional<FileManifest> getPluginManifest(java.lang.String artifactName) Gets the result of a specific plugin by plugin artifact name.If no artifact name is configured for a plugin in smithy-build.json (e.g., "plugin::artifact"), the artifact name defaults to the plugin name. - Parameters:
- artifactName- Name of the plugin artifact to retrieve.
- Returns:
- Returns files created by the given plugin or an empty list.
 
 
- 
 
-