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

VcsCommandIO (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.commands
Class VcsCommandIO

java.lang.Object
  extended byorg.netbeans.modules.vcscore.commands.VcsCommandIO

public class VcsCommandIO
extends Object

This class contains static methods for getting and setting command properties.


Field Summary
static HashMap defaultPropertyValues
           
 
Constructor Summary
VcsCommandIO()
          Creates new VcsCommandIO
 
Method Summary
static boolean getBooleanProperty(VcsCommand command, String propertyName)
          Get the boolean value of the command property.
static boolean getBooleanPropertyAssumeDefault(VcsCommand command, String propertyName)
          Get the boolean value of the command property, or its default value when the property is not defined.
static boolean getBooleanPropertyAssumeTrue(VcsCommand command, String propertyName)
          Get the boolean value of the command property.
static Object getDefaultPropertyValue(String propertyName)
          Get the default value of a command property.
static int getIntegerPropertyAssumeNegative(VcsCommand command, String propertyName)
          Get the int value of the command property.
static int getIntegerPropertyAssumeZero(VcsCommand command, String propertyName)
          Get the int value of the command property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultPropertyValues

public static HashMap defaultPropertyValues
Constructor Detail

VcsCommandIO

public VcsCommandIO()
Creates new VcsCommandIO

Method Detail

getDefaultPropertyValue

public static Object getDefaultPropertyValue(String propertyName)
Get the default value of a command property. When the property is not defined, this value determines the default behavior.

Parameters:
propertyName - the property name to get the default value for
Returns:
the default value of the property

getBooleanProperty

public static boolean getBooleanProperty(VcsCommand command,
                                         String propertyName)
Get the boolean value of the command property.

Parameters:
command - the command to get the property of
propertyName - the name of the property
Returns:
the boolean value of the command property or false when the property does not exist.

getBooleanPropertyAssumeTrue

public static boolean getBooleanPropertyAssumeTrue(VcsCommand command,
                                                   String propertyName)
Get the boolean value of the command property.

Parameters:
command - the command to get the property of
propertyName - the name of the property
Returns:
the boolean value of the command property or true when the property does not exist.

getBooleanPropertyAssumeDefault

public static boolean getBooleanPropertyAssumeDefault(VcsCommand command,
                                                      String propertyName)
Get the boolean value of the command property, or its default value when the property is not defined.

Parameters:
command - the command to get the property of
propertyName - the name of the property
Returns:
the boolean value of the command property or default value when the property does not exist or false, when the default value is not defined for this property.

getIntegerPropertyAssumeZero

public static int getIntegerPropertyAssumeZero(VcsCommand command,
                                               String propertyName)
Get the int value of the command property.

Returns:
the int value of the command property or 0 when the property does not exist.

getIntegerPropertyAssumeNegative

public static int getIntegerPropertyAssumeNegative(VcsCommand command,
                                                   String propertyName)
Get the int value of the command property.

Returns:
the int value of the command property or -1 when the property does not exist.

 

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