Java Doc for Entry.java in  » IDE-Netbeans » cvsclient » org » netbeans » lib » cvsclient » admin » 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 » IDE Netbeans » cvsclient » org.netbeans.lib.cvsclient.admin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.lib.cvsclient.admin.Entry

Entry
final public class Entry (Code)
The class abstracts the CVS concept of an entry line. The entry line is textually of the form:

/ name / version / conflict / options / tag_or_date

These are explained in section 5.1 of the CVS protocol 1.10 document.
author:
   Robert Greig



Field Summary
final public static  StringDUMMY_TIMESTAMP
     The dummy timestamp set the conflict information for added or removed files.
final public static  StringDUMMY_TIMESTAMP_NEW_ENTRY
    
final public static  charHAD_CONFLICTS
     Indicates that the file had conflicts.
final public static  StringHAD_CONFLICTS_AND_TIMESTAMP_MATCHES_FILE
     Indicates that the file had conflicts and timestamp matches.
final public static  StringMERGE_TIMESTAMP
    
final public static  charTIMESTAMP_MATCHES_FILE
     Indicates that the timestamp matches the file.

Constructor Summary
public  Entry(String entryLine)
     Construct a new Entry from a given entry line.
public  Entry()
     Construct a new blank Entry.

Method Summary
public  StringgetConflict()
     Get the conflict information.
public  DategetDate()
     Get sticky date information. May return null if no date information is available.
public  StringgetDateFormatted()
     Gets the sticky date information as a string in the appropriate format.
public  DategetLastModified()
     Get the last modification time.
public static  SimpleDateFormatgetLastModifiedDateFormatter()
     Returns the instance of the Last-Modified-Date-Formatter.
public  StringgetName()
     Get the name of the associated file.
public  StringgetOptions()
     Get the options information.
public  StringgetRevision()
     Get the revision.
public  StringgetStickyInformation()
     Get the sticky information.
public  StringgetTag()
     Get the sticky tag information. May return null if no tag information was present.
public static  TimeZonegetTimeZone()
    
public  booleanhadConflicts()
     Determine whether there were any conflicts.
public  booleanhasDate()
     Determines whether the entry has a date (as opposed to a tag).
public  booleanhasTag()
     Determines whether the entry has a tag (as opposed to a date).
protected  voidinit(String entryLine)
     Initialise the Entry by parsing an entry line.
public  booleanisBinary()
     Determines whether the file is a binary file.
public  booleanisDirectory()
     Determine whether the entry refers to a directory.
public  booleanisNewUserFile()
     Determine whether there is a new user file of that name.
public  booleanisNoUserFile()
     Determine whether there is no user file of that name.
public  booleanisUserFileToBeRemoved()
     Determine whether the user file of that name is to be removed.
public  booleanisValid()
     Determines whether the entry is valid.
public  voidsetConflict(String conflict)
     Set the conflict information.
public  voidsetDate(Date date)
     Set the sticky date information.
public  voidsetDirectory(boolean directory)
     Set whether the entry refers to a directory.
public  voidsetName(String name)
     Set the name.
public  voidsetOptions(String options)
     Set the options information.
public  voidsetRevision(String revision)
     Set the revision.
public  voidsetTag(String tag)
     Set the sticky tag information.
public  booleantimestampMatchesFile()
     Determine whether the timestamp matches the file.
public  StringtoString()
     Create a string representation of the entry line.

Field Detail
DUMMY_TIMESTAMP
final public static String DUMMY_TIMESTAMP(Code)
The dummy timestamp set the conflict information for added or removed files.



DUMMY_TIMESTAMP_NEW_ENTRY
final public static String DUMMY_TIMESTAMP_NEW_ENTRY(Code)



HAD_CONFLICTS
final public static char HAD_CONFLICTS(Code)
Indicates that the file had conflicts.



HAD_CONFLICTS_AND_TIMESTAMP_MATCHES_FILE
final public static String HAD_CONFLICTS_AND_TIMESTAMP_MATCHES_FILE(Code)
Indicates that the file had conflicts and timestamp matches. It likely means unresolved conflict.



MERGE_TIMESTAMP
final public static String MERGE_TIMESTAMP(Code)



TIMESTAMP_MATCHES_FILE
final public static char TIMESTAMP_MATCHES_FILE(Code)
Indicates that the timestamp matches the file.




Constructor Detail
Entry
public Entry(String entryLine)(Code)
Construct a new Entry from a given entry line.



Entry
public Entry()(Code)
Construct a new blank Entry.




Method Detail
getConflict
public String getConflict()(Code)
Get the conflict information. the conflict String



getDate
public Date getDate()(Code)
Get sticky date information. May return null if no date information is available. If so, you should check for tag informaton. Note that tag and date information cannot both be present. the date, or null if none is present



getDateFormatted
public String getDateFormatted()(Code)
Gets the sticky date information as a string in the appropriate format. Returns null if there ain't a sticky date assigned.



getLastModified
public Date getLastModified()(Code)
Get the last modification time. date.getTime() compatible with File.lastModified()



getLastModifiedDateFormatter
public static SimpleDateFormat getLastModifiedDateFormatter()(Code)
Returns the instance of the Last-Modified-Date-Formatter.



getName
public String getName()(Code)
Get the name of the associated file. the file name



getOptions
public String getOptions()(Code)
Get the options information. the options details



getRevision
public String getRevision()(Code)
Get the revision. the revision



getStickyInformation
public String getStickyInformation()(Code)
Get the sticky information. It's either a tag, a date or null.



getTag
public String getTag()(Code)
Get the sticky tag information. May return null if no tag information was present. If so, you should check for date information. Note that tag and date information cannot both be present. the tag, or null if none is present



getTimeZone
public static TimeZone getTimeZone()(Code)
All entries times are by defaulf in Zulu/GMT0



hadConflicts
public boolean hadConflicts()(Code)
Determine whether there were any conflicts. true if there were conflicts, false otherwise



hasDate
public boolean hasDate()(Code)
Determines whether the entry has a date (as opposed to a tag). true if the entry has a date, false otherwise



hasTag
public boolean hasTag()(Code)
Determines whether the entry has a tag (as opposed to a date). true if the entry has a tag, false otherwise



init
protected void init(String entryLine)(Code)
Initialise the Entry by parsing an entry line.
Parameters:
  entryLine - the entry line in standard CVS format



isBinary
public boolean isBinary()(Code)
Determines whether the file is a binary file.



isDirectory
public boolean isDirectory()(Code)
Determine whether the entry refers to a directory.



isNewUserFile
public boolean isNewUserFile()(Code)
Determine whether there is a new user file of that name. true if there is a new user file with that name



isNoUserFile
public boolean isNoUserFile()(Code)
Determine whether there is no user file of that name. true if there is no user file of that name



isUserFileToBeRemoved
public boolean isUserFileToBeRemoved()(Code)
Determine whether the user file of that name is to be removed. true if the user file with this name is to be removed



isValid
public boolean isValid()(Code)
Determines whether the entry is valid. A valid entry has at least a name.



setConflict
public void setConflict(String conflict)(Code)
Set the conflict information.
Parameters:
  theConflict - the conflict information



setDate
public void setDate(Date date)(Code)
Set the sticky date information. Note that setting this will remove any tag information that is currently set.
Parameters:
  theDate - the date to use.



setDirectory
public void setDirectory(boolean directory)(Code)
Set whether the entry refers to a directory.



setName
public void setName(String name)(Code)
Set the name.
Parameters:
  theName - the filename to set



setOptions
public void setOptions(String options)(Code)
Set the options information.
Parameters:
  theOptions - the options



setRevision
public void setRevision(String revision)(Code)
Set the revision.
Parameters:
  theVersion - the revision to set



setTag
public void setTag(String tag)(Code)
Set the sticky tag information. Setting this will remove any date information that is set.
Parameters:
  theTag - the tag information



timestampMatchesFile
public boolean timestampMatchesFile()(Code)
Determine whether the timestamp matches the file. true if the timpestamp does match the file, false otherwise



toString
public String toString()(Code)
Create a string representation of the entry line. Create the standard CVS 1.10 entry line format.

Th eline format is suitable for writing into CVS/Entries file. Conflict one must be transformed before sending to wire org.netbeans.lib.cvsclient.command.BasicCommand.sendEntryAndModifiedRequests .




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.