public class RevisionUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RevisionUtils.Type
Enumeration of source control types.
|
| Constructor and Description |
|---|
RevisionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extract(RevisionHandler handler)
Extracts the revision string returned by the RevisionHandler.
|
static String |
extract(String s)
Extracts the revision string.
|
static RevisionUtils.Type |
getType(RevisionHandler handler)
Determines the type of a (sanitized) revision string returned by the
RevisionHandler.
|
static RevisionUtils.Type |
getType(String revision)
Determines the type of a (sanitized) revision string.
|
static void |
main(String[] args)
For testing only.
|
public static String extract(RevisionHandler handler)
handler - the RevisionHandler to get the revision forpublic static String extract(String s)
s - the string to get the revision string frompublic static RevisionUtils.Type getType(RevisionHandler handler)
handler - the RevisionHandler to determine the type forpublic static RevisionUtils.Type getType(String revision)
revision - the revision to get the type forextract(String)Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.