|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.domain.key.PathMatcher
public final class PathMatcher
Matches a path that may contain wildcards at the end of the path.
Nested Class Summary | |
---|---|
static class |
PathMatcher.Matcher Matcher of a single path. |
Method Summary | |
---|---|
static PathMatcher |
forMatchers(ConfigurationKey<?> configurationKey, List<PathMatcher.Matcher> matchers) Constructs an instance based on the given matchers. |
static PathMatcher |
forPaths(ConfigurationKey<?> configurationKey, List<String> paths) Constructs an instance based on the given paths. |
ConfigurationKey<?> |
getConfigurationKey() Returns the configuration key the matcher is responsible for. |
boolean |
match(String id) Matches the identifier with the matchers algorithm. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static PathMatcher forPaths(ConfigurationKey<?> configurationKey, List<String> paths)
configurationKey
- the configuration key the matcher is responsible for.
paths
- the list of paths to match. A path may end with
*
signaling a wildcard match.
public static PathMatcher forMatchers(ConfigurationKey<?> configurationKey, List<PathMatcher.Matcher> matchers)
configurationKey
- the configuration key the matcher is responsible for.
matchers
- the matchers to use for matching.
public ConfigurationKey<?> getConfigurationKey()
getConfigurationKey
in interface
PropertiesResourceMatcher
public boolean match(String id)
PropertiesResourceMatcher
match
in interface
PropertiesResourceMatcher
id
- the identifier of the resource.
true
if the matcher matches the
id
,
false
otherwise.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |