public class Attributes extends AbstractSet<Attributes.Attribute> implements Cloneable, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Attributes.Attribute |
Modifier and Type | Field and Description |
---|---|
protected ArrayList<Attributes.Attribute> |
attributes |
Constructor and Description |
---|
Attributes() |
Attributes(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Attributes.Attribute a) |
void |
addXml(Element element,
long flags) |
void |
clear() |
Attributes |
clone() |
boolean |
contains(Object item) |
Object |
get(String name) |
int |
indexOf(String name) |
Iterator<Attributes.Attribute> |
iterator() |
protected ArrayList<Attributes.Attribute> |
list() |
boolean |
remove(Object item) |
Attributes.Attribute |
set(String name,
Object value) |
int |
size() |
Object[] |
toArray() |
String |
toString() |
equals, hashCode, removeAll
addAll, containsAll, isEmpty, retainAll, toArray
protected ArrayList<Attributes.Attribute> attributes
protected ArrayList<Attributes.Attribute> list()
public Attributes clone()
public Iterator<Attributes.Attribute> iterator()
iterator
in interface Iterable<Attributes.Attribute>
iterator
in interface Collection<Attributes.Attribute>
iterator
in interface Set<Attributes.Attribute>
iterator
in class AbstractCollection<Attributes.Attribute>
public int size()
size
in interface Collection<Attributes.Attribute>
size
in interface Set<Attributes.Attribute>
size
in class AbstractCollection<Attributes.Attribute>
public void clear()
clear
in interface Collection<Attributes.Attribute>
clear
in interface Set<Attributes.Attribute>
clear
in class AbstractCollection<Attributes.Attribute>
public boolean contains(Object item)
contains
in interface Collection<Attributes.Attribute>
contains
in interface Set<Attributes.Attribute>
contains
in class AbstractCollection<Attributes.Attribute>
public boolean add(Attributes.Attribute a)
add
in interface Collection<Attributes.Attribute>
add
in interface Set<Attributes.Attribute>
add
in class AbstractCollection<Attributes.Attribute>
public boolean remove(Object item)
remove
in interface Collection<Attributes.Attribute>
remove
in interface Set<Attributes.Attribute>
remove
in class AbstractCollection<Attributes.Attribute>
public int indexOf(String name)
name
- the attribute namepublic Attributes.Attribute set(String name, Object value)
name
- the attributevalue
- The attribute to setpublic Object[] toArray()
toArray
in interface Collection<Attributes.Attribute>
toArray
in interface Set<Attributes.Attribute>
toArray
in class AbstractCollection<Attributes.Attribute>
public String toString()
toString
in class AbstractCollection<Attributes.Attribute>
public void addXml(Element element, long flags)
element
- the XMLElement to which to append the optionsflags
- options (currently unused)Copyright © 2008–2015 Apache Software Foundation. All rights reserved.