Class IncludeNamespaces
- java.lang.Object
-
- software.amazon.smithy.build.transforms.IncludeNamespaces
-
- All Implemented Interfaces:
ProjectionTransformer
public final class IncludeNamespaces extends java.lang.Object implements ProjectionTransformer
Filters out shapes and trait definitions that are not part of one of the given namespaces.Note that this does not filter out prelude shapes or namespaces.
-
-
Constructor Summary
Constructors Constructor Description IncludeNamespaces()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.BiFunction<software.amazon.smithy.model.transform.ModelTransformer,software.amazon.smithy.model.Model,software.amazon.smithy.model.Model>
createTransformer(java.util.List<java.lang.String> arguments)
Creates a function that transforms a model using the providedModelTransformer
.java.lang.String
getName()
Gets the name of the transformer.-
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.build.ProjectionTransformer
getAliases
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ProjectionTransformer
Gets the name of the transformer.- Specified by:
getName
in interfaceProjectionTransformer
- Returns:
- Returns the name (e.g., "traits").
-
createTransformer
public java.util.function.BiFunction<software.amazon.smithy.model.transform.ModelTransformer,software.amazon.smithy.model.Model,software.amazon.smithy.model.Model> createTransformer(java.util.List<java.lang.String> arguments)
Description copied from interface:ProjectionTransformer
Creates a function that transforms a model using the providedModelTransformer
.- Specified by:
createTransformer
in interfaceProjectionTransformer
- Parameters:
arguments
- Arguments used to create the ModelTransformer.- Returns:
- Returns the created transformer.
-
-