@Deprecated public class AttributeContainerHelper extends java.lang.Object implements AttributeContainer
Constructor and Description |
---|
AttributeContainerHelper(java.lang.String name)
Deprecated.
|
AttributeContainerHelper(java.lang.String name,
java.util.List<Attribute> from)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAll(java.lang.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(java.lang.String name,
java.lang.Number value)
Deprecated.
Add Attribute; name and value must not be null.
|
Attribute |
addAttribute(java.lang.String name,
java.lang.String value)
Deprecated.
Add Attribute; name and value must not be null.
|
static AttributeContainer |
filter(AttributeContainer atts,
java.lang.String... remove)
Deprecated.
use AttributeContainer.filter().
|
Attribute |
findAttribute(java.lang.String name)
Deprecated.
Find an Attribute by exact match on name.
|
double |
findAttributeDouble(java.lang.String attName,
double defaultValue)
Deprecated.
Find a Numeric Attribute by name (ignore case), return the double value of the Attribute.
|
Attribute |
findAttributeIgnoreCase(java.lang.String name)
Deprecated.
Find an Attribute by name, first doing an exact match, then ignoring case.
|
int |
findAttributeInteger(java.lang.String attName,
int defaultValue)
Deprecated.
Find a Numeric Attribute by name (ignore case), return the integer value of the Attribute.
|
java.lang.String |
findAttributeString(java.lang.String attName,
java.lang.String defaultValue)
Deprecated.
Find a String Attribute by name (ignore case), return the String value of the Attribute.
|
java.util.List<Attribute> |
getAttributes()
Deprecated.
Returns immutable list of attributes.
|
java.lang.String |
getName()
Deprecated.
Get the (optional) name of the AttributeContainer.
|
boolean |
isEmpty()
Deprecated.
True is there are no attributes in the container.
|
boolean |
remove(Attribute a)
Deprecated.
Remove an Attribute : uses the attribute hashCode to find it.
|
boolean |
removeAttribute(java.lang.String attName)
Deprecated.
Remove an Attribute by name.
|
boolean |
removeAttributeIgnoreCase(java.lang.String attName)
Deprecated.
Remove an Attribute by name, ignoring case
|
void |
replace(Attribute a,
java.lang.String newName)
Deprecated.
Replace an Attribute with a different name, same value.
|
void |
setImmutable()
Deprecated.
|
static void |
show(AttributeContainer atts,
Indent indent,
java.util.Formatter f)
Deprecated.
|
AttributeContainer |
toImmutable()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAttValueIgnoreCase, hasAttribute, hasAttributeIgnoreCase, iterator
public AttributeContainerHelper(java.lang.String name)
public AttributeContainerHelper(java.lang.String name, java.util.List<Attribute> from)
@Deprecated public static AttributeContainer filter(AttributeContainer atts, java.lang.String... remove)
filter
in interface AttributeContainer
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, java.util.Formatter f)
public java.lang.String getName()
AttributeContainer
getName
in interface AttributeContainer
@Deprecated public void setImmutable()
public boolean isEmpty()
AttributeContainer
isEmpty
in interface AttributeContainer
public java.util.List<Attribute> getAttributes()
AttributeContainer
getAttributes
in interface AttributeContainer
public Attribute addAttribute(Attribute att)
AttributeContainer
addAttribute
in interface AttributeContainer
att
- add this Attributepublic Attribute addAttribute(java.lang.String name, java.lang.String value)
public Attribute addAttribute(java.lang.String name, java.lang.Number value)
public void addAll(java.lang.Iterable<Attribute> atts)
addAll
in interface AttributeContainer
public java.lang.String findAttributeString(java.lang.String attName, java.lang.String defaultValue)
AttributeContainer
findAttributeString
in interface AttributeContainer
public Attribute findAttribute(java.lang.String name)
AttributeContainer
findAttribute
in interface AttributeContainer
public Attribute findAttributeIgnoreCase(java.lang.String name)
AttributeContainer
findAttributeIgnoreCase
in interface AttributeContainer
public double findAttributeDouble(java.lang.String attName, double defaultValue)
AttributeContainer
findAttributeDouble
in interface AttributeContainer
public int findAttributeInteger(java.lang.String attName, int defaultValue)
AttributeContainer
findAttributeInteger
in interface AttributeContainer
public boolean remove(Attribute a)
remove
in interface AttributeContainer
a
- remove this attributepublic void replace(Attribute a, java.lang.String newName)
a
- remove this attributepublic boolean removeAttribute(java.lang.String attName)
removeAttribute
in interface AttributeContainer
attName
- if exists, remove this attributepublic boolean removeAttributeIgnoreCase(java.lang.String attName)
removeAttributeIgnoreCase
in interface AttributeContainer
attName
- if exists, remove this attributepublic AttributeContainer toImmutable()