Source Code Cross Referenced for DirEntry.java in  » Source-Control » tmatesoft-SVN » org » tigris » subversion » javahl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » tmatesoft SVN » org.tigris.subversion.javahl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * @copyright
003:         * ====================================================================
004:         * Copyright (c) 2003-2004 CollabNet.  All rights reserved.
005:         *
006:         * This software is licensed as described in the file COPYING, which
007:         * you should have received as part of this distribution.  The terms
008:         * are also available at http://subversion.tigris.org/license-1.html.
009:         * If newer versions of this license are posted there, you may use a
010:         * newer version instead, at your option.
011:         *
012:         * This software consists of voluntary contributions made by many
013:         * individuals.  For exact contribution history, see the revision
014:         * history and logs, available at http://subversion.tigris.org/.
015:         * ====================================================================
016:         * @endcopyright
017:         */package org.tigris.subversion.javahl;
018:
019:        import java.util.Date;
020:
021:        /**
022:         * A general subversion directory entry. Used for SVNClientInterface.list
023:         * @author Cédric Chabanois 
024:         *         <a href="mailto:cchabanois@ifrance.com">cchabanois@ifrance.com</a>
025:         *
026:         */
027:        public class DirEntry {
028:            /**
029:             * the date of the last change in nanoseconds since 01/01/1970
030:             */
031:            private long lastChanged;
032:            /**
033:             * the revision number of the last change
034:             */
035:            private long lastChangedRevision;
036:            /**
037:             * flag if the item has properties managed by subversion
038:             */
039:            private boolean hasProps;
040:            /**
041:             * the name of the author of the last change
042:             */
043:            private String lastAuthor;
044:            /**
045:             * the kind of the node (directory or file)
046:             */
047:            private int nodeKind;
048:            /**
049:             * the size of the file
050:             */
051:            private long size;
052:            /**
053:             * the pathname of the entry
054:             */
055:            private String path;
056:
057:            /**
058:             * this constructor is only called from the JNI code
059:             * @param path                  the pathname of the entry
060:             * @param nodeKind              the kind of entry (file or directory)
061:             * @param size                  the size of the file
062:             * @param hasProps              if the entry has properties managed by
063:             *                              subversion
064:             * @param lastChangedRevision   the revision number of the last change
065:             * @param lastChanged           the date of the last change
066:             * @param lastAuthor            the author of the last change
067:             */
068:            DirEntry(String path, int nodeKind, long size, boolean hasProps,
069:                    long lastChangedRevision, long lastChanged,
070:                    String lastAuthor) {
071:                this .path = path;
072:                this .nodeKind = nodeKind;
073:                this .size = size;
074:                this .hasProps = hasProps;
075:                this .lastChangedRevision = lastChangedRevision;
076:                this .lastChanged = lastChanged;
077:                this .lastAuthor = lastAuthor;
078:            }
079:
080:            /**
081:             * Returns the path of the entry.
082:             * @return the path of the entry.
083:             */
084:            public String getPath() {
085:                return path;
086:            }
087:
088:            /**
089:             * Returns the last time the file was changed.
090:             * @return the last time the file was changed.
091:             */
092:            public Date getLastChanged() {
093:                return new Date(lastChanged / 1000);
094:            }
095:
096:            /**
097:             * Returns the revision of the last change.
098:             * @return revision of the last change as a Revision object.
099:             */
100:            public Revision.Number getLastChangedRevision() {
101:                return Revision.createNumber(lastChangedRevision);
102:            }
103:
104:            /**
105:             * Returns the revision number of the last change.
106:             * @return revision number of the last change.
107:             */
108:            public long getLastChangedRevisionNumber() {
109:                return lastChangedRevision;
110:            }
111:
112:            /**
113:             * Returns if the entry has properties managed by Subversion.
114:             * @return if the entry has properties managed by subversion.
115:             */
116:            public boolean getHasProps() {
117:                return hasProps;
118:            }
119:
120:            /**
121:             * Returns the author of the last change.
122:             * @return the author of the last change.
123:             */
124:            public String getLastAuthor() {
125:                return lastAuthor;
126:            }
127:
128:            /**
129:             * Return the kind of entry (file or directory)
130:             * @return the kind of the entry (file or directory) see NodeKind class
131:             */
132:            public int getNodeKind() {
133:                return nodeKind;
134:            }
135:
136:            /**
137:             * Return the length of file test or 0 for directories
138:             * @return length of file text, or 0 for directories
139:             */
140:            public long getSize() {
141:                return size;
142:            }
143:
144:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.