Class DirEntry

java.lang.Object
org.apache.subversion.javahl.types.DirEntry
All Implemented Interfaces:
Serializable

public class DirEntry
extends Object
implements Serializable
See Also:
Serialized Form
  • Constructor Details

    • DirEntry

      public DirEntry​(String path, String absPath, NodeKind nodeKind, long size, boolean hasProps, long lastChangedRevision, long lastChanged, String lastAuthor)
      this constructor is only called from the JNI code
      Parameters:
      path - the pathname of the entry
      absPath - the absolute path of the entry
      nodeKind - the kind of entry (file or directory)
      size - the size of the file
      hasProps - if the entry has properties managed by subversion
      lastChangedRevision - the revision number of the last change
      lastChanged - the date of the last change
      lastAuthor - the author of the last change
  • Method Details

    • getPath

      public String getPath()
      Returns the path of the entry.
      Returns:
      the path of the entry.
    • getAbsPath

      public String getAbsPath()
      Returns the absolute path of the entry.
      Returns:
      the absolute path of the entry.
    • getLastChanged

      public Date getLastChanged()
      Returns the last time the file was changed.
      Returns:
      the last time the file was changed.
    • getLastChangedRevision

      public Revision.Number getLastChangedRevision()
      Returns the revision of the last change.
      Returns:
      revision of the last change as a Revision object.
    • getLastChangedRevisionNumber

      public long getLastChangedRevisionNumber()
      Returns the revision number of the last change.
      Returns:
      revision number of the last change.
    • getHasProps

      public boolean getHasProps()
      Returns if the entry has properties managed by Subversion.
      Returns:
      if the entry has properties managed by subversion.
    • getLastAuthor

      public String getLastAuthor()
      Returns the author of the last change.
      Returns:
      the author of the last change.
    • getNodeKind

      public NodeKind getNodeKind()
      Return the kind of entry (file or directory)
      Returns:
      the kind of the entry (file or directory) see NodeKind class
    • getSize

      public long getSize()
      Return the length of file test or 0 for directories
      Returns:
      length of file text, or 0 for directories
    • setPath

      public void setPath​(String path)
      Set the path. This should only be used by compatibility wrapper.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      The path at its last changed revision.