Class Info
java.lang.Object
org.apache.subversion.javahl.types.Info
- All Implemented Interfaces:
Serializable
public class Info extends Object implements Serializable
this class is returned by
ISVNClient.info2(java.lang.String, org.apache.subversion.javahl.types.Revision, org.apache.subversion.javahl.types.Revision, org.apache.subversion.javahl.types.Depth, java.util.Collection<java.lang.String>, org.apache.subversion.javahl.callback.InfoCallback) and contains information
about items in the repository or working copy- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInfo.ScheduleKind -
Constructor Summary
Constructors Constructor Description Info(String path, String wcroot, String url, long rev, NodeKind kind, String reposRootUrl, String reposUUID, long lastChangedRev, long lastChangedDate, String lastChangedAuthor, Lock lock, boolean hasWcInfo, Info.ScheduleKind schedule, String copyFromUrl, long copyFromRev, long textTime, Checksum checksum, String changelistName, long workingSize, long reposSize, Depth depth, Set<ConflictDescriptor> conflict)constructor to build the object by native code. -
Method Summary
Modifier and Type Method Description StringgetChangelistName()ChecksumgetChecksum()return the checksum of the itemSet<ConflictDescriptor>getConflicts()longgetCopyFromRev()return if the item was copied, the source revStringgetCopyFromUrl()return if the item was copied, the source urlDepthgetDepth()NodeKindgetKind()return the item kinds (see NodeKind)StringgetLastChangedAuthor()return the author of the last changeDategetLastChangedDate()return the date of the last changelonggetLastChangedDateMicros()Returns the last date the item was changed measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.longgetLastChangedRev()return the revision of the last changeLockgetLock()return the information about any lock (may be null)StringgetPath()return the path of the itemStringgetReposRootUrl()return the root URL of the repositorylonggetReposSize()StringgetReposUUID()return the UUID of the repositorylonggetRev()return the revision of the itemInfo.ScheduleKindgetSchedule()return the scheduled operation at next commit (see ScheduleKind)DategetTextTime()return the last time the item was changedStringgetUrl()return the url of the itemStringgetWcroot()return the workgin copy rootlonggetWorkingSize()booleanisHasWcInfo()return the flag if the working copy fields are setStringtoString()
-
Constructor Details
-
Info
public Info(String path, String wcroot, String url, long rev, NodeKind kind, String reposRootUrl, String reposUUID, long lastChangedRev, long lastChangedDate, String lastChangedAuthor, Lock lock, boolean hasWcInfo, Info.ScheduleKind schedule, String copyFromUrl, long copyFromRev, long textTime, Checksum checksum, String changelistName, long workingSize, long reposSize, Depth depth, Set<ConflictDescriptor> conflict)constructor to build the object by native code. See fields for parameters- Parameters:
path-wcroot-url-rev-kind-reposRootUrl-reposUUID-lastChangedRev-lastChangedDate-lastChangedAuthor-lock-hasWcInfo-schedule-copyFromUrl-copyFromRev-textTime-checksum-depth-treeConflict-
-
-
Method Details
-
getPath
return the path of the item -
getWcroot
return the workgin copy root -
getUrl
return the url of the item -
getRev
public long getRev()return the revision of the item -
getKind
return the item kinds (see NodeKind) -
getReposRootUrl
return the root URL of the repository -
getReposUUID
return the UUID of the repository -
getLastChangedRev
public long getLastChangedRev()return the revision of the last change -
getLastChangedDate
return the date of the last change -
getLastChangedDateMicros
public long getLastChangedDateMicros()Returns the last date the item was changed measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.- Returns:
- the last time the item was changed.
-
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
return the scheduled operation at next commit (see ScheduleKind) -
getCopyFromUrl
return if the item was copied, the source url -
getCopyFromRev
public long getCopyFromRev()return if the item was copied, the source rev -
getTextTime
return the last time the item was changed -
getChecksum
return the checksum of the item -
getChangelistName
- Returns:
- The name of the changelist.
-
getWorkingSize
public long getWorkingSize()- Returns:
- The size of the file after being translated into its
local representation, or
-1if unknown. Not applicable for directories.
-
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.
-
getDepth
- Returns:
- The depth of the directory or
nullif the item is a file.
-
getConflicts
- Returns:
- the tree conflict of which this node is a victim, or null if none
-
toString
-