Class TraitCodegenSettings
java.lang.Object
software.amazon.smithy.traitcodegen.TraitCodegenSettings
Settings for trait code generation. These can be set in the
smithy-build.json configuration for this plugin.
The following options are provided:
- "packageName" (
String) - Sets the package namespace to use for generated Java classes.
- "headerLines" (
List<String>) - Defines the header comment to include in all output files. Use this setting to add license and/or author information to all generated files. Each entry in the list is generated as a new line in the generated comment.
- "excludeTags" (
List<String>) - List of Smithy tags to use for filtering out trait shapes from the trait code generation process.
-
Method Summary
Modifier and TypeMethodDescriptionList of tags to exclude from shape code generation.static TraitCodegenSettingsfromNode(ObjectNode node) Loads settings from anObjectNode.List of lines added to the top of every generated file as a header.Java package name to generate traits into.Smithy namespace to search for traits.
-
Method Details
-
fromNode
Loads settings from anObjectNode.- Parameters:
node- object node to load settings from- Returns:
- settings loaded from given node
-
packageName
Java package name to generate traits into.- Returns:
- package name
-
smithyNamespace
Smithy namespace to search for traits.- Returns:
- namespace
-
headerLines
List of lines added to the top of every generated file as a header.- Returns:
- header lines as a list
-
excludeTags
List of tags to exclude from shape code generation.- Returns:
- tag list
-