Class WebXAttributes

java.lang.Object
webx.WebXAttributes

public class WebXAttributes extends Object
A list of different attributes for convenience
  • Constructor Details

    • WebXAttributes

      public WebXAttributes()
  • Method Details

    • addAttribute

      public WebXAttributes addAttribute(String key, String value)
      Adds a new attribute to the list by constructing it from the key and value
      Parameters:
      key - The key of the attribute
      value - The value of the attribute
      Returns:
      A modified list of attributes
    • addAttribute

      public WebXAttributes addAttribute(WebXAttribute attribute)
      Adds a new attribute to the list, expecting it to already be constructed
      Parameters:
      attribute -
      Returns:
    • render

      public String render()
      Combines all attributes to a single value separated by a space
      Returns:
      A String representation of the attributes list
    • getFirst

      public WebXAttribute getFirst()
    • getLast

      public WebXAttribute getLast()
    • getSlice

      public WebXAttributes getSlice(int start, int end)
    • getSlice

      public WebXAttributes getSlice(int end)