Package org.omegat.filters3
Class Attributes
java.lang.Object
org.omegat.filters3.Attributes
A list of Tag's attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an attribute to the list.get(int index) Gets one of the attributes from the list.@Nullable StringgetValueByName(String attrName) Find attribute value by name.intsize()Number of attributes.toString()Returns a string representation of the list of attributes.
-
Constructor Details
-
Attributes
public Attributes()
-
-
Method Details
-
size
public int size()Number of attributes. -
add
Adds an attribute to the list. -
get
Gets one of the attributes from the list. -
getValueByName
Find attribute value by name.- Parameters:
attrName- attribute name, case insensitive- Returns:
- attribute value, or null if not found
-
toString
Returns a string representation of the list of attributes. ' name1="value1" name2="value2" ...'
-