|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.scm.provider.ScmUrlUtils
public abstract class ScmUrlUtils
A utility class that validates and parses scm url:s. The code here is not scm provider specific.
If you need methods that work for a specific scm provider, please create a similar class for that provider. E.g. create the class CvsScmUrlUtils if you need cvs specific checking/parsing.
Constructor Summary | |
---|---|
ScmUrlUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getDelimiter(java.lang.String scmUrl)
Get the delimiter used in the scm url. |
static java.lang.String |
getProvider(java.lang.String scmUrl)
Get the scm provider from the scm url. |
static java.lang.String |
getProviderSpecificPart(java.lang.String scmUrl)
Get the provider specific part of the scm url. |
static boolean |
isValid(java.lang.String scmUrl)
Validate that the scm url is in the correct format. |
static java.util.List |
validate(java.lang.String scmUrl)
Validate that the scm url is in the correct format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScmUrlUtils()
Method Detail |
---|
public static java.lang.String getDelimiter(java.lang.String scmUrl)
scmUrl
- A valid scm url to parse
public static java.lang.String getProvider(java.lang.String scmUrl)
scmUrl
- A valid scm url to parse
public static java.lang.String getProviderSpecificPart(java.lang.String scmUrl)
scmUrl
- A valid scm url to parse
public static boolean isValid(java.lang.String scmUrl)
scmUrl
- The scm url to validate
true
if the scm url is in the correct format,
otherwise false
public static java.util.List validate(java.lang.String scmUrl)
scmUrl
- The scm url to validate
List
that contains the errors that occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |