public interface AttributeContainer
Modifier and Type | Method and Description |
---|---|
void |
addAll(Iterable<Attribute> atts)
Add all; replace old if has same name
|
Attribute |
addAttribute(Attribute att)
Add new or replace old if has same name
|
Attribute |
findAttribute(String attName) |
Attribute |
findAttributeIgnoreCase(String attName) |
String |
findAttValueIgnoreCase(String attName,
String defaultValue)
Find a String-valued Attribute by Attribute name (ignore case), return the (string) value of the Attribute.
|
List<Attribute> |
getAttributes()
Returns the list of attributes for this variable.
|
String |
getName() |
boolean |
remove(Attribute a)
Remove an Attribute : uses the attribute hashCode to find it.
|
boolean |
removeAttribute(String attName)
Remove an Attribute by name.
|
boolean |
removeAttributeIgnoreCase(String attName)
Remove an Attribute by name, ignoring case
|
List<Attribute> getAttributes()
Attribute addAttribute(Attribute att)
att
- add this AttributeString findAttValueIgnoreCase(String attName, String defaultValue)
String getName()
boolean remove(Attribute a)
a
- remove this attributeboolean removeAttribute(String attName)
attName
- if exists, remove this attributeboolean removeAttributeIgnoreCase(String attName)
attName
- if exists, remove this attribute