Class DirEntry

  • All Implemented Interfaces:
    java.io.Serializable

    public class DirEntry
    extends java.lang.Object
    implements java.io.Serializable
    A general subversion directory entry. Used for SVNClientInterface.list
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  DirEntry.Fields
      The various field values which can be passed to list()
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String absPath
      the absolute path of the entry
      private boolean hasProps
      flag if the item has properties managed by subversion
      private java.lang.String lastAuthor
      the name of the author of the last change
      private long lastChanged
      the date of the last change in nanoseconds since 01/01/1970
      private long lastChangedRevision
      the revision number of the last change
      private int nodeKind
      the kind of the node (directory or file)
      private java.lang.String path
      the pathname of the entry
      private static long serialVersionUID  
      private long size
      the size of the file
    • Constructor Summary

      Constructors 
      Constructor Description
      DirEntry​(java.lang.String path, java.lang.String absPath, int nodeKind, long size, boolean hasProps, long lastChangedRevision, long lastChanged, java.lang.String lastAuthor)
      this constructor is only called from the JNI code
      DirEntry​(DirEntry aEntry)
      A backward-compat constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAbsPath()
      Returns the absolute path of the entry.
      boolean getHasProps()
      Returns if the entry has properties managed by Subversion.
      java.lang.String getLastAuthor()
      Returns the author of the last change.
      java.util.Date getLastChanged()
      Returns the last time the file was changed.
      Revision.Number getLastChangedRevision()
      Returns the revision of the last change.
      long getLastChangedRevisionNumber()
      Returns the revision number of the last change.
      int getNodeKind()
      Return the kind of entry (file or directory)
      java.lang.String getPath()
      Returns the path of the entry.
      long getSize()
      Return the length of file test or 0 for directories
      void setPath​(java.lang.String path)
      Set the path.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • lastChanged

        private long lastChanged
        the date of the last change in nanoseconds since 01/01/1970
      • lastChangedRevision

        private long lastChangedRevision
        the revision number of the last change
      • hasProps

        private boolean hasProps
        flag if the item has properties managed by subversion
      • lastAuthor

        private java.lang.String lastAuthor
        the name of the author of the last change
      • nodeKind

        private int nodeKind
        the kind of the node (directory or file)
      • size

        private long size
        the size of the file
      • path

        private java.lang.String path
        the pathname of the entry
      • absPath

        private java.lang.String absPath
        the absolute path of the entry
    • Constructor Detail

      • DirEntry

        DirEntry​(java.lang.String path,
                 java.lang.String absPath,
                 int nodeKind,
                 long size,
                 boolean hasProps,
                 long lastChangedRevision,
                 long lastChanged,
                 java.lang.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
      • DirEntry

        DirEntry​(DirEntry aEntry)
        A backward-compat constructor
    • Method Detail

      • getPath

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

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

        public java.util.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 java.lang.String getLastAuthor()
        Returns the author of the last change.
        Returns:
        the author of the last change.
      • getNodeKind

        public int 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​(java.lang.String path)
        Set the path. This should only be used by compatibility wrapper.
      • toString

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