@Deprecated public class AttributeContainerHelper extends Object implements AttributeContainer
| Constructor and Description |
|---|
AttributeContainerHelper(String name)
Deprecated.
|
AttributeContainerHelper(String name,
List<Attribute> from)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Iterable<Attribute> atts)
Deprecated.
Add all; replace old if has same name.
|
Attribute |
addAttribute(Attribute att)
Deprecated.
Add new or replace old if has same name
|
Attribute |
addAttribute(String name,
Number value)
Deprecated.
Add Attribute; name and value must not be null.
|
Attribute |
addAttribute(String name,
String value)
Deprecated.
Add Attribute; name and value must not be null.
|
static AttributeContainer |
filter(AttributeContainer atts,
String... remove)
Deprecated.
Do not use.
|
Attribute |
findAttribute(String name)
Deprecated.
Find an Attribute by name
|
double |
findAttributeDouble(String attName,
double defaultValue)
Deprecated.
Find a Numeric Attribute by name (ignore case), return the double value of the Attribute.
|
Attribute |
findAttributeIgnoreCase(String name)
Deprecated.
Find an Attribute by name, first try doing an exact match, then try ignoring case.
|
int |
findAttributeInteger(String attName,
int defaultValue)
Deprecated.
Find a Numeric Attribute by name (ignore case), return the integer value of the Attribute.
|
String |
findAttValueIgnoreCase(String attName,
String defaultValue)
Deprecated.
Find a String-valued Attribute by name (ignore case), return the String value of the Attribute.
|
List<Attribute> |
getAttributes()
Deprecated.
Returns immutable list of attributes.
|
String |
getName()
Deprecated.
Get the (optional) name of the AttributeContainer.
|
boolean |
remove(Attribute a)
Deprecated.
Remove an Attribute : uses the attribute hashCode to find it.
|
boolean |
removeAttribute(String attName)
Deprecated.
Remove an Attribute by name.
|
boolean |
removeAttributeIgnoreCase(String attName)
Deprecated.
Remove an Attribute by name, ignoring case
|
void |
replace(Attribute a,
String newName)
Deprecated.
Replace an Attribute with a different name, same value.
|
void |
setImmutable()
Deprecated.
|
static void |
show(AttributeContainer atts,
Indent indent,
Formatter f)
Deprecated.
|
AttributeContainer |
toImmutable()
Deprecated.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasAttribute, iteratorforEach, spliteratorpublic AttributeContainerHelper(String name)
@Deprecated public static AttributeContainer filter(AttributeContainer atts, String... remove)
atts - Start with this set of Attributes.remove - Remove any whose name starts with one of these.@Deprecated public static void show(AttributeContainer atts, Indent indent, Formatter f)
public String getName()
AttributeContainergetName in interface AttributeContainer@Deprecated public void setImmutable()
public List<Attribute> getAttributes()
AttributeContainergetAttributes in interface AttributeContainerpublic Attribute addAttribute(Attribute att)
AttributeContaineraddAttribute in interface AttributeContaineratt - add this Attributepublic Attribute addAttribute(String name, String value)
public Attribute addAttribute(String name, Number value)
public void addAll(Iterable<Attribute> atts)
addAll in interface AttributeContainerpublic String findAttValueIgnoreCase(String attName, String defaultValue)
AttributeContainerfindAttValueIgnoreCase in interface AttributeContainerpublic Attribute findAttribute(String name)
AttributeContainerfindAttribute in interface AttributeContainerpublic Attribute findAttributeIgnoreCase(String name)
AttributeContainerfindAttributeIgnoreCase in interface AttributeContainerpublic double findAttributeDouble(String attName, double defaultValue)
AttributeContainerfindAttributeDouble in interface AttributeContainerpublic int findAttributeInteger(String attName, int defaultValue)
AttributeContainerfindAttributeInteger in interface AttributeContainerpublic boolean remove(Attribute a)
remove in interface AttributeContainera - remove this attributepublic void replace(Attribute a, String newName)
a - remove this attributepublic boolean removeAttribute(String attName)
removeAttribute in interface AttributeContainerattName - if exists, remove this attributepublic boolean removeAttributeIgnoreCase(String attName)
removeAttributeIgnoreCase in interface AttributeContainerattName - if exists, remove this attributepublic AttributeContainer toImmutable()