All Implemented Interfaces:
Serializable, Cloneable, Iterable<Attribute>, Collection<Attribute>, List<Attribute>, RandomAccess, SequencedCollection<Attribute>

public class AttributeListextends Vector<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:
  • Constructor Details

    • AttributeList

      public AttributeList()
      Creates an empty AttributeList.
  • Method Details

    • getAttribute

      public Attribute getAttribute(int n)
      Gets the attribute at the specified index.
      Parameters:
      n - the index of the attribute to retrieve
      Returns:
      the attribute at the specified index
    • getAttribute

      public Attribute getAttribute(String name)
      Gets the first attribute with the specified name.
      Parameters:
      name - the name of the attribute to find
      Returns:
      the first attribute with the specified name, or null if not found