Package org.omegat.filters3
Class Attributes
- java.lang.Object
-
- org.omegat.filters3.Attributes
-
public class Attributes extends java.lang.ObjectA list of Tag's attributes.
-
-
Constructor Summary
Constructors Constructor Description Attributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Attribute attr)Adds an attribute to the list.Attributeget(int index)Gets one of the attributes from the list.java.lang.StringgetValueByName(java.lang.String attrName)Find attribute value by name.intsize()Number of attributes.java.lang.StringtoString()Returns a string representation of the list of attributes.
-
-
-
Method Detail
-
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
public java.lang.String getValueByName(java.lang.String attrName)
Find attribute value by name.- Parameters:
attrName- attribute name, case insensitive- Returns:
- attribute value, or null if not found
-
toString
public java.lang.String toString()
Returns a string representation of the list of attributes. ' name1="value1" name2="value2" ...'- Overrides:
toStringin classjava.lang.Object
-
-