com.vaadin.client.componentlocator.

Class SelectorPredicate

  • public class SelectorPredicate
    extends Object

    SelectorPredicates are statements about the state of different components that VaadinFinderLocatorStrategy is finding. SelectorPredicates also provide useful information of said components to debug window by giving means to provide better variable naming.

    Since:

    7.2

    Author:

    Vaadin Ltd

    • Constructor Detail

      • SelectorPredicate

        public SelectorPredicate()
    • Method Detail

      • extractPredicates

        public static List<SelectorPredicate> extractPredicates​(String path)

        Generates a list of predicates from a single predicate string.

        Parameters:

        path - a comma separated string of predicates

        Returns:

        a List of Predicate objects

      • getName

        public String getName()

        Returns:

        the name

      • setName

        public void setName​(String name)

        Parameters:

        name - the name to set

      • getValue

        public String getValue()

        Returns:

        the value

      • setValue

        public void setValue​(String value)

        Parameters:

        value - the value to set

      • getIndex

        public int getIndex()

        Returns:

        the index

      • setIndex

        public void setIndex​(int index)

        Parameters:

        index - the index to set

      • isWildcard

        public boolean isWildcard()

        Returns:

        the wildcard

      • setWildcard

        public void setWildcard​(boolean wildcard)

        Parameters:

        wildcard - the wildcard to set