Record Class BBCodeHandler.Tag

java.lang.Object
java.lang.Record
atlantafx.base.util.BBCodeHandler.Tag
Record Components:
name - The tag name.
params - The tag params.
styleClasses - The CSS classes. Each element is either a single style or space delimited string.
styles - The CSS styles. Each element is either a single style or semicolon delimited string.
Enclosing interface:
BBCodeHandler

public static record BBCodeHandler.Tag(String name, BBCodeHandler.Tag.Type type, @Nullable Map<String,String> params, Set<String> styleClasses, Set<String> styles) extends Record
Generic tag record.
  • Constructor Details

    • Tag

      public Tag(String name, BBCodeHandler.Tag.Type type, @Nullable @Nullable Map<String,String> params, Set<String> styleClasses, Set<String> styles)
      Creates an instance of a Tag record class.
      Parameters:
      name - the value for the name record component
      type - the value for the type record component
      params - the value for the params record component
      styleClasses - the value for the styleClasses record component
      styles - the value for the styles record component
  • Method Details

    • hasParam

      public boolean hasParam(String name)
    • getParam

      public String getParam(String name)
    • getParam

      public String getParam(String name, String defaultValue)
    • isBlock

      public boolean isBlock()
    • isSelfClose

      public boolean isSelfClose()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • type

      public BBCodeHandler.Tag.Type type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • params

      @Nullable public @Nullable Map<String,String> params()
      Returns the value of the params record component.
      Returns:
      the value of the params record component
    • styleClasses

      public Set<String> styleClasses()
      Returns the value of the styleClasses record component.
      Returns:
      the value of the styleClasses record component
    • styles

      public Set<String> styles()
      Returns the value of the styles record component.
      Returns:
      the value of the styles record component