Package org.tmatesoft.svn.cli.svn
Class SVNNotifyPrinter
java.lang.Object
org.tmatesoft.svn.cli.svn.SVNNotifyPrinter
- All Implemented Interfaces:
ISVNCanceller,ISVNEventHandler
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNCommandEnvironmentprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanFields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULLFields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionSVNNotifyPrinter(SVNCommandEnvironment env, boolean isCheckout, boolean isExport, boolean suppressLastLine) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidappendRemaining(java.lang.StringBuffer buffer, int conflictsCount) private voidappendResolved(java.lang.StringBuffer buffer, int resolvedTreeConflictsCount) voidChecks if the current operation is cancelled (somehow interrupted) and should throw an SVNCancelException or notify the handler if exists.private SVNConflictStatsvoidhandleEvent(SVNEvent event, double progress) Handles the current event.booleanbooleanbooleanvoidprintConflictStatus(java.lang.StringBuffer buffer) voidsetWcToReposCopy(boolean wcToReposCopy) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
myEnvironment
-
myIsInExternal
private boolean myIsInExternal -
myIsChangesReceived
private boolean myIsChangesReceived -
myIsDeltaSent
private boolean myIsDeltaSent -
myIsCheckout
private boolean myIsCheckout -
myIsExport
private boolean myIsExport -
myIsSuppressLastLine
private boolean myIsSuppressLastLine -
myHasExternalErrors
private boolean myHasExternalErrors -
myHasLockingError
private boolean myHasLockingError -
myIsWcToReposCopy
private boolean myIsWcToReposCopy
-
-
Constructor Details
-
SVNNotifyPrinter
-
SVNNotifyPrinter
public SVNNotifyPrinter(SVNCommandEnvironment env, boolean isCheckout, boolean isExport, boolean suppressLastLine)
-
-
Method Details
-
setWcToReposCopy
public void setWcToReposCopy(boolean wcToReposCopy) -
isWcToReposCopy
public boolean isWcToReposCopy() -
hasExternalErrors
public boolean hasExternalErrors() -
hasLockingErrors
public boolean hasLockingErrors() -
handleEvent
Description copied from interface:ISVNEventHandlerHandles the current event.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.
- Specified by:
handleEventin interfaceISVNEventHandler- Parameters:
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 toISVNEventHandler.UNKNOWN- Throws:
SVNException
-
checkCancelled
Description copied from interface:ISVNCancellerChecks if the current operation is cancelled (somehow interrupted) and should throw an SVNCancelException or notify the handler if exists. This method is often called during iterations when processing trees of versioned items. This way the entire operation may be interrupted without waiting till the iteration run out.- Specified by:
checkCancelledin interfaceISVNCanceller- Throws:
SVNCancelException
-
printConflictStatus
public void printConflictStatus(java.lang.StringBuffer buffer) -
appendRemaining
private void appendRemaining(java.lang.StringBuffer buffer, int conflictsCount) -
appendResolved
private void appendResolved(java.lang.StringBuffer buffer, int resolvedTreeConflictsCount) -
getConflictStats
-