|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.RevisionUtils
public class RevisionUtils
Contains utility functions for handling revisions.
Nested Class Summary | |
---|---|
static class |
RevisionUtils.Type
Enumeration of source control types. |
Constructor Summary | |
---|---|
RevisionUtils()
|
Method Summary | |
---|---|
static java.lang.String |
extract(RevisionHandler handler)
Extracts the revision string returned by the RevisionHandler. |
static java.lang.String |
extract(java.lang.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(java.lang.String revision)
Determines the type of a (sanitized) revision string. |
static void |
main(java.lang.String[] args)
For testing only. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RevisionUtils()
Method Detail |
---|
public static java.lang.String extract(RevisionHandler handler)
handler
- the RevisionHandler to get the revision for
public static java.lang.String extract(java.lang.String s)
s
- the string to get the revision string from
public static RevisionUtils.Type getType(RevisionHandler handler)
handler
- the RevisionHandler to determine the type for
public static RevisionUtils.Type getType(java.lang.String revision)
revision
- the revision to get the type for
extract(String)
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the commandline arguments
java.lang.Exception
- if something goes wrong
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |