Record Class XmlHtml.Element

java.lang.Object
java.lang.Record
org.libxmq.imp.xml.XmlHtml.Element
Record Components:
name - The lowercase name.
end_tag - 1 the end tag can be implied, 2 forbidden (empty), 3 stylistic, closed easily.
empty - An empty element (br, img, ...).
isinline - An inline (true) or block (false) element.
data_mode - 0 or one of the DATA_ modes.
Enclosing class:
XmlHtml

public static record XmlHtml.Element(String name, int end_tag, boolean empty, boolean isinline, int data_mode) extends Record
An html element.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Element(String name, int end_tag, boolean empty, boolean isinline, int data_mode)
    Creates an instance of a Element record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the data_mode record component.
    boolean
    Returns the value of the empty record component.
    int
    Returns the value of the end_tag record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the isinline record component.
    Returns the value of the name record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Element

      public Element(String name, int end_tag, boolean empty, boolean isinline, int data_mode)
      Creates an instance of a Element record class.
      Parameters:
      name - the value for the name record component
      end_tag - the value for the end_tag record component
      empty - the value for the empty record component
      isinline - the value for the isinline record component
      data_mode - the value for the data_mode record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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
    • end_tag

      public int end_tag()
      Returns the value of the end_tag record component.
      Returns:
      the value of the end_tag record component
    • empty

      public boolean empty()
      Returns the value of the empty record component.
      Returns:
      the value of the empty record component
    • isinline

      public boolean isinline()
      Returns the value of the isinline record component.
      Returns:
      the value of the isinline record component
    • data_mode

      public int data_mode()
      Returns the value of the data_mode record component.
      Returns:
      the value of the data_mode record component