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

VariableValueAdjustment (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.util
Class VariableValueAdjustment

java.lang.Object
  extended byorg.netbeans.modules.vcscore.util.VariableValueAdjustment
All Implemented Interfaces:
Serializable

public class VariableValueAdjustment
extends Object
implements Serializable

This class is used to adjust variable values so that they can be expanded to the execution string. Some shells needs some characters to be prepended by an escape character to hide their special meaning.

See Also:
Serialized Form

Constructor Summary
VariableValueAdjustment()
          Creates new VariableValueAdjustment
 
Method Summary
 String adjustVarValue(String value)
          Adjust the variable value for the command-line execution.
 void adjustVarValues(Hashtable vars)
          Adjust the variable values for the command-line execution.
 Set getAdjustedVariableNames()
          Get the set of variable names, that are adjusted.
 String revertAdjustedVarValue(String value)
          Revert the adjusted variable value.
 void revertAdjustedVarValues(Hashtable vars)
          Revert the adjusted variable values.
 void setAdjust(Hashtable vars)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableValueAdjustment

public VariableValueAdjustment()
Creates new VariableValueAdjustment

Method Detail

setAdjust

public void setAdjust(Hashtable vars)

getAdjustedVariableNames

public Set getAdjustedVariableNames()
Get the set of variable names, that are adjusted.


adjustVarValues

public void adjustVarValues(Hashtable vars)
Adjust the variable values for the command-line execution.

Parameters:
vars - the map of variable names and their values

adjustVarValue

public String adjustVarValue(String value)
Adjust the variable value for the command-line execution.

Parameters:
value - the value to be adjusted
Returns:
the adjusted value

revertAdjustedVarValues

public void revertAdjustedVarValues(Hashtable vars)
Revert the adjusted variable values.

Parameters:
vars - the map of variable names and their values

revertAdjustedVarValue

public String revertAdjustedVarValue(String value)
Revert the adjusted variable value.

Parameters:
value - the value to be reverted
Returns:
the reverted value

 

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