Class InMatcher
java.lang.Object
pl.decerto.hyperon.runtime.matcher.AbstractMatcher
pl.decerto.hyperon.runtime.matcher.AbstractSetMatcher
pl.decerto.hyperon.runtime.matcher.InMatcher
- All Implemented Interfaces:
Matcher
- Direct Known Subclasses:
NotInMatcher
- Author:
- przemek hertel
-
Field Summary
Fields inherited from class pl.decerto.hyperon.runtime.matcher.AbstractSetMatcher
DEFAULT_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ValueHolder>
booleanPattern w komorce zawiera liste elementow typu [type].Methods inherited from class pl.decerto.hyperon.runtime.matcher.AbstractSetMatcher
matchesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.smartparam.engine.core.matcher.Matcher
isReverse, setReverse
-
Constructor Details
-
InMatcher
public InMatcher(char separator)
-
-
Method Details
-
doMatches
Pattern w komorce zawiera liste elementow typu [type]. Matcher spawdza, czy przekazana wartosc [value] jest na liscie okreslonej przez [pattern].
Pattern moze zawierac wartosci oddzielone separatorem albo znak specjalny (*). Domylsny separator to przecinek. Moze byc zmieniony setterem lub w konstruktorze.
Wartosc [value] a takze wszystkie wartosci na liscie tuz przed sprawdzeniem sa normalizowane do postaci ValueHolder.- Specified by:
doMatchesin classAbstractSetMatcher- Parameters:
value- value form query (provided by user)pattern- pattern from parameter matrix (can be '*')type- type of value, might be null if none was set- Returns:
- wynik sprawdzenia, czy [value] jest na liscie okreslonej w [pattern]
-