Class Tag


  • public class Tag
    extends Object
    This class represents a XML tag.
    A XML tag is defined with :
    • a name
    • a type (START tag or END tag)
    Author:
    Apache Directory Project
    • Constructor Detail

      • Tag

        public Tag​(String name,
                   int type)
        Creates a new instance of Tag.
        Parameters:
        name - the name of the tag
        type - the type of the tag
    • Method Detail

      • getName

        public String getName()
        Gets the name of the tag
        Returns:
        the name of the tag
      • setName

        public void setName​(String name)
        Sets the name of the tag
        Parameters:
        name - the name to set
      • getType

        public int getType()
        Gets the type of the tag
        Returns:
        the type of the tag
      • setType

        public void setType​(int type)
        Sets the type of the tag
        Parameters:
        type - the type to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object