Package org.wildfly.discovery
Class SubstringFilterSpec
java.lang.Object
org.wildfly.discovery.FilterSpec
org.wildfly.discovery.SubstringFilterSpec
- All Implemented Interfaces:
Serializable
- Author:
- David M. Lloyd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.wildfly.discovery.FilterSpec
FilterSpec.Visitor<P,R, E extends Exception> -
Method Summary
Modifier and TypeMethodDescription<P,R, E extends Exception>
Raccept(FilterSpec.Visitor<P, R, E> visitor, P parameter) booleanequals(FilterSpec other) booleanequals(SubstringFilterSpec other) Get the attribute to compare against.Get the final part which must match.Get the initial part which must match.inthashCode()booleanmatchesMulti(Map<String, ? extends Collection<AttributeValue>> attributes) Determine whether the given attribute multi-map matches this filter.booleanmatchesSimple(Map<String, AttributeValue> attributes) Determine whether the given simple attribute map matches this filter.booleanmayMatch(Collection<String> attributeNames) Determine whether this filter spec might match an attribute map containing the given keys.booleanmayNotMatch(Collection<String> attributeNames) Determine whether this filter spec might not match an attribute map containing the given keys.Methods inherited from class org.wildfly.discovery.FilterSpec
accept, all, all, all, any, any, approx, equal, equal, equals, escape, escapeTo, fromString, greaterOrEqual, greaterOrEqual, hasAttribute, lessOrEqual, lessOrEqual, none, not, substringMatch, toString, willMatch, willNotMatch
-
Method Details
-
matchesSimple
Description copied from class:FilterSpecDetermine whether the given simple attribute map matches this filter.- Specified by:
matchesSimplein classFilterSpec- Parameters:
attributes- the attribute map- Returns:
trueif the map matches,falseotherwise
-
matchesMulti
Description copied from class:FilterSpecDetermine whether the given attribute multi-map matches this filter.- Specified by:
matchesMultiin classFilterSpec- Parameters:
attributes- the attribute map- Returns:
trueif the map matches,falseotherwise
-
mayMatch
Description copied from class:FilterSpecDetermine whether this filter spec might match an attribute map containing the given keys.- Specified by:
mayMatchin classFilterSpec- Parameters:
attributeNames- the attribute names- Returns:
trueif the filter spec might match,falseif it will definitely not match
-
mayNotMatch
Description copied from class:FilterSpecDetermine whether this filter spec might not match an attribute map containing the given keys.- Specified by:
mayNotMatchin classFilterSpec- Parameters:
attributeNames- the attribute names- Returns:
trueif the filter spec might not match,falseif it will definitely match
-
accept
public <P,R, R acceptE extends Exception> (FilterSpec.Visitor<P, R, throws EE> visitor, P parameter) - Specified by:
acceptin classFilterSpec- Throws:
E extends Exception
-
getAttribute
Get the attribute to compare against.- Returns:
- the attribute to compare against
-
getInitialPart
Get the initial part which must match.- Returns:
- the initial part which must match
-
getFinalPart
Get the final part which must match.- Returns:
- the final part which must match.
-
hashCode
public int hashCode() -
equals
- Specified by:
equalsin classFilterSpec
-
equals
-