Package org.tmatesoft.svn.core.wc2
Class SvnCopySource
java.lang.Object
org.tmatesoft.svn.core.wc2.SvnObject
org.tmatesoft.svn.core.wc2.SvnCopySource
Provides copy source information in copy operations.
- Version:
- 1.7
- Author:
- TMate Software Ltd.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SvnCopySource
create
(SvnTarget source, SVNRevision revision) Creates a newSvnCopySource
object and initializes its fields.boolean
Returns the revision of the source.Returns the copy source target, can be working copy file or URL with optionalpegRevision
.int
hashCode()
boolean
Tells whether the contents of this copy source should be copied rather than the copy source itself.boolean
isLocal()
Calculates whethersource
is local andrevision
is local.void
setCopyContents
(boolean copyContents) Sets whether to expand this copy source to its contents or not.toString()
ReturnsString
representation of the objectMethods inherited from class org.tmatesoft.svn.core.wc2.SvnObject
getUserData, setUserData
-
Method Details
-
create
Creates a newSvnCopySource
object and initializes its fields.- Parameters:
source
- source target with optionalpegRevision
, can be file or URLrevision
- revision oftarget
-
isLocal
public boolean isLocal()Calculates whethersource
is local andrevision
is local.- Returns:
true
if thesource
andrevision
are local, otherwisefalse
-
getSource
Returns the copy source target, can be working copy file or URL with optionalpegRevision
.- Returns:
- copy source target
-
getRevision
Returns the revision of the source.- Returns:
- source revision
-
isCopyContents
public boolean isCopyContents()Tells whether the contents of this copy source should be copied rather than the copy source itself. This is relevant only for directory copy sources. If a userspecifies
to copy contents of a file he will get anSVNException
. So, if this copy source represents a directory and if this method returnstrue
, children of this copy source directory will be copied to the target instead of the copy source.- Returns:
true
to expand copy source to children; otherwisefalse
-
setCopyContents
public void setCopyContents(boolean copyContents) Sets whether to expand this copy source to its contents or not.- Parameters:
copyContents
-true
to expand copy source to children; otherwisefalse
- See Also:
-
hashCode
public int hashCode() -
equals
-
toString
ReturnsString
representation of the object
-