Class VariableDeclaration


  • public class VariableDeclaration
    extends Object
    Representation of a scoped variable declaration made through th:with attributes. This is really a wrapper around Thymeleaf's Assignation class, but simplified to just the left and right hand components in string form.
    Author:
    zhanhb, Emanuel Rabina
    • Constructor Detail

      • VariableDeclaration

        public VariableDeclaration​(Assignation assignation)
        Constructor, create an instance from a Thymeleaf assignation.
        Parameters:
        assignation -
    • Method Detail

      • toString

        public String toString()
        Reconstructs the variable for use with th:with.
        Overrides:
        toString in class Object
        Returns:
        {name}=${value}
      • getName

        public String getName()
      • getValue

        public String getValue()