|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.commands.VcsCommandIO
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 |
public static HashMap defaultPropertyValues
Constructor Detail |
public VcsCommandIO()
Method Detail |
public static Object getDefaultPropertyValue(String propertyName)
propertyName
- the property name to get the default value for
public static boolean getBooleanProperty(VcsCommand command, String propertyName)
command
- the command to get the property ofpropertyName
- the name of the property
false
when the property does not exist.public static boolean getBooleanPropertyAssumeTrue(VcsCommand command, String propertyName)
command
- the command to get the property ofpropertyName
- the name of the property
true
when the property does not exist.public static boolean getBooleanPropertyAssumeDefault(VcsCommand command, String propertyName)
command
- the command to get the property ofpropertyName
- the name of the property
false
, when the default value is not defined for this property.public static int getIntegerPropertyAssumeZero(VcsCommand command, String propertyName)
int
value of the command property.
int
value of the command property or 0
when the property does not exist.public static int getIntegerPropertyAssumeNegative(VcsCommand command, String propertyName)
int
value of the command property.
int
value of the command property or -1
when the property does not exist.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |