Package org.openstreetmap.josm.io
Interface UrlPattern
-
- All Known Implementing Classes:
UrlPatterns.GeoJsonUrlPattern,UrlPatterns.GpxUrlPattern,UrlPatterns.NoteUrlPattern,UrlPatterns.OsmChangeUrlPattern,UrlPatterns.OsmUrlPattern
public interface UrlPattern
Download URL pattern.- Since:
- 15784
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.regex.Matchermatcher(java.lang.String input)Creates a matcher that will match the given input against this pattern.default booleanmatches(java.lang.String input)Attempts to match the given input against the pattern.default booleanmatches(java.net.URL url)Attempts to match the given URL external form against the pattern.java.lang.Stringpattern()Returns the URL pattern.
-
-
-
Method Detail
-
pattern
java.lang.String pattern()
Returns the URL pattern.- Returns:
- the URL pattern
-
matcher
default java.util.regex.Matcher matcher(java.lang.String input)
Creates a matcher that will match the given input against this pattern.- Parameters:
input- The character sequence to be matched- Returns:
- A new matcher for this pattern
-
matches
default boolean matches(java.lang.String input)
Attempts to match the given input against the pattern.- Parameters:
input- The character sequence to be matched- Returns:
trueif the given input matches this pattern
-
matches
default boolean matches(java.net.URL url)
Attempts to match the given URL external form against the pattern.- Parameters:
url- URL to be matched- Returns:
trueif the given URL matches this pattern
-
-