public class PromotionElementNVPValidationCmdImpl extends com.ibm.websphere.command.CacheableCommandImpl implements PromotionElementNVPValidationCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
PromotionElementNVPValidationCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadyToCallExecute()
This method checks if name and value are null or not.
|
void |
performExecute()
This method checks a NVP value and throws exception if the value is null
or an empty string.
|
void |
reset()
This method sets name and value to empty strings.
|
void |
setName(java.lang.String sName)
Sets the name of the value to be validated.
|
void |
setValue(java.lang.String sValue)
Sets the value to be validated.
|
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
public static final java.lang.String COPYRIGHT
public PromotionElementNVPValidationCmdImpl()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class com.ibm.websphere.command.TargetableCommandImpl
Command.isReadyToCallExecute()
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class com.ibm.websphere.command.CacheableCommandImpl
Command.reset()
public void setName(java.lang.String sName)
setName
in interface PromotionElementNVPValidationCmd
sName
- The name of the value to be validated.public void setValue(java.lang.String sValue)
setValue
in interface PromotionElementNVPValidationCmd
sValue
- The value to be validated.public void performExecute() throws java.lang.Exception
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.websphere.command.TargetableCommandImpl
java.lang.Exception
TargetableCommand.performExecute()