Package org.tmatesoft.svn.core.wc
Class SVNCommitPacket
java.lang.Object
org.tmatesoft.svn.core.wc.SVNCommitPacket
- Direct Known Subclasses:
SvnCodec.SVNCommitPacketWrapper
The SVNCommitPacket is a storage for SVNCommitItem
objects which represent information on versioned items intended
for being committed to a repository.
Used by SVNCommitClient
to collect and hold information on paths that are to be committed.
Each SVNCommitPacket
is committed in a single transaction.
- Since:
- 1.2
- Version:
- 1.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SVNCommitPacket
This constant denotes an empty commit items storage (contains noSVNCommitItem
objects).private SVNCommitItem[]
private boolean
private boolean[]
private Map
-
Constructor Summary
ConstructorsConstructorDescriptionSVNCommitPacket
(SVNWCAccess wcAccess, SVNCommitItem[] items, Map lockTokens) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes the current object.protected SVNCommitItem[]
filterSkippedItemsAndLockTokens
(Collection<SVNCommitItem> items, Map<String, ?> lockTokens) Gets an array of SVNCommitItem objects stored in this object.private int
getItemIndex
(SVNCommitItem item) boolean
Determines if an item intended for a commit is set to be skipped - that is not to be committed.boolean
Determines if this object is disposed.void
setCommitItemSkipped
(SVNCommitItem item, boolean skipped) Sets or unsets a versioned item to be skipped - whether or not it should be committed.toString()
Gives a string representation of this object.
-
Field Details
-
EMPTY
This constant denotes an empty commit items storage (contains noSVNCommitItem
objects). -
myCommitItems
-
myLockTokens
-
myIsSkipped
private boolean[] myIsSkipped -
myIsDisposed
private boolean myIsDisposed
-
-
Constructor Details
-
SVNCommitPacket
-
-
Method Details
-
getCommitItems
Gets an array of SVNCommitItem objects stored in this object.- Returns:
- an array of SVNCommitItem objects containing info of versioned items to be committed
-
setCommitItemSkipped
Sets or unsets a versioned item to be skipped - whether or not it should be committed.- Parameters:
item
- an item that should be marked skippedskipped
- if true the item is set to be skipped (a commit operation should skip the item), otherwise - unskipped if it was previously marked skipped- See Also:
-
isCommitItemSkipped
Determines if an item intended for a commit is set to be skipped - that is not to be committed.- Parameters:
item
- an item to check- Returns:
- true if the item is set to be skipped, otherwise false
- See Also:
-
isDisposed
public boolean isDisposed()Determines if this object is disposed.- Returns:
- true if disposed otherwise false
-
dispose
Disposes the current object.- Throws:
SVNException
-
getItemIndex
-
getLockTokens
-
removeSkippedItems
-
toString
Gives a string representation of this object. -
filterSkippedItemsAndLockTokens
protected SVNCommitItem[] filterSkippedItemsAndLockTokens(Collection<SVNCommitItem> items, Map<String, ?> lockTokens)
-