Class Attributes

java.lang.Object
org.omegat.filters3.Attributes

public class Attributes extends Object
A list of Tag's attributes.
  • Constructor Details

    • Attributes

      public Attributes()
  • Method Details

    • size

      public int size()
      Number of attributes.
    • add

      public void add(Attribute attr)
      Adds an attribute to the list.
    • get

      public Attribute get(int index)
      Gets one of the attributes from the list.
    • getValueByName

      @Nullable public @Nullable String getValueByName(String attrName)
      Find attribute value by name.
      Parameters:
      attrName - attribute name, case insensitive
      Returns:
      attribute value, or null if not found
    • toString

      public String toString()
      Returns a string representation of the list of attributes. ' name1="value1" name2="value2" ...'
      Overrides:
      toString in class Object