Skip navigation links
EDB/Java
jp.ac.tokushima_u.db.utlf.parser

Class Atts



  • class Atts
    extends Object
    A collection of XML attributes.
    • Constructor Detail

      • Atts

        Atts()
        Creates a new Atts object.
      • Atts

        Atts(int size)
        Creates a new Atts object.
        Parameters:
        size - The initial size of the array for storing attributes.
    • Method Detail

      • addAtt

        public void addAtt(Att att)
        Adds an attribute.
        Parameters:
        att - attribute
      • iterator

        public Iterator<Att> iterator()
        Get an iterator on the attributes.
        Returns:
        an Iterator over Att objects.
      • getAtt

        public Att getAtt(String qName)
        Gets the attribute with the specified QName.
        Parameters:
        qName - The QName of an attribute.
        Returns:
        The attribute with the specified QName, or null if no such attribute could be found.
      • getAtt

        public Att getAtt(String namespace,
                          String localName)
        Gets the attribute with the specified namespace and local name.
        Parameters:
        namespace - The namespace of an attribute.
        localName - The local name of an attribute.
        Returns:
        The attribute with the specified namespace and local name, or null if no such attribute could be found.
      • removeAtt

        public Att removeAtt(String qName)
        Removes the attribute with the specified QName and returns it.
        Parameters:
        qName - The QName of an attribute.
        Returns:
        The removed attribute, or null if no attribute with the specified QName could be found.
      • removeAtt

        public Att removeAtt(String namespace,
                             String localName)
        Removes the attribute with the specified namespace and local name and returns it.
        Parameters:
        namespace - The namespace of an attribute.
        localName - The local name of an attribute.
        Returns:
        The removed attribute, or null if no attribute with the specified namespace and local name could be found.
      • size

        public int size()
        Returns the number of attributes contained in this object.
        Returns:
        size of attributes list
      • toString

        public String toString()
        Produces a String-representation of this object.
        Overrides:
        toString in class Object
        Returns:
        string representation of Atts
EDB/Java

EDB Working Group at Tue Jun 10 17:08:59 JST 2025