站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

RegexOutputCommand (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.commands
Interface RegexOutputCommand

All Superinterfaces:
Command
All Known Subinterfaces:
VcsDescribedCommand

public interface RegexOutputCommand
extends Command

This class represents a command which produce elements of parsed data from a text output of the command using a regular expression.


Method Summary
 void addRegexErrorListener(RegexErrorListener listener)
          Add a text listener to the error output of the command.
 void addRegexOutputListener(RegexOutputListener listener)
          Add a text listener to the standard output of the command.
 String getErrorRegex(String regex)
          Get the regular expression to parse the error output.
 String getStandardRegex(String regex)
          Get the regular expression to parse the standard output.
 void removeRegexErrorListener(RegexErrorListener listener)
          Remove a text listener from the error output of the command.
 void removeRegexOutputListener(RegexOutputListener listener)
          Remove a text listener from the standard output of the command.
 void setErrorRegex(String regex)
          Set the regular expression to parse the error output.
 void setStandardRegex(String regex)
          Set the regular expression to parse the standard output.
 
Methods inherited from interface org.netbeans.api.vcs.commands.Command
execute, getApplicableFiles, getDisplayName, getFiles, getName, isExpertMode, isGUIMode, setExpertMode, setFiles, setGUIMode
 

Method Detail

setStandardRegex

public void setStandardRegex(String regex)
Set the regular expression to parse the standard output.

Parameters:
regex - The regular expression

getStandardRegex

public String getStandardRegex(String regex)
Get the regular expression to parse the standard output.

Returns:
The regular expression

setErrorRegex

public void setErrorRegex(String regex)
Set the regular expression to parse the error output.

Parameters:
regex - The regular expression

getErrorRegex

public String getErrorRegex(String regex)
Get the regular expression to parse the error output.

Returns:
The regular expression

addRegexOutputListener

public void addRegexOutputListener(RegexOutputListener listener)
Add a text listener to the standard output of the command.


removeRegexOutputListener

public void removeRegexOutputListener(RegexOutputListener listener)
Remove a text listener from the standard output of the command.


addRegexErrorListener

public void addRegexErrorListener(RegexErrorListener listener)
Add a text listener to the error output of the command.


removeRegexErrorListener

public void removeRegexErrorListener(RegexErrorListener listener)
Remove a text listener from the error output of the command.


 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.