- All Implemented Interfaces:
Serializable, Cloneable, Iterable<Attribute>, Collection<Attribute>, List<Attribute>, RandomAccess, SequencedCollection<Attribute>
A vector-based collection of XML attributes.
This class extends Vector to provide specialized methods for managing collections of Attribute objects. It includes methods for finding attributes by name.
- See Also:
Field Summary
Fields inherited from class Vector
capacityIncrement, elementCount, elementDataFields inherited from class AbstractList
modCountConstructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptiongetAttribute(int n) Gets the attribute at the specified index.getAttribute(String name) Gets the first attribute with the specified name.Methods inherited from class Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizeMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
Constructor Details
AttributeList
public AttributeList()Creates an empty AttributeList.
Method Details
getAttribute
Gets the attribute at the specified index.- Parameters:
n- the index of the attribute to retrieve- Returns:
- the attribute at the specified index
getAttribute