Modifier and Type | Field and Description |
---|---|
private boolean |
copyContents |
private SVNRevision |
revision |
private SvnTarget |
source |
Modifier | Constructor and Description |
---|---|
private |
SvnCopySource(SvnTarget source,
SVNRevision revision) |
Modifier and Type | Method and Description |
---|---|
static SvnCopySource |
create(SvnTarget source,
SVNRevision revision)
Creates a new
SvnCopySource object and initializes its fields. |
boolean |
equals(java.lang.Object obj) |
SVNRevision |
getRevision()
Returns the revision of the source.
|
SvnTarget |
getSource()
Returns the copy source target, can be working copy file or URL with optional
pegRevision . |
int |
hashCode() |
boolean |
isCopyContents()
Tells whether the contents of this copy source should be copied rather than the copy source itself.
|
boolean |
isLocal()
Calculates whether
source is local and revision is local. |
void |
setCopyContents(boolean copyContents)
Sets whether to expand this copy source to its contents or not.
|
private void |
setRevision(SVNRevision revision)
Sets the revision of the source.
|
private void |
setSource(SvnTarget source)
Sets the copy source target, can be working copy file or URL with optional
pegRevision . |
java.lang.String |
toString()
Returns
String representation of the object |
getUserData, setUserData
private SvnTarget source
private SVNRevision revision
private boolean copyContents
private SvnCopySource(SvnTarget source, SVNRevision revision)
public static SvnCopySource create(SvnTarget source, SVNRevision revision)
SvnCopySource
object and initializes its fields.source
- source target with optional pegRevision
, can be file or URLrevision
- revision of target
public boolean isLocal()
source
is local and revision
is local.true
if the source
and revision
are local, otherwise false
public SvnTarget getSource()
pegRevision
.public SVNRevision getRevision()
private void setSource(SvnTarget source)
pegRevision
.source
- copy source targetprivate void setRevision(SVNRevision revision)
revision
- source revisionpublic boolean isCopyContents()
specifies
to copy contents of a file he will get an SVNException
. So, if this copy source represents a
directory and if this method returns true
, children of this copy source
directory will be copied to the target instead of the copy source.true
to expand copy source to children; otherwise false
public void setCopyContents(boolean copyContents)
copyContents
- true
to expand copy source to children; otherwise false
isCopyContents()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
String
representation of the objecttoString
in class java.lang.Object
String