Class Info
- java.lang.Object
-
- org.apache.subversion.javahl.types.Info
-
- All Implemented Interfaces:
java.io.Serializable
public class Info extends java.lang.Object implements java.io.Serializablethis class is returned byISVNClient.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
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringchangelistNameThe name of the changelist.private Checksumchecksumthe checksum of the itemprivate java.util.Set<ConflictDescriptor>conflictInfo on any tree conflict of which this node is a victim.private longcopyFromRevif the item was copied, the source revprivate java.lang.StringcopyFromUrlif the item was copied, the source urlprivate DepthdepthThe depth of the item.private booleanhasWcInfothe flag if the remaining fields are setprivate NodeKindkindthe item kindsprivate java.lang.StringlastChangedAuthorthe author of the last changeprivate longlastChangedDatethe date of the last change in nsprivate longlastChangedRevthe revision of the last changeprivate Locklockthe information about any lock (may be null)private java.lang.Stringpaththe path of the itemprivate java.lang.StringreposRootUrlthe root URL of the repositoryprivate longreposSizeThe size of the file in the repository (untranslated, e.g.private java.lang.StringreposUUIDthe UUID of the repositoryprivate longrevthe revision of the itemprivate Info.ScheduleKindschedulethe scheduled operation at next commitprivate static longserialVersionUIDprivate longtextTimethe last time the item was changed in nsprivate java.lang.Stringurlthe url of the itemprivate java.lang.Stringwcrootthe working copy rootprivate longworkingSizeThe size of the file after being translated into its local representation, or-1if unknown.
-
Constructor Summary
Constructors Constructor Description Info(java.lang.String path, java.lang.String wcroot, java.lang.String url, long rev, NodeKind kind, java.lang.String reposRootUrl, java.lang.String reposUUID, long lastChangedRev, long lastChangedDate, java.lang.String lastChangedAuthor, Lock lock, boolean hasWcInfo, Info.ScheduleKind schedule, java.lang.String copyFromUrl, long copyFromRev, long textTime, Checksum checksum, java.lang.String changelistName, long workingSize, long reposSize, Depth depth, java.util.Set<ConflictDescriptor> conflict)constructor to build the object by native code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetChangelistName()ChecksumgetChecksum()return the checksum of the itemjava.util.Set<ConflictDescriptor>getConflicts()longgetCopyFromRev()return if the item was copied, the source revjava.lang.StringgetCopyFromUrl()return if the item was copied, the source urlDepthgetDepth()NodeKindgetKind()return the item kinds (see NodeKind)java.lang.StringgetLastChangedAuthor()return the author of the last changejava.util.DategetLastChangedDate()return the date of the last changelonggetLastChangedRev()return the revision of the last changeLockgetLock()return the information about any lock (may be null)java.lang.StringgetPath()return the path of the itemjava.lang.StringgetReposRootUrl()return the root URL of the repositorylonggetReposSize()java.lang.StringgetReposUUID()return the UUID of the repositorylonggetRev()return the revision of the itemInfo.ScheduleKindgetSchedule()return the scheduled operation at next commit (see ScheduleKind)java.util.DategetTextTime()return the last time the item was changedjava.lang.StringgetUrl()return the url of the itemjava.lang.StringgetWcroot()return the workgin copy rootlonggetWorkingSize()booleanisHasWcInfo()return the flag if the working copy fields are setjava.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
path
private java.lang.String path
the path of the item
-
wcroot
private java.lang.String wcroot
the working copy root
-
url
private java.lang.String url
the url of the item
-
rev
private long rev
the revision of the item
-
kind
private NodeKind kind
the item kinds
-
reposRootUrl
private java.lang.String reposRootUrl
the root URL of the repository
-
reposUUID
private java.lang.String reposUUID
the UUID of the repository
-
lastChangedRev
private long lastChangedRev
the revision of the last change
-
lastChangedDate
private long lastChangedDate
the date of the last change in ns
-
lastChangedAuthor
private java.lang.String lastChangedAuthor
the author of the last change
-
lock
private Lock lock
the information about any lock (may be null)
-
hasWcInfo
private boolean hasWcInfo
the flag if the remaining fields are set
-
schedule
private Info.ScheduleKind schedule
the scheduled operation at next commit
-
copyFromUrl
private java.lang.String copyFromUrl
if the item was copied, the source url
-
copyFromRev
private long copyFromRev
if the item was copied, the source rev
-
textTime
private long textTime
the last time the item was changed in ns
-
checksum
private Checksum checksum
the checksum of the item
-
changelistName
private java.lang.String changelistName
The name of the changelist.
-
workingSize
private long workingSize
The size of the file after being translated into its local representation, or-1if unknown. Not applicable for directories.
-
reposSize
private long reposSize
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.
-
depth
private Depth depth
The depth of the item.
-
conflict
private java.util.Set<ConflictDescriptor> conflict
Info on any tree conflict of which this node is a victim.
-
-
Constructor Detail
-
Info
public Info(java.lang.String path, java.lang.String wcroot, java.lang.String url, long rev, NodeKind kind, java.lang.String reposRootUrl, java.lang.String reposUUID, long lastChangedRev, long lastChangedDate, java.lang.String lastChangedAuthor, Lock lock, boolean hasWcInfo, Info.ScheduleKind schedule, java.lang.String copyFromUrl, long copyFromRev, long textTime, Checksum checksum, java.lang.String changelistName, long workingSize, long reposSize, Depth depth, java.util.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 Detail
-
getPath
public java.lang.String getPath()
return the path of the item
-
getWcroot
public java.lang.String getWcroot()
return the workgin copy root
-
getUrl
public java.lang.String getUrl()
return the url of the item
-
getRev
public long getRev()
return the revision of the item
-
getKind
public NodeKind 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
public Lock 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 Info.ScheduleKind 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
-
getChecksum
public Checksum getChecksum()
return the checksum of the item
-
getChangelistName
public java.lang.String 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
public Depth getDepth()
- Returns:
- The depth of the directory or
nullif the item is a file.
-
getConflicts
public java.util.Set<ConflictDescriptor> getConflicts()
- Returns:
- the tree conflict of which this node is a victim, or null if none
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of this info.
-
-