Package org.tmatesoft.svn.core.wc
Class SVNConflictDescription
- java.lang.Object
-
- org.tmatesoft.svn.core.wc.SVNConflictDescription
-
- Direct Known Subclasses:
SVNPropertyConflictDescription,SVNTextConflictDescription,SVNTreeConflictDescription
public abstract class SVNConflictDescription extends java.lang.ObjectThe SVNConflictDescription represents an object that describes a conflict that has occurred in the working copy. It's passed toISVNConflictHandler.handleConflict(SVNConflictDescription).- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Constructor Description SVNConflictDescription(SVNMergeFileSet mergeFiles, SVNNodeKind nodeKind, SVNConflictAction conflictAction, SVNConflictReason conflictReason)Creates a newSVNConflictDescriptionobject.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SVNConflictActiongetConflictAction()Returns the action which attempted on an object and which lead to the conflict.SVNConflictReasongetConflictReason()Returns the reason why the conflict occurred.SVNMergeFileSetgetMergeFiles()Returns information about files involved in the merge.SVNNodeKindgetNodeKind()Returns the node kind of the item which the conflict occurred on.java.io.FilegetPath()Returns the working copy path which resulted in a conflict.abstract java.lang.StringgetPropertyName()Returns the name of the property on which the conflict occurred.abstract booleanisPropertyConflict()Tells whether it's a property merge conflict or not.abstract booleanisTextConflict()Says whether this object represents a text conflict.abstract booleanisTreeConflict()Says whether this object represents a tree conflict.voidsetConflictAction(SVNConflictAction action)
-
-
-
Constructor Detail
-
SVNConflictDescription
public SVNConflictDescription(SVNMergeFileSet mergeFiles, SVNNodeKind nodeKind, SVNConflictAction conflictAction, SVNConflictReason conflictReason)
Creates a newSVNConflictDescriptionobject.propertyNameis relevant only for property conflicts (i.e. in caseisPropertyConflictis true).- Parameters:
mergeFiles- files involved in the mergenodeKind- node kind of the item which the conflict occurred on conflict; otherwise falseconflictAction- action which lead to the conflictconflictReason- why the conflict ever occurred
-
-
Method Detail
-
isTextConflict
public abstract boolean isTextConflict()
Says whether this object represents a text conflict.- Returns:
- true if it's a text conflict; otherwise false
- Since:
- 1.3
-
isPropertyConflict
public abstract boolean isPropertyConflict()
Tells whether it's a property merge conflict or not.- Returns:
- true if the conflict occurred while modifying a property; otherwise false
- Since:
- 1.3
-
isTreeConflict
public abstract boolean isTreeConflict()
Says whether this object represents a tree conflict.- Returns:
- true if it's a tree conflict; otherwise false
- Since:
- 1.3
-
getPath
public java.io.File getPath()
Returns the working copy path which resulted in a conflict.- Returns:
- working copy path
- Since:
- 1.3
-
getMergeFiles
public SVNMergeFileSet getMergeFiles()
Returns information about files involved in the merge.- Returns:
- merge file set
-
getConflictAction
public SVNConflictAction getConflictAction()
Returns the action which attempted on an object and which lead to the conflict.- Returns:
- conflicted action
-
getConflictReason
public SVNConflictReason getConflictReason()
Returns the reason why the conflict occurred.- Returns:
- reason of the conflict
-
getNodeKind
public SVNNodeKind getNodeKind()
Returns the node kind of the item which the conflict occurred on.- Returns:
- node kind
-
getPropertyName
public abstract java.lang.String getPropertyName()
Returns the name of the property on which the conflict occurred. Note: relevant only in case of aproperty conflict.- Returns:
- conflicted property name
-
setConflictAction
public void setConflictAction(SVNConflictAction action)
-
-