|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.subversion.javahl.tests.WC
public class WC
This class describe the expected state of the working copy
Nested Class Summary | |
---|---|
class |
WC.Item
internal class to discribe a single working copy item |
Constructor Summary | |
---|---|
WC()
|
Method Summary | |
---|---|
WC.Item |
addItem(java.lang.String path,
java.lang.String content)
Add a new item to the working copy |
WC |
copy()
Copy an expected working copy state |
WC.Item |
getItem(java.lang.String path)
Returns the item at a path |
java.lang.String |
getItemContent(java.lang.String path)
Returns the file content of the item at a path |
void |
materialize(java.io.File root)
Generate from the expected state of the working copy a new working copy |
void |
removeItem(java.lang.String path)
Remove the item at a path |
void |
setItemCheckContent(java.lang.String path,
boolean check)
set the flag to check the content of item at a path during next check. |
void |
setItemContent(java.lang.String path,
java.lang.String content)
Set the file content of the item at a path |
void |
setItemIsLocked(java.lang.String path,
boolean isLocked)
Set the expected lock state at a path |
void |
setItemIsSwitched(java.lang.String path,
boolean isSwitched)
Set the expected switched flag at a path |
void |
setItemNodeKind(java.lang.String path,
int nodeKind)
Set the expected node kind at a path |
void |
setItemPropStatus(java.lang.String path,
int status)
Set property status of the item at a path |
void |
setItemTextStatus(java.lang.String path,
int status)
Set text (content) status of the item at a path |
void |
setItemWorkingCopyRevision(java.lang.String path,
long revision)
Set the revision number of the item at a path |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WC()
Method Detail |
---|
public void materialize(java.io.File root) throws java.io.IOException
root
- the working copy directory
java.io.IOException
public WC.Item addItem(java.lang.String path, java.lang.String content)
path
- the path of the itemcontent
- the content of the item. A null content signifies a
directory
public WC.Item getItem(java.lang.String path)
path
- the path, where the item is searched
public void removeItem(java.lang.String path)
path
- the path, where the item is removedpublic void setItemTextStatus(java.lang.String path, int status)
path
- the path, where the status is setstatus
- the new text statuspublic void setItemPropStatus(java.lang.String path, int status)
path
- the path, where the status is setstatus
- the new property statuspublic void setItemWorkingCopyRevision(java.lang.String path, long revision)
path
- the path, where the revision number is setrevision
- the new revision numberpublic java.lang.String getItemContent(java.lang.String path)
path
- the path, where the content is retrieved
public void setItemContent(java.lang.String path, java.lang.String content)
path
- the path, where the content is setcontent
- the new contentpublic void setItemCheckContent(java.lang.String path, boolean check)
path
- the path, where the flag is setcheck
- the flagpublic void setItemNodeKind(java.lang.String path, int nodeKind)
path
- the path, where the node kind is setnodeKind
- the expected node kindpublic void setItemIsLocked(java.lang.String path, boolean isLocked)
path
- the path, where the lock state is setisLocked
- the flagpublic void setItemIsSwitched(java.lang.String path, boolean isSwitched)
path
- the path, where the switch flag is setisSwitched
- the flagpublic WC copy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |