| java.lang.Object org.tmatesoft.svn.core.wc.SVNCommitItem
SVNCommitItem | public class SVNCommitItem (Code) | | The SVNCommitItem represents a versioned item that is
to be committed to a repository.
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
SVNCommitClient.doCollectCommitItems(File[]booleanbooleanboolean) 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 author: TMate Software Ltd. See Also: SVNCommitPacket |
Constructor Summary | |
public | 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 | |
public SVNRevision | getCopyFromRevision() Gets the revision of the versioned item's ancestor
from which the item was copied. | public SVNURL | getCopyFromURL() Gets the repository location of the versioned item's ancestor
from which the item was copied. | public File | getFile() Gets the location of the Working Copy item. | public SVNNodeKind | getKind() Gets the node kind of the versioned item. | public String | getPath() Gets the item's relevant path. | public SVNRevision | getRevision() Gets the revision of the versioned item . | public SVNURL | getURL() Gets the versioned item's repository location. | public SVNWCAccess | getWCAccess() This method is not intended for users (from an API point of view). | public boolean | isAdded() Determines if the item is to be added to version control. | public boolean | isContentsModified() Determines if the Working Copy item has local edits
to its contents. | public boolean | isCopied() Determines if the item is to be added to version control with
history. | public boolean | isDeleted() Determines if the item is to be deleted from version control. | public boolean | isLocked() Determines whether the item needs to be locked. | public boolean | isPropertiesModified() Determines if the Working Copy item has local edits
to properties. | public void | setPath(String path) Sets the item's relevant path. | void | setWCAccess(SVNWCAccess wcAccess) |
SVNCommitItem | public 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)(Code) | | Constructs and initializes an SVNCommitItem object.
Parameters: file - a WC item's location Parameters: URL - the item's repository location Parameters: copyFromURL - the repository location of the item's ancestor(if the item was or to be copied) Parameters: kind - the item's node kind Parameters: revision - the item's revision Parameters: copyFromRevision - the revision of the item's ancestor it's copied from Parameters: isAdded - true if the item is to be added to version control, otherwisefalse Parameters: isDeleted - true if the item is to be deleted from version control, otherwisefalse Parameters: isPropertiesModified - true if the item's properties have local changes, otherwisefalse Parameters: isContentsModified - true if the item's contents (file contents or directory entries) have local changes, otherwise false Parameters: isCopied - true if the item is to be added to version control with history, otherwise false Parameters: locked - true if the item is to be locked, otherwisefalse |
getCopyFromRevision | public SVNRevision getCopyFromRevision()(Code) | | Gets the revision of the versioned item's ancestor
from which the item was copied.
the revision the item was copied from |
getCopyFromURL | public SVNURL getCopyFromURL()(Code) | | Gets the repository location of the versioned item's ancestor
from which the item was copied.
the URL of the copy source in an org.tmatesoft.svn.core.SVNURLrepresentation |
getFile | public File getFile()(Code) | | Gets the location of the Working Copy item.
the item's local path |
getKind | public SVNNodeKind getKind()(Code) | | Gets the node kind of the versioned item.
the item's node kind |
getPath | public String getPath()(Code) | | Gets the item's relevant path. The path is relevant to
the Working Copy root.
the item's relevant path |
getRevision | public SVNRevision getRevision()(Code) | | Gets the revision of the versioned item . For a WC item it is
the current working revision.
the revision of the item to be committed |
getURL | public SVNURL getURL()(Code) | | Gets the versioned item's repository location.
the item's URL pointing to its repository location |
getWCAccess | public SVNWCAccess getWCAccess()(Code) | | This method is not intended for users (from an API point of view).
wc access object |
isAdded | public boolean isAdded()(Code) | | Determines if the item is to be added to version control.
true if added, otherwise false |
isContentsModified | public boolean isContentsModified()(Code) | | Determines if the Working Copy item has local edits
to its contents. If the item is a file - that is the file contents,
a directory - the directory contents (meaning entries).
true if the contents have local changes, otherwise false |
isCopied | public boolean isCopied()(Code) | | Determines if the item is to be added to version control with
history.
true if added withhistory (copied in other words), otherwise false |
isDeleted | public boolean isDeleted()(Code) | | Determines if the item is to be deleted from version control.
true if deleted, otherwise false |
isLocked | public boolean isLocked()(Code) | | Determines whether the item needs to be locked.
true if locked, otherwise false |
isPropertiesModified | public boolean isPropertiesModified()(Code) | | Determines if the Working Copy item has local edits
to properties.
true if the properties have local changes, otherwise false |
setPath | public void setPath(String path)(Code) | | Sets the item's relevant path.
Parameters: path - the item's path relevant to the Working Copy root |
|
|