Tabnine Logo
IElementTagStructureHandler.removeBody
Code IndexAdd Tabnine to your IDE (free)

How to use
removeBody
method
in
org.thymeleaf.processor.element.IElementTagStructureHandler

Best Java code snippets using org.thymeleaf.processor.element.IElementTagStructureHandler.removeBody (Showing top 3 results out of 315)

origin: thymeleaf/thymeleaf

@Override
protected void doProcess(
    final ITemplateContext context,
    final IProcessableElementTag tag,
    final AttributeName attributeName, final String attributeValue,
    final Object expressionResult,
    final IElementTagStructureHandler structureHandler) {
  if (expressionResult != null) {
    final String resultStr = expressionResult.toString();
    if (VALUE_ALL.equalsIgnoreCase(resultStr)) {
      structureHandler.removeElement();
    } else if (VALUE_TAG.equalsIgnoreCase(resultStr) || VALUE_TAGS.equalsIgnoreCase(resultStr)) {
      structureHandler.removeTags();
    } else if (VALUE_ALL_BUT_FIRST.equalsIgnoreCase(resultStr)) {
      structureHandler.removeAllButFirstChild();
    } else  if (VALUE_BODY.equalsIgnoreCase(resultStr)) {
      structureHandler.removeBody();
    } else if (!VALUE_NONE.equalsIgnoreCase(resultStr)) {
      throw new TemplateProcessingException(
          "Invalid value specified for \"" + attributeName + "\": only 'all', 'tag', 'body', 'none' " +
          "and 'all-but-first' are allowed, but \"" + attributeValue + "\" was specified.");
    }
  }
}
origin: thymeleaf/thymeleaf

structureHandler.removeBody();
return;
origin: thymeleaf/thymeleaf

  structureHandler.removeElement();
} else {
  structureHandler.removeBody();
org.thymeleaf.processor.elementIElementTagStructureHandlerremoveBody

Javadoc

Instructs the engine to remove the body of the element being processed, but keep the open and close tags.

Popular methods of IElementTagStructureHandler

  • setBody
  • removeAttribute
  • removeElement
  • setAttribute
  • replaceWith
  • setLocalVariable
  • insertBefore
  • insertImmediatelyAfter
  • replaceAttribute
  • removeTags
  • iterateElement
    Instructs the engine to iterate the current element, applying a specific iteration configuration.
  • removeAllButFirstChild
    Instructs the engine to remove all the children of the element being processed, except the first on
  • iterateElement,
  • removeAllButFirstChild,
  • setInliner,
  • setSelectionTarget,
  • setTemplateData

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now