|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.svn.core.wc2.SvnTarget
public class SvnTarget
Represents target of the operation on whose operation will be executed. Can specify working copy path or repository URL.
| Method Summary | |
|---|---|
static SvnTarget |
fromFile(java.io.File file)
Creates a target from file |
static SvnTarget |
fromFile(java.io.File file,
SVNRevision pegRevision)
Creates a target from file and its peg revision |
static SvnTarget |
fromURL(SVNURL url)
Creates a target from URL |
static SvnTarget |
fromURL(SVNURL url,
SVNRevision pegRevision)
Creates a target from URL and its peg revision |
java.io.File |
getFile()
Returns target's file, if target is not file returns null. |
java.lang.String |
getPathOrUrlDecodedString()
Determines whether target is remote or local, and returns corresponding String representation of the target's path |
java.lang.String |
getPathOrUrlString()
Determines whether target is remote or local, and returns corresponding String representation of the target's path |
SVNRevision |
getPegRevision()
Returns target's peg revision, if it was not defined returns null. |
SVNRevision |
getResolvedPegRevision()
Calls getResolvedPegRevision with SVNRevision.HEAD,
SVNRevision.WORKING as default values |
SVNRevision |
getResolvedPegRevision(SVNRevision defaultRemote,
SVNRevision defaultLocal)
Returns target's peg revision if defined, if not defined determines whether target is remote or local, and returns corresponding default revision |
SVNURL |
getURL()
Returns target's URL, if target is not URL returns null. |
boolean |
isFile()
Determines whether target represents file |
boolean |
isLocal()
Determines whether target is located in the local working copy and its peg revision is working copy specific. |
boolean |
isURL()
Determines whether target represents URL |
java.lang.String |
toString()
Determines whether target is remote or local, and returns corresponding String
representation of the target's path and peg revision. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static SvnTarget fromFile(java.io.File file)
file - target file
SvnTarget object representing the file
public static SvnTarget fromFile(java.io.File file,
SVNRevision pegRevision)
file - target filepegRevision - revision in which the file item is first looked up
SvnTarget object representing the file with revisitionpublic static SvnTarget fromURL(SVNURL url)
url - target URL
SvnTarget object representing URL
public static SvnTarget fromURL(SVNURL url,
SVNRevision pegRevision)
url - target URLpegRevision - revision in which the file item is first looked up
SvnTarget object representing URL with revisitionpublic boolean isLocal()
true if the target and its peg revision refers to local working copy, otherwise falsepublic boolean isFile()
true if the target is file, otherwise falsepublic boolean isURL()
true if the target is URL, otherwise falsepublic SVNURL getURL()
public java.io.File getFile()
public SVNRevision getPegRevision()
public SVNRevision getResolvedPegRevision()
getResolvedPegRevision with SVNRevision.HEAD,
SVNRevision.WORKING as default values
getResolvedPegRevision(SVNRevision, SVNRevision)
public SVNRevision getResolvedPegRevision(SVNRevision defaultRemote,
SVNRevision defaultLocal)
defaultRemote - default revision if target is remote targetdefaultLocal - default revision if target is local target
public java.lang.String getPathOrUrlString()
String representation of the target's path
String representation of the target's path
{@link - IllegalStateException} if neither file not URL was specified as a targetpublic java.lang.String getPathOrUrlDecodedString()
String representation of the target's path
String representation of the target
{@link - IllegalStateException} if neither file not URL was specified as a target's pathpublic java.lang.String toString()
String
representation of the target's path and peg revision.
toString in class java.lang.ObjectString of the target's path and peg revision
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||