|
||||||||||
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 java.lang.String |
DUMMY_TIMESTAMP
The dummy timestamp set the conflict information for added or removed files. |
static java.lang.String |
DUMMY_TIMESTAMP_NEW_ENTRY
|
static char |
HAD_CONFLICTS
Indicates that the file had conflicts. |
static java.lang.String |
HAD_CONFLICTS_AND_TIMESTAMP_MATCHES_FILE
Indicates that the file had conflicts and timestamp matches. |
static java.lang.String |
MERGE_TIMESTAMP
|
static char |
TIMESTAMP_MATCHES_FILE
Indicates that the timestamp matches the file. |
Constructor Summary | |
---|---|
Entry()
Construct a new blank Entry. |
|
Entry(java.lang.String entryLine)
Construct a new Entry from a given entry line. |
Method Summary | |
---|---|
java.lang.String |
getConflict()
Get the conflict information. |
java.util.Date |
getDate()
Get sticky date information. |
java.lang.String |
getDateFormatted()
Gets the sticky date information as a string in the appropriate format. |
java.util.Date |
getLastModified()
Get the last modification time. |
static java.text.SimpleDateFormat |
getLastModifiedDateFormatter()
Returns the instance of the Last-Modified-Date-Formatter. |
java.lang.String |
getName()
Get the name of the associated file. |
java.lang.String |
getOptions()
Get the options information. |
java.lang.String |
getRevision()
Get the revision. |
java.lang.String |
getStickyInformation()
Get the sticky information. |
java.lang.String |
getTag()
Get the sticky tag information. |
static java.util.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(java.lang.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(java.lang.String conflict)
Set the conflict information. |
void |
setDate(java.util.Date date)
Set the sticky date information. |
void |
setDirectory(boolean directory)
Set whether the entry refers to a directory. |
void |
setName(java.lang.String name)
Set the name. |
void |
setOptions(java.lang.String options)
Set the options information. |
void |
setRevision(java.lang.String revision)
Set the revision. |
void |
setTag(java.lang.String tag)
Set the sticky tag information. |
boolean |
timestampMatchesFile()
Determine whether the timestamp matches the file. |
java.lang.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 java.lang.String DUMMY_TIMESTAMP
public static final java.lang.String DUMMY_TIMESTAMP_NEW_ENTRY
public static final java.lang.String MERGE_TIMESTAMP
public static final char HAD_CONFLICTS
public static final char TIMESTAMP_MATCHES_FILE
public static final java.lang.String HAD_CONFLICTS_AND_TIMESTAMP_MATCHES_FILE
Constructor Detail |
---|
public Entry(java.lang.String entryLine)
public Entry()
Method Detail |
---|
public static java.text.SimpleDateFormat getLastModifiedDateFormatter()
public static java.util.TimeZone getTimeZone()
protected void init(java.lang.String entryLine)
entryLine
- the entry line in standard CVS formatpublic java.lang.String getName()
public void setName(java.lang.String name)
theName
- the filename to setpublic java.lang.String getRevision()
public void setRevision(java.lang.String revision)
theVersion
- the revision to setpublic java.util.Date getLastModified()
public java.lang.String getConflict()
public void setConflict(java.lang.String conflict)
theConflict
- the conflict informationpublic java.lang.String getOptions()
public void setOptions(java.lang.String options)
theOptions
- the optionspublic java.lang.String getStickyInformation()
public java.lang.String getTag()
public void setTag(java.lang.String tag)
theTag
- the tag informationpublic java.util.Date getDate()
public java.lang.String getDateFormatted()
public void setDate(java.util.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 java.lang.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 java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |