Class CustomTag

All Implemented Interfaces:
TagBase, Serializable, Cloneable

public class CustomTag extends AbstractHtml
Since:
1.0.0
See Also:
  • Constructor Details

    • CustomTag

      public CustomTag(String tagName, AbstractHtml.TagType tagType, AbstractHtml base, AbstractAttribute... attributes)
      Parameters:
      tagName - the tag name
      tagType - the tag type for eg: AbstractHtml.TagType.SELF_CLOSING
      base - i.e. parent tag of this tag
      attributes - An array of AbstractAttribute
      Since:
      1.0.0
    • CustomTag

      public CustomTag(String tagName, AbstractHtml base, AbstractAttribute... attributes)
      Parameters:
      tagName - the tag name
      base - i.e. parent tag of this tag
      attributes - An array of AbstractAttribute
      Since:
      1.0.0
  • Method Details

    • init

      protected void init()
      invokes only once per object
      Since:
      1.0.0
    • isSelfClosing

      public boolean isSelfClosing()
      Returns:
      true if it is set as self closing tag otherwise false
      Since:
      1.0.0
    • isNonClosing

      public boolean isNonClosing()
      Returns:
      true if it is set as non closing tag otherwise false
      Since:
      1.0.0