|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.command.Command
org.netbeans.lib.cvsclient.command.BuildableCommand
org.netbeans.lib.cvsclient.command.BasicCommand
org.netbeans.lib.cvsclient.command.tag.TagCommand
public class TagCommand
The tag command adds or deleted a tag to the specified files/directories.
Field Summary |
---|
Fields inherited from class org.netbeans.lib.cvsclient.command.BasicCommand |
---|
clientServices, files, requests |
Fields inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
builder |
Fields inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
localDirectory |
Constructor Summary | |
---|---|
TagCommand()
Construct a new tag command. |
Method Summary | |
---|---|
void |
commandTerminated(TerminationEvent e)
Called when server responses with "ok" or "error", (when the command finishes). |
Builder |
createBuilder(EventManager eventManager)
Creates the TagBuilder. |
boolean |
doesCheckThatUnmodified()
Deprecated. |
boolean |
doesDeleteTag()
Deprecated. |
boolean |
doesMakeBranchTag()
Deprecated. |
boolean |
doesOverrideExistingTag()
Deprecated. |
void |
execute(ClientServices client,
EventManager eventManager)
Execute the command. |
java.lang.String |
getCVSArguments()
Returns the arguments of the command in the command-line style. |
java.lang.String |
getCVSCommand()
This method returns how the tag command would looklike when typed on the command line. |
java.lang.String |
getOptString()
String returned by this method defines which options are available for this command. |
java.lang.String |
getTag()
Returns the tag that should be added or deleted. |
java.lang.String |
getTagByDate()
Returns the latest date of a revision to be tagged. |
java.lang.String |
getTagByRevision()
Sets the latest date of a revision to be tagged. |
boolean |
isCheckThatUnmodified()
Returns true if checking for unmodified files is enabled. |
boolean |
isDeleteTag()
Returnes true if the tag should be deleted (otherwise added). |
boolean |
isMakeBranchTag()
Returns true if the tag should be a branch tag. |
boolean |
isMatchHeadIfRevisionNotFound()
|
boolean |
isOverrideExistingTag()
Returns true to indicate that existing tag will be overridden. |
void |
resetCVSCommand()
Resets all switches in the command. |
void |
setCheckThatUnmodified(boolean checkThatUnmodified)
Enabled the check for unmodified files. |
boolean |
setCVSCommand(char opt,
java.lang.String optArg)
Takes the arguments and sets the command. |
void |
setDeleteTag(boolean deleteTag)
Sets whether the tag should be deleted (true) or added (false). |
void |
setMakeBranchTag(boolean makeBranchTag)
Sets whether the tag should be a branch tag. |
void |
setMatchHeadIfRevisionNotFound(boolean matchHeadIfRevisionNotFound)
|
void |
setOverrideExistingTag(boolean overrideExistingTag)
Sets whether existing tags should be overridden. |
void |
setTag(java.lang.String tag)
Sets the tag that should be added or deleted. |
void |
setTagByDate(java.lang.String tagDate)
Sets the latest date of a revision to be tagged. |
void |
setTagByRevision(java.lang.String tagRevision)
Sets the latest date of a revision to be tagged. |
Methods inherited from class org.netbeans.lib.cvsclient.command.BasicCommand |
---|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursive |
Methods inherited from class org.netbeans.lib.cvsclient.command.BuildableCommand |
---|
isBuilderSet, messageSent, messageSent, setBuilder |
Methods inherited from class org.netbeans.lib.cvsclient.command.Command |
---|
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagCommand()
Method Detail |
---|
public Builder createBuilder(EventManager eventManager)
createBuilder
in class BuildableCommand
eventManager
- the event manager used to received cvs eventspublic boolean doesCheckThatUnmodified()
public boolean isCheckThatUnmodified()
public void setCheckThatUnmodified(boolean checkThatUnmodified)
public boolean doesDeleteTag()
public boolean isDeleteTag()
public void setDeleteTag(boolean deleteTag)
public boolean doesMakeBranchTag()
public boolean isMakeBranchTag()
public void setMakeBranchTag(boolean makeBranchTag)
public boolean doesOverrideExistingTag()
public boolean isOverrideExistingTag()
public void setOverrideExistingTag(boolean overrideExistingTag)
public boolean isMatchHeadIfRevisionNotFound()
public void setMatchHeadIfRevisionNotFound(boolean matchHeadIfRevisionNotFound)
public java.lang.String getTag()
public void setTag(java.lang.String tag)
public java.lang.String getTagByDate()
public void setTagByDate(java.lang.String tagDate)
tagDate
- New value of property tagDate.public java.lang.String getTagByRevision()
public void setTagByRevision(java.lang.String tagRevision)
tagRevision
- New value of property tagRevision.public void execute(ClientServices client, EventManager eventManager) throws CommandException, AuthenticationException
execute
in class BasicCommand
client
- the client services object that provides any necessary
services to this command, including the ability to actually
process all the requests.
CommandException
- if an error occurs executing the command
AuthenticationException
public void commandTerminated(TerminationEvent e)
commandTerminated
in interface CVSListener
commandTerminated
in class BuildableCommand
public java.lang.String getCVSCommand()
getCVSCommand
in class Command
public boolean setCVSCommand(char opt, java.lang.String optArg)
setCVSCommand
in class Command
public java.lang.String getOptString()
getOptString
in class Command
public void resetCVSCommand()
resetCVSCommand
in class Command
public java.lang.String getCVSArguments()
getCVSArguments
in class Command
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |