public interface AttributeContainer extends Iterable<Attribute>
Modifier and Type | Method and Description |
---|---|
void |
addAll(Iterable<Attribute> atts)
Deprecated.
will be removed in version 6.
|
Attribute |
addAttribute(Attribute att)
Deprecated.
will be removed in version 6.
|
Attribute |
findAttribute(String attName)
Find an Attribute by name
|
double |
findAttributeDouble(String attName,
double defaultValue)
Find a Numeric Attribute by name (ignore case), return the double value of the Attribute.
|
Attribute |
findAttributeIgnoreCase(String attName)
Find an Attribute by name, first try doing an exact match, then try ignoring case.
|
int |
findAttributeInteger(String attName,
int defaultValue)
Find a Numeric Attribute by name (ignore case), return the integer value of the Attribute.
|
String |
findAttValueIgnoreCase(String attName,
String defaultValue)
Find a String-valued Attribute by name (ignore case), return the String value of the Attribute.
|
List<Attribute> |
getAttributes()
Deprecated.
use Iterable
|
String |
getName()
Get the (optional) name of the AttributeContainer.
|
default boolean |
hasAttribute(String attName)
Determine if named attribute exists.
|
default Iterator<Attribute> |
iterator() |
boolean |
remove(Attribute a)
Deprecated.
will be removed in version 6.
|
boolean |
removeAttribute(String attName)
Deprecated.
will be removed in version 6.
|
boolean |
removeAttributeIgnoreCase(String attName)
Deprecated.
will be removed in version 6.
|
forEach, spliterator
String findAttValueIgnoreCase(String attName, String defaultValue)
double findAttributeDouble(String attName, double defaultValue)
int findAttributeInteger(String attName, int defaultValue)
default boolean hasAttribute(String attName)
@Nullable Attribute findAttributeIgnoreCase(String attName)
@Deprecated List<Attribute> getAttributes()
@Deprecated void addAll(Iterable<Attribute> atts)
@Deprecated Attribute addAttribute(Attribute att)
att
- add this Attribute@Deprecated boolean remove(Attribute a)
a
- remove this attribute@Deprecated boolean removeAttribute(String attName)
attName
- if exists, remove this attribute@Deprecated boolean removeAttributeIgnoreCase(String attName)
attName
- if exists, remove this attribute