|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.hungry.javacvs.util.CVSRoot
This class corresponds to the CVSROOT variable. It has access methods to get all the useful information out of the CVSROOT.
| Field Summary | |
static int |
JSERVER_METHOD
corresponds to CVSROOTs with :jserver: |
static int |
KSERVER_METHOD
corresponds to CVSROOTs with :kserver: |
static int |
PSERVER_METHOD
corresponds to CVSROOTs with :pserver: |
static int |
SERVER_METHOD
corresponds to CVSROOTs without any of the above patterns. |
| Constructor Summary | |
CVSRoot(java.lang.String root)
Construct a CVSRoot corresponding to the given CVSROOT spec. |
|
| Method Summary | |
java.lang.String |
getLogin()
Returns the user's login |
int |
getMethod()
Returns the access method |
java.lang.String |
getRootDir()
Returns the server-side root directory for |
java.lang.String |
getServer()
Returns the server hostname |
static java.lang.String |
methodToString(int method)
Converts from a *_METHOD constant to its corresponding string. |
static int |
stringToMethod(java.lang.String method)
Converts from the string of type "pserver" to one of the *_METHOD constants |
java.lang.String |
toString()
Converts the CVSRoot to the form from which it was parsed. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int PSERVER_METHOD
public static final int JSERVER_METHOD
public static final int KSERVER_METHOD
public static final int SERVER_METHOD
| Constructor Detail |
public CVSRoot(java.lang.String root)
throws CVSBadCVSRootError
root - the CVSROOT string| Method Detail |
public int getMethod()
public java.lang.String getRootDir()
public java.lang.String getServer()
public java.lang.String getLogin()
public static int stringToMethod(java.lang.String method)
public static java.lang.String methodToString(int method)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||