Package org.tigris.subversion.javahl
Class Info2
java.lang.Object
org.tigris.subversion.javahl.Info2
- All Implemented Interfaces:
java.io.Serializable
public class Info2
extends java.lang.Object
implements java.io.Serializable
this class is returned by SVNClientInterface.info2 and contains information
about items in the repository or working copy
- Since:
- 1.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.lang.StringThe name of the changelist.private java.lang.Stringthe checksum of the itemprivate java.lang.Stringif the item is in conflict, the filename of the last repository version fileprivate java.lang.Stringif the item is in conflict, the filename of the base version fileprivate java.lang.Stringif the item is in conflict, the filename of the working copy version fileprivate longif the item was copied, the source revprivate java.lang.Stringif the item was copied, the source urlprivate intThe depth of the item.private booleanthe flag if the remaining fields are setprivate intthe item kinds (see NodeKind)private java.lang.Stringthe author of the last changeprivate longthe date of the last change in nsprivate longthe revision of the last changeprivate Lockthe information about any lock (may be null)private java.lang.Stringthe path of the itemprivate java.lang.Stringthe property reject fileprivate longthe last time the properties of the items were changed in nsprivate java.lang.Stringthe root URL of the repositoryprivate longThe size of the file in the repository (untranslated, e.g.private java.lang.Stringthe UUID of the repositoryprivate longthe revision of the itemprivate intthe scheduled operation at next commit (see ScheduleKind)private static final longprivate longthe last time the item was changed in nsprivate ConflictDescriptorInfo on any tree conflict of which this node is a victim.private java.lang.Stringthe url of the itemprivate longThe size of the file after being translated into its local representation, or-1if unknown. -
Constructor Summary
ConstructorsConstructorDescriptionInfo2(java.lang.String path, java.lang.String url, long rev, int kind, java.lang.String reposRootUrl, java.lang.String reposUUID, long lastChangedRev, long lastChangedDate, java.lang.String lastChangedAuthor, Lock lock, boolean hasWcInfo, int schedule, java.lang.String copyFromUrl, long copyFromRev, long textTime, long propTime, java.lang.String checksum, java.lang.String conflictOld, java.lang.String conflictNew, java.lang.String conflictWrk, java.lang.String prejfile, java.lang.String changelistName, long workingSize, long reposSize, int depth, ConflictDescriptor treeConflict) constructor to build the object by native code.A backward-compat constructor. -
Method Summary
Modifier and TypeMethodDescriptionjava.lang.Stringjava.lang.Stringreturn the checksum of the itemprivate static java.lang.StringgetChecksumDigest(Checksum checksum) java.lang.Stringreturn if the item is in conflict, the filename of the last repository version fileprivate static java.lang.StringgetConflictNew(java.util.Set<ConflictDescriptor> conflicts) java.lang.Stringreturn if the item is in conflict, the filename of the base version fileprivate static java.lang.StringgetConflictOld(java.util.Set<ConflictDescriptor> conflicts) java.lang.Stringreturn if the item is in conflict, the filename of the working copy version fileprivate static java.lang.StringgetConflictWrk(java.util.Set<ConflictDescriptor> conflicts) longreturn if the item was copied, the source revjava.lang.Stringreturn if the item was copied, the source urlintgetDepth()intgetKind()return the item kinds (see NodeKind)java.lang.Stringreturn the author of the last changejava.util.Datereturn the date of the last changelongreturn the revision of the last changegetLock()return the information about any lock (may be null)java.lang.StringgetPath()return the path of the itemjava.lang.Stringreturn the property reject fileprivate static java.lang.StringgetPrejfile(java.util.Set<ConflictDescriptor> conflicts) java.util.Datereturn the last time the properties of the items were changedjava.lang.Stringreturn the root URL of the repositorylongjava.lang.Stringreturn the UUID of the repositorylonggetRev()return the revision of the itemintreturn the scheduled operation at next commit (see ScheduleKind)java.util.Datereturn the last time the item was changedprivate static ConflictDescriptorgetTreeConflict(java.util.Set<ConflictDescriptor> conflicts) java.lang.StringgetUrl()return the url of the itemlongbooleanreturn the flag if the working copy fields are setjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
path
private java.lang.String paththe path of the item -
url
private java.lang.String urlthe url of the item -
rev
private long revthe revision of the item -
kind
private int kindthe item kinds (see NodeKind) -
reposRootUrl
private java.lang.String reposRootUrlthe root URL of the repository -
reposUUID
private java.lang.String reposUUIDthe UUID of the repository -
lastChangedRev
private long lastChangedRevthe revision of the last change -
lastChangedDate
private long lastChangedDatethe date of the last change in ns -
lastChangedAuthor
private java.lang.String lastChangedAuthorthe author of the last change -
lock
the information about any lock (may be null) -
hasWcInfo
private boolean hasWcInfothe flag if the remaining fields are set -
schedule
private int schedulethe scheduled operation at next commit (see ScheduleKind) -
copyFromUrl
private java.lang.String copyFromUrlif the item was copied, the source url -
copyFromRev
private long copyFromRevif the item was copied, the source rev -
textTime
private long textTimethe last time the item was changed in ns -
propTime
private long propTimethe last time the properties of the items were changed in ns -
checksum
private java.lang.String checksumthe checksum of the item -
conflictOld
private java.lang.String conflictOldif the item is in conflict, the filename of the base version file -
conflictNew
private java.lang.String conflictNewif the item is in conflict, the filename of the last repository version file -
conflictWrk
private java.lang.String conflictWrkif the item is in conflict, the filename of the working copy version file -
prejfile
private java.lang.String prejfilethe property reject file -
changelistName
private java.lang.String changelistNameThe name of the changelist.- Since:
- 1.5
-
workingSize
private long workingSizeThe size of the file after being translated into its local representation, or-1if unknown. Not applicable for directories.- Since:
- 1.5
-
reposSize
private long reposSizeThe size of the file in the repository (untranslated, e.g. without adjustment of line endings and keyword expansion). Only applicable for file -- not directory -- URLs. For working copy paths, size will be-1.- Since:
- New in 1.5.
-
depth
private int depthThe depth of the item.- Since:
- 1.6
-
treeConflict
Info on any tree conflict of which this node is a victim.- Since:
- 1.6
-
-
Constructor Details
-
Info2
Info2(java.lang.String path, java.lang.String url, long rev, int kind, java.lang.String reposRootUrl, java.lang.String reposUUID, long lastChangedRev, long lastChangedDate, java.lang.String lastChangedAuthor, Lock lock, boolean hasWcInfo, int schedule, java.lang.String copyFromUrl, long copyFromRev, long textTime, long propTime, java.lang.String checksum, java.lang.String conflictOld, java.lang.String conflictNew, java.lang.String conflictWrk, java.lang.String prejfile, java.lang.String changelistName, long workingSize, long reposSize, int depth, ConflictDescriptor treeConflict) constructor to build the object by native code. See fields for parameters- Parameters:
path-url-rev-kind-reposRootUrl-reposUUID-lastChangedRev-lastChangedDate-lastChangedAuthor-lock-hasWcInfo-schedule-copyFromUrl-copyFromRev-textTime-propTime-checksum-conflictOld-conflictNew-conflictWrk-prejfile-depth-treeConflict-
-
Info2
A backward-compat constructor.
-
-
Method Details
-
getConflictOld
-
getConflictNew
-
getConflictWrk
-
getPrejfile
-
getTreeConflict
-
getChecksumDigest
-
getPath
public java.lang.String getPath()return the path of the item -
getUrl
public java.lang.String getUrl()return the url of the item -
getRev
public long getRev()return the revision of the item -
getKind
public int getKind()return the item kinds (see NodeKind) -
getReposRootUrl
public java.lang.String getReposRootUrl()return the root URL of the repository -
getReposUUID
public java.lang.String getReposUUID()return the UUID of the repository -
getLastChangedRev
public long getLastChangedRev()return the revision of the last change -
getLastChangedDate
public java.util.Date getLastChangedDate()return the date of the last change -
getLastChangedAuthor
public java.lang.String getLastChangedAuthor()return the author of the last change -
getLock
return the information about any lock (may be null) -
isHasWcInfo
public boolean isHasWcInfo()return the flag if the working copy fields are set -
getSchedule
public int getSchedule()return the scheduled operation at next commit (see ScheduleKind) -
getCopyFromUrl
public java.lang.String getCopyFromUrl()return if the item was copied, the source url -
getCopyFromRev
public long getCopyFromRev()return if the item was copied, the source rev -
getTextTime
public java.util.Date getTextTime()return the last time the item was changed -
getPropTime
public java.util.Date getPropTime()return the last time the properties of the items were changed -
getChecksum
public java.lang.String getChecksum()return the checksum of the item -
getConflictOld
public java.lang.String getConflictOld()return if the item is in conflict, the filename of the base version file -
getConflictNew
public java.lang.String getConflictNew()return if the item is in conflict, the filename of the last repository version file -
getConflictWrk
public java.lang.String getConflictWrk()return if the item is in conflict, the filename of the working copy version file -
getPrejfile
public java.lang.String getPrejfile()return the property reject file -
getChangelistName
public java.lang.String getChangelistName()- Returns:
- The name of the changelist.
- Since:
- 1.5
-
getWorkingSize
public long getWorkingSize()- Returns:
- The size of the file after being translated into its
local representation, or
-1if unknown. Not applicable for directories. - Since:
- 1.5
-
getReposSize
public long getReposSize()- Returns:
- The size of the file in the repository (untranslated,
e.g. without adjustment of line endings and keyword
expansion). Only applicable for file -- not directory -- URLs.
For working copy paths, size will be
-1. - Since:
- New in 1.5.
-
getDepth
public int getDepth()- Returns:
- The depth of the directory or
nullif the item is a file. - Since:
- New in 1.5.
-
getConflictDescriptor
- Returns:
- the tree conflict of which this node is a victim, or null if none
- Since:
- New in 1.6.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of this info.
-