public class SVNNotifyPrinter extends java.lang.Object implements ISVNEventHandler
Modifier and Type | Field and Description |
---|---|
private SVNCommandEnvironment |
myEnvironment |
private boolean |
myHasExternalErrors |
private boolean |
myHasLockingError |
private boolean |
myIsChangesReceived |
private boolean |
myIsCheckout |
private boolean |
myIsDeltaSent |
private boolean |
myIsExport |
private boolean |
myIsInExternal |
private boolean |
myIsSuppressLastLine |
private boolean |
myIsWcToReposCopy |
UNKNOWN
NULL
Constructor and Description |
---|
SVNNotifyPrinter(SVNCommandEnvironment env) |
SVNNotifyPrinter(SVNCommandEnvironment env,
boolean isCheckout,
boolean isExport,
boolean suppressLastLine) |
Modifier and Type | Method and Description |
---|---|
private void |
appendRemaining(java.lang.StringBuffer buffer,
int conflictsCount) |
private void |
appendResolved(java.lang.StringBuffer buffer,
int resolvedTreeConflictsCount) |
void |
checkCancelled()
Checks if the current operation is cancelled (somehow interrupted)
and should throw an SVNCancelException or notify the handler if exists.
|
private SVNConflictStats |
getConflictStats() |
void |
handleEvent(SVNEvent event,
double progress)
Handles the current event.
|
boolean |
hasExternalErrors() |
boolean |
hasLockingErrors() |
boolean |
isWcToReposCopy() |
void |
printConflictStatus(java.lang.StringBuffer buffer) |
void |
setWcToReposCopy(boolean wcToReposCopy) |
private SVNCommandEnvironment myEnvironment
private boolean myIsInExternal
private boolean myIsChangesReceived
private boolean myIsDeltaSent
private boolean myIsCheckout
private boolean myIsExport
private boolean myIsSuppressLastLine
private boolean myHasExternalErrors
private boolean myHasLockingError
private boolean myIsWcToReposCopy
public SVNNotifyPrinter(SVNCommandEnvironment env)
public SVNNotifyPrinter(SVNCommandEnvironment env, boolean isCheckout, boolean isExport, boolean suppressLastLine)
public void setWcToReposCopy(boolean wcToReposCopy)
public boolean isWcToReposCopy()
public boolean hasExternalErrors()
public boolean hasLockingErrors()
public void handleEvent(SVNEvent event, double progress) throws SVNException
ISVNEventHandler
Generally all operations represented by do*() methods of SVN*Client objects are followed by generating a sequence of events that are passed to the registered ISVNEventHandler object for custom processing. For example, during an update operation each local item being modified is signaled about by dispatching a specific for this item SVNEvent object to this method where this event can be scrutinized and handled in a desired way.
handleEvent
in interface ISVNEventHandler
event
- the current event that keeps detailed information on
the type of action occured and other attributes like path,
status, etc.progress
- currently reserved for future use; now it's value
is always set to ISVNEventHandler.UNKNOWN
SVNException
public void checkCancelled() throws SVNCancelException
ISVNCanceller
checkCancelled
in interface ISVNCanceller
SVNCancelException
public void printConflictStatus(java.lang.StringBuffer buffer)
private void appendRemaining(java.lang.StringBuffer buffer, int conflictsCount)
private void appendResolved(java.lang.StringBuffer buffer, int resolvedTreeConflictsCount)
private SVNConflictStats getConflictStats()