|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.xml.Element.AttributeSequence
public class Element.AttributeSequence
Sequence representing the attributes declared by this element.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
---|
Sequence.Tree<T> |
Method Summary | |
---|---|
int |
add(Element.Attribute attribute)
Adds an attribute to the sequence. |
Element.Attribute |
get(int index)
Returns the attribute at a given index. |
int |
getLength()
Returns the number of attributes in the sequence. |
int |
indexOf(Element.Attribute attribute)
Determines the index of an attribute. |
void |
insert(Element.Attribute attribute,
int index)
Inserts an attribute into the sequence at a specific location. |
Iterator<Element.Attribute> |
iterator()
Returns an iterator over the attribute sequence. |
int |
remove(Element.Attribute attribute)
Removes an attribute from the sequence. |
Sequence<Element.Attribute> |
remove(int index,
int count)
Removes a range of attributes from the sequence. |
Element.Attribute |
update(int index,
Element.Attribute item)
Updates the item at the given index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int add(Element.Attribute attribute)
add
in interface Sequence<Element.Attribute>
attribute
-
public void insert(Element.Attribute attribute, int index)
insert
in interface Sequence<Element.Attribute>
attribute
- index
- public Element.Attribute update(int index, Element.Attribute item)
Sequence
update
in interface Sequence<Element.Attribute>
index
- The index of the item to update.item
- The item that will replace any existing value at the given index.
UnsupportedOperationException
- This method is not supported. Use Element.Attribute.setValue(String)
instead.public int remove(Element.Attribute attribute)
remove
in interface Sequence<Element.Attribute>
attribute
-
Sequence.remove(int, int)
public Sequence<Element.Attribute> remove(int index, int count)
remove
in interface Sequence<Element.Attribute>
index
- count
-
public Element.Attribute get(int index)
get
in interface Sequence<Element.Attribute>
index
- public int indexOf(Element.Attribute attribute)
indexOf
in interface Sequence<Element.Attribute>
attribute
-
public int getLength()
getLength
in interface Sequence<Element.Attribute>
public Iterator<Element.Attribute> iterator()
iterator
in interface Iterable<Element.Attribute>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |