Class Info
java.lang.Object
org.apache.subversion.javahl.types.Info
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The name of the changelist.private Checksum
the checksum of the itemprivate Set<ConflictDescriptor>
Info on any tree conflict of which this node is a victim.private long
if the item was copied, the source revprivate String
if the item was copied, the source urlprivate Depth
The depth of the item.private boolean
the flag if the remaining fields are setprivate NodeKind
the item kindsprivate String
the author of the last changeprivate long
the date of the last change in nsprivate long
the revision of the last changeprivate Lock
the information about any lock (may be null)private String
the path of the itemprivate String
the root URL of the repositoryprivate long
The size of the file in the repository (untranslated, e.g.private String
the UUID of the repositoryprivate long
the revision of the itemprivate Info.ScheduleKind
the scheduled operation at next commitprivate static final long
private long
the last time the item was changed in nsprivate String
the url of the itemprivate String
the working copy rootprivate long
The size of the file after being translated into its local representation, or-1
if unknown. -
Constructor Summary
ConstructorsConstructorDescriptionInfo
(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 TypeMethodDescriptionreturn the checksum of the itemlong
return if the item was copied, the source revreturn if the item was copied, the source urlgetDepth()
getKind()
return the item kinds (see NodeKind)return the author of the last changereturn the date of the last changelong
return the revision of the last changegetLock()
return the information about any lock (may be null)getPath()
return the path of the itemreturn the root URL of the repositorylong
return the UUID of the repositorylong
getRev()
return the revision of the itemreturn the scheduled operation at next commit (see ScheduleKind)return the last time the item was changedgetUrl()
return the url of the itemreturn the workgin copy rootlong
boolean
return the flag if the working copy fields are settoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
path
the path of the item -
wcroot
the working copy root -
url
the url of the item -
rev
private long revthe revision of the item -
kind
the item kinds -
reposRootUrl
the root URL of the repository -
reposUUID
the 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
the 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
the scheduled operation at next commit -
copyFromUrl
if 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 -
checksum
the checksum of the item -
changelistName
The name of the changelist. -
workingSize
private long workingSizeThe size of the file after being translated into its local representation, or-1
if unknown. Not applicable for directories. -
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
. -
depth
The depth of the item. -
conflict
Info on any tree conflict of which this node is a victim.
-
-
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 -
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
-1
if 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
null
if the item is a file.
-
getConflicts
- Returns:
- the tree conflict of which this node is a victim, or null if none
-
toString
-