|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc.SVNCommitItem
public class SVNCommitItem
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
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.
SVNCommitPacket
Constructor Summary | |
---|---|
SVNCommitItem(java.io.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. |
java.io.File |
getFile()
Gets the location of the Working Copy item. |
java.util.Map |
getIncomingProperties()
|
SVNNodeKind |
getKind()
Gets the node kind of the versioned item. |
java.util.Map |
getOutgoingProperties()
Returns properties to commit. |
java.lang.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. |
org.tmatesoft.svn.core.internal.wc.admin.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 |
setContentsModified(boolean modified)
|
void |
setIncomingProperty(java.lang.String propertyName,
SVNPropertyValue propertyValue)
|
void |
setPath(java.lang.String path)
Sets the item's relevant path. |
void |
setPropertiesModified(boolean modified)
|
void |
setProperty(java.lang.String propertyName,
SVNPropertyValue propertyValue)
|
void |
setWCAccess(org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess wcAccess)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SVNCommitItem(java.io.File file, SVNURL URL, SVNURL copyFromURL, SVNNodeKind kind, SVNRevision revision, SVNRevision copyFromRevision, boolean isAdded, boolean isDeleted, boolean isPropertiesModified, boolean isContentsModified, boolean isCopied, boolean locked)
file
- a WC item's locationURL
- the item's repository locationcopyFromURL
- the repository location of the item's ancestor (if the item
was or to be copied)kind
- the item's node kindrevision
- the item's revisioncopyFromRevision
- the revision of the item's ancestor it's copied fromisAdded
- true if the item is to be
added to version control, otherwise falseisDeleted
- true if the item is to be
deleted from version control, otherwise falseisPropertiesModified
- true if the item's properties
have local changes, otherwise falseisContentsModified
- true if the item's contents
(file contents or directory entries) have local changes,
otherwise falseisCopied
- true if the item is to be
added to version control with history, otherwise falselocked
- true if the item is to be
locked, otherwise falseMethod Detail |
---|
public SVNRevision getRevision()
public SVNRevision getCopyFromRevision()
public java.io.File getFile()
public SVNURL getURL()
public SVNURL getCopyFromURL()
SVNURL
representationpublic SVNNodeKind getKind()
public boolean isAdded()
public boolean isDeleted()
public boolean isPropertiesModified()
public boolean isContentsModified()
public boolean isCopied()
public boolean isLocked()
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- the item's path relevant to the Working Copy rootpublic org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess getWCAccess()
public java.util.Map getOutgoingProperties()
public void setWCAccess(org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess wcAccess)
public void setProperty(java.lang.String propertyName, SVNPropertyValue propertyValue)
public void setContentsModified(boolean modified)
public void setPropertiesModified(boolean modified)
public void setIncomingProperty(java.lang.String propertyName, SVNPropertyValue propertyValue)
public java.util.Map getIncomingProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |