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

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

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

origin: thymeleaf/thymeleaf

public static void replaceAttribute(
    final IElementTagStructureHandler structureHandler,
    final AttributeName oldAttributeName,
    final AttributeDefinition attributeDefinition, final String attributeName, final String attributeValue) {
  if (structureHandler instanceof ElementTagStructureHandler) {
    ((ElementTagStructureHandler) structureHandler).replaceAttribute(oldAttributeName, attributeDefinition, attributeName, attributeValue, null);
  } else {
    structureHandler.replaceAttribute(oldAttributeName, attributeName, attributeValue);
  }
}
origin: thymeleaf/thymeleaf

} else {
  structureHandler.replaceAttribute(attributeName, newAttributeName, (newAttributeValue == null? "" : newAttributeValue));
origin: com.github.mxab.thymeleaf.extras/thymeleaf-extras-data-attribute

  structureHandler.removeAttribute(attributeName);
} else {
  structureHandler.replaceAttribute(attributeName, newAttributeName, newAttributeValue == null? "" : newAttributeValue);
origin: mxab/thymeleaf-extras-data-attribute

  structureHandler.removeAttribute(attributeName);
} else {
  structureHandler.replaceAttribute(attributeName, newAttributeName, newAttributeValue == null? "" : newAttributeValue);
org.thymeleaf.processor.elementIElementTagStructureHandlerreplaceAttribute

Javadoc

Instructs the engine to replace an existing attribute for a new one (which can also exist) in the current tag being processed.

Popular methods of IElementTagStructureHandler

  • setBody
    Instructs the engine to set a new body for the current element, in the form of an IModel. This is
  • removeAttribute
  • removeElement
  • setAttribute
    Instructs the engine to set an attribute (existing or not) in the current tag being processed.
  • replaceWith
  • setLocalVariable
  • insertBefore
  • insertImmediatelyAfter
  • 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
  • removeBody
    Instructs the engine to remove the body of the element being processed, but keep the open and close
  • removeAllButFirstChild,
  • removeBody,
  • setInliner,
  • setSelectionTarget,
  • setTemplateData

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Best plugins for Eclipse
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