public class GenericCommandKeyImpl extends java.lang.Object implements CommandKey
Constructor and Description |
---|
GenericCommandKeyImpl(java.lang.String interfaceName)
Creates an instance of the generic command key.
|
GenericCommandKeyImpl(java.lang.String interfaceName,
java.lang.String key)
Creates an instance of the generic command key.
|
GenericCommandKeyImpl(java.lang.String interfaceName,
java.lang.String key,
boolean useDefaultImpl)
Creates an instance of the generic command key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getDefaultImplementation()
This method returns whether or not the default implementation should
be instantiated if the key has been specified.
|
java.lang.String |
getInterface()
This method always returns the interface name specified in the constructor.
|
java.lang.String |
getKey()
This method return the specified key in the constructor.
|
java.lang.String |
toString()
This method returns the string representation of the object for debugging
purposes.
|
public GenericCommandKeyImpl(java.lang.String interfaceName)
interfaceName
- The interface name of the target command.public GenericCommandKeyImpl(java.lang.String interfaceName, java.lang.String key)
interfaceName
- The interface name of the target command .key
- The optional info for the command key.(ex. Xpath and AccessProfile)public GenericCommandKeyImpl(java.lang.String interfaceName, java.lang.String key, boolean useDefaultImpl)
interfaceName
- The interface name of the target command .key
- The optional info for the command key.(ex. Xpath and AccessProfile)useDefaultImpl
- Whether to use the default implementation if the key
implementation cannot be resolved.public java.lang.String getInterface()
getInterface
in interface CommandKey
CommandKey.getInterface()
public java.lang.String getKey()
getKey
in interface CommandKey
CommandKey.getKey()
public boolean getDefaultImplementation()
true
means that the default implementation is resolved if the key implementation
cannot be resolved. A value of false
will indicate that the null
is returned if the key implementation has not been found.getDefaultImplementation
in interface CommandKey
public java.lang.String toString()
toString
in class java.lang.Object