org.tmatesoft.svn.core.wc
public class SVNCommitItem extends Object
Used to wrap information about a versioned item into a single object. A commit item can represent either a Working Copy item (speaking of committing local changes in WC files and directories) or one that is located in a repository (for example, when deleting a file/directory right from a repository).
When you call SVNCommitClient's (File[], boolean, boolean, boolean) doCollectCommitItems()
this methods processes the specified paths and collects information
on items to be committed in SVNCommitItem objects which are
packed into a single SVNCommitPacket object. This object is
returned by the method to the caller.
Version: 1.1.1
Constructor Summary | |
---|---|
SVNCommitItem(File file, SVNURL URL, SVNURL copyFromURL, SVNNodeKind kind, SVNRevision revision, SVNRevision copyFromRevision, boolean isAdded, boolean isDeleted, boolean isPropertiesModified, boolean isContentsModified, boolean isCopied, boolean locked)
Constructs and initializes an SVNCommitItem object.
|
Method Summary | |
---|---|
SVNRevision | getCopyFromRevision()
Gets the revision of the versioned item's ancestor
from which the item was copied.
|
SVNURL | getCopyFromURL()
Gets the repository location of the versioned item's ancestor
from which the item was copied.
|
File | getFile()
Gets the location of the Working Copy item.
|
SVNNodeKind | getKind()
Gets the node kind of the versioned item.
|
String | getPath()
Gets the item's relevant path. |
SVNRevision | getRevision()
Gets the revision of the versioned item . |
SVNURL | getURL()
Gets the versioned item's repository location.
|
SVNWCAccess | getWCAccess()
This method is not intended for users (from an API point of view).
|
boolean | isAdded()
Determines if the item is to be added to version control.
|
boolean | isContentsModified()
Determines if the Working Copy item has local edits
to its contents. |
boolean | isCopied()
Determines if the item is to be added to version control with
history.
|
boolean | isDeleted()
Determines if the item is to be deleted from version control.
|
boolean | isLocked()
Determines whether the item needs to be locked.
|
boolean | isPropertiesModified()
Determines if the Working Copy item has local edits
to properties.
|
void | setPath(String path)
Sets the item's relevant path.
|
Parameters: file a WC item's location URL the item's repository location copyFromURL the repository location of the item's ancestor (if the item was or to be copied) kind the item's node kind revision the item's revision copyFromRevision the revision of the item's ancestor it's copied from isAdded true if the item is to be added to version control, otherwise false isDeleted true if the item is to be deleted from version control, otherwise false isPropertiesModified true if the item's properties have local changes, otherwise false isContentsModified true if the item's contents (file contents or directory entries) have local changes, otherwise false isCopied true if the item is to be added to version control with history, otherwise false locked true if the item is to be locked, otherwise false
Returns: the revision the item was copied from
Returns: the URL of the copy source in an SVNURL representation
Returns: the item's local path
Returns: the item's node kind
Returns: the item's relevant path
Returns: the revision of the item to be committed
Returns: the item's URL pointing to its repository location
Returns: wc access object
Returns: true if added, otherwise false
Returns: true if the contents have local changes, otherwise false
Returns: true if added with history (copied in other words), otherwise false
Returns: true if deleted, otherwise false
Returns: true if locked, otherwise false
Returns: true if the properties have local changes, otherwise false
Parameters: path the item's path relevant to the Working Copy root