Class Tag


  • public class Tag
    extends Object
    This represents a Cucumber tag.
    • Constructor Detail

      • Tag

        public Tag()
    • Method Detail

      • getName

        public String getName()
        Get the tag name.
        Returns:
        The name.
      • setName

        public void setName​(String name)
        Set the tag name.
        Parameters:
        name - The tag name.
      • getUrlFriendlyName

        public String getUrlFriendlyName()
        Turns the tag into a name that can be used within a URL.
        Returns:
        The sanitized tag name.
      • equals

        public boolean equals​(Object o)
        Tag comparison function.
        Overrides:
        equals in class Object
        Parameters:
        o - The tag to compare to.
        Returns:
        true if the names match.
      • hashCode

        public int hashCode()
        Default hash code function that hashes the tag name.
        Overrides:
        hashCode in class Object
        Returns:
        the hash code.