Class NoReplaceOperationInterceptor
java.lang.Object
software.amazon.smithy.docgen.interceptors.NoReplaceOperationInterceptor
- All Implemented Interfaces:
- CodeInterceptor<ShapeDetailsSection,- DocWriter> 
Adds the noReplace admonition to the resource operation's doc page.
- 
Nested Class SummaryNested classes/interfaces inherited from interface software.amazon.smithy.utils.CodeInterceptorCodeInterceptor.Appender<S extends CodeSection,W extends AbstractCodeWriter<W>>, CodeInterceptor.Prepender<S extends CodeSection, W extends AbstractCodeWriter<W>> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisIntercepted(ShapeDetailsSection section) Checks if the given section is filtered by this interceptor or not.Get the strongly typedCodeSectionthis interceptor is used to intercept.voidwrite(DocWriter writer, String previousText, ShapeDetailsSection section) Intercepts anAbstractCodeWritersection.
- 
Constructor Details- 
NoReplaceOperationInterceptorpublic NoReplaceOperationInterceptor()
 
- 
- 
Method Details- 
sectionTypeDescription copied from interface:CodeInterceptorGet the strongly typedCodeSectionthis interceptor is used to intercept.- Returns:
- The code section to intercept.
 
- 
isInterceptedDescription copied from interface:CodeInterceptorChecks if the given section is filtered by this interceptor or not.In some cases CodeInterceptor.sectionType()might allow filtering a wider array of types than what is actually filtered by an interceptor. The most common example of this is intercepting any type of CodeSection and only filtering based on the result ofCodeSection.sectionName().This method will return trueby default, meaning that any type ofCodeSectionthat is an instance of the class returned fromCodeInterceptor.sectionType()will be intercepted.- Specified by:
- isInterceptedin interface- CodeInterceptor<S extends CodeSection,- DocWriter> 
- Parameters:
- section- Section to test if this interceptor is relevant.
- Returns:
- Returns true if the section is intercepted or not.
 
- 
writeDescription copied from interface:CodeInterceptorIntercepts anAbstractCodeWritersection.- Specified by:
- writein interface- CodeInterceptor<S extends CodeSection,- DocWriter> 
- Parameters:
- writer- Writer used to write content. If no write calls are made, any intercepted text is lost.
- previousText- The previous text that was written. This text needs to be written again in order for it to be kept in the section.
- section- The strongly typed section value.
 
 
-