Class Info2

java.lang.Object
org.tigris.subversion.javahl.Info2
All Implemented Interfaces:
Serializable

public class Info2 extends Object implements 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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • path

      private String path
      the path of the item
    • url

      private String url
      the url of the item
    • rev

      private long rev
      the revision of the item
    • kind

      private int kind
      the item kinds (see NodeKind)
    • reposRootUrl

      private String reposRootUrl
      the root URL of the repository
    • reposUUID

      private 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 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 int schedule
      the scheduled operation at next commit (see ScheduleKind)
    • copyFromUrl

      private 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
    • propTime

      private long propTime
      the last time the properties of the items were changed in ns
    • checksum

      private String checksum
      the checksum of the item
    • conflictOld

      private String conflictOld
      if the item is in conflict, the filename of the base version file
    • conflictNew

      private String conflictNew
      if the item is in conflict, the filename of the last repository version file
    • conflictWrk

      private String conflictWrk
      if the item is in conflict, the filename of the working copy version file
    • prejfile

      private String prejfile
      the property reject file
    • changelistName

      private String changelistName
      The name of the changelist.
      Since:
      1.5
    • workingSize

      private long workingSize
      The size of the file after being translated into its local representation, or -1 if unknown. Not applicable for directories.
      Since:
      1.5
    • 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.
      Since:
      New in 1.5.
    • depth

      private int depth
      The depth of the item.
      Since:
      1.6
    • treeConflict

      private ConflictDescriptor treeConflict
      Info on any tree conflict of which this node is a victim.
      Since:
      1.6
  • Constructor Details

    • Info2

      Info2(String path, String url, long rev, int kind, String reposRootUrl, String reposUUID, long lastChangedRev, long lastChangedDate, String lastChangedAuthor, Lock lock, boolean hasWcInfo, int schedule, String copyFromUrl, long copyFromRev, long textTime, long propTime, String checksum, String conflictOld, String conflictNew, String conflictWrk, String prejfile, 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

      public Info2(Info aInfo)
      A backward-compat constructor.
  • Method Details

    • getConflictOld

      private static String getConflictOld(Set<ConflictDescriptor> conflicts)
    • getConflictNew

      private static String getConflictNew(Set<ConflictDescriptor> conflicts)
    • getConflictWrk

      private static String getConflictWrk(Set<ConflictDescriptor> conflicts)
    • getPrejfile

      private static String getPrejfile(Set<ConflictDescriptor> conflicts)
    • getTreeConflict

      private static ConflictDescriptor getTreeConflict(Set<ConflictDescriptor> conflicts)
    • getChecksumDigest

      private static String getChecksumDigest(Checksum checksum)
    • getPath

      public String getPath()
      return the path of the item
    • getUrl

      public 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 String getReposRootUrl()
      return the root URL of the repository
    • getReposUUID

      public String getReposUUID()
      return the UUID of the repository
    • getLastChangedRev

      public long getLastChangedRev()
      return the revision of the last change
    • getLastChangedDate

      public Date getLastChangedDate()
      return the date of the last change
    • getLastChangedAuthor

      public 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 int getSchedule()
      return the scheduled operation at next commit (see ScheduleKind)
    • getCopyFromUrl

      public 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 Date getTextTime()
      return the last time the item was changed
    • getPropTime

      public Date getPropTime()
      return the last time the properties of the items were changed
    • getChecksum

      public String getChecksum()
      return the checksum of the item
    • getConflictOld

      public String getConflictOld()
      return if the item is in conflict, the filename of the base version file
    • getConflictNew

      public String getConflictNew()
      return if the item is in conflict, the filename of the last repository version file
    • getConflictWrk

      public String getConflictWrk()
      return if the item is in conflict, the filename of the working copy version file
    • getPrejfile

      public String getPrejfile()
      return the property reject file
    • getChangelistName

      public 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 -1 if 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 null if the item is a file.
      Since:
      New in 1.5.
    • getConflictDescriptor

      public ConflictDescriptor getConflictDescriptor()
      Returns:
      the tree conflict of which this node is a victim, or null if none
      Since:
      New in 1.6.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      A string representation of this info.