|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.admin.Entry
public final class Entry
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.
Field Summary | |
---|---|
static String |
DUMMY_TIMESTAMP
The dummy timestamp set the conflict information for added or removed files. |
static String |
DUMMY_TIMESTAMP_NEW_ENTRY
|
static char |
HAD_CONFLICTS
Indicates that the file had conflicts. |
static String |
HAD_CONFLICTS_AND_TIMESTAMP_MATCHES_FILE
Indicates that the file had conflicts and timestamp matches. |
static String |
MERGE_TIMESTAMP
|
static char |
TIMESTAMP_MATCHES_FILE
Indicates that the timestamp matches the file. |
Constructor Summary | |
---|---|
Entry()
Construct a new blank Entry. |
|
Entry(String entryLine)
Construct a new Entry from a given entry line. |
Method Summary | |
---|---|
String |
getConflict()
Get the conflict information. |
Date |
getDate()
Get sticky date information. |
String |
getDateFormatted()
Gets the sticky date information as a string in the appropriate format. |
Date |
getLastModified()
Get the last modification time. |
static SimpleDateFormat |
getLastModifiedDateFormatter()
Returns the instance of the Last-Modified-Date-Formatter. |
String |
getName()
Get the name of the associated file. |
String |
getOptions()
Get the options information. |
String |
getRevision()
Get the revision. |
String |
getStickyInformation()
Get the sticky information. |
String |
getTag()
Get the sticky tag information. |
static TimeZone |
getTimeZone()
All entries times are by defaulf in Zulu/GMT0 |
boolean |
hadConflicts()
Determine whether there were any conflicts. |
boolean |
hasDate()
Determines whether the entry has a date (as opposed to a tag). |
boolean |
hasTag()
Determines whether the entry has a tag (as opposed to a date). |
protected void |
init(String entryLine)
Initialise the Entry by parsing an entry line. |
boolean |
isBinary()
Determines whether the file is a binary file. |
boolean |
isDirectory()
Determine whether the entry refers to a directory. |
boolean |
isNewUserFile()
Determine whether there is a new user file of that name. |
boolean |
isNoUserFile()
Determine whether there is no user file of that name. |
boolean |
isUserFileToBeRemoved()
Determine whether the user file of that name is to be removed. |
boolean |
isValid()
Determines whether the entry is valid. |
void |
setConflict(String conflict)
Set the conflict information. |
void |
setDate(Date date)
Set the sticky date information. |
void |
setDirectory(boolean directory)
Set whether the entry refers to a directory. |
void |
setName(String name)
Set the name. |
void |
setOptions(String options)
Set the options information. |
void |
setRevision(String revision)
Set the revision. |
void |
setTag(String tag)
Set the sticky tag information. |
boolean |
timestampMatchesFile()
Determine whether the timestamp matches the file. |
String |
toString()
Create a string representation of the entry line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DUMMY_TIMESTAMP
public static final String DUMMY_TIMESTAMP_NEW_ENTRY
public static final String MERGE_TIMESTAMP
public static final char HAD_CONFLICTS
public static final char TIMESTAMP_MATCHES_FILE
public static final String HAD_CONFLICTS_AND_TIMESTAMP_MATCHES_FILE
Constructor Detail |
---|
public Entry(String entryLine)
public Entry()
Method Detail |
---|
public static SimpleDateFormat getLastModifiedDateFormatter()
public static TimeZone getTimeZone()
protected void init(String entryLine)
entryLine
- the entry line in standard CVS formatpublic String getName()
public void setName(String name)
theName
- the filename to setpublic String getRevision()
public void setRevision(String revision)
theVersion
- the revision to setpublic Date getLastModified()
public String getConflict()
public void setConflict(String conflict)
theConflict
- the conflict informationpublic String getOptions()
public void setOptions(String options)
theOptions
- the optionspublic String getStickyInformation()
public String getTag()
public void setTag(String tag)
theTag
- the tag informationpublic Date getDate()
public String getDateFormatted()
public void setDate(Date date)
theDate
- the date to use.public boolean hasDate()
public boolean hasTag()
public boolean isBinary()
public boolean isNoUserFile()
public boolean isNewUserFile()
public boolean isUserFileToBeRemoved()
public boolean isValid()
public boolean isDirectory()
public void setDirectory(boolean directory)
public boolean hadConflicts()
public boolean timestampMatchesFile()
public String toString()
Th eline format is suitable for writing into CVS/Entries file.
Conflict one must be transformed before sending to wire
BasicCommand.sendEntryAndModifiedRequests(org.netbeans.lib.cvsclient.admin.Entry, java.io.File)
.
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |