DeviceFeatureFlag
public
class
DeviceFeatureFlag
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.flag.DeviceFeatureFlag |
Summary
Public constructors | |
---|---|
DeviceFeatureFlag(String flagString)
Constructor to create a new DeviceFeatureFlag object with a flag string. |
|
DeviceFeatureFlag(String namespace, String flagName, String flagValue)
Constructor to create a new DeviceFeatureFlag object with flag attributes. |
Public methods | |
---|---|
String
|
getFlagName()
Get the flag name of the DeviceFeatureFlag. |
String
|
getFlagValue()
Get the flag value of the DeviceFeatureFlag. |
String
|
getNamespace()
Get the namespace of the DeviceFeatureFlag. |
String
|
toString()
Convert the DeviceFeatureFlag object to a flag string in the format of "namespace/flagName=flagValue" |
Public constructors
DeviceFeatureFlag
public DeviceFeatureFlag (String flagString)
Constructor to create a new DeviceFeatureFlag object with a flag string.
Parameters | |
---|---|
flagString |
String : A device config flag string in the format of "namespace/flagName=flagValue" |
Throws | |
---|---|
IllegalArgumentException |
if the flagString parameter cannot be parsed |
DeviceFeatureFlag
public DeviceFeatureFlag (String namespace, String flagName, String flagValue)
Constructor to create a new DeviceFeatureFlag object with flag attributes.
Parameters | |
---|---|
namespace |
String : The namespace of a flag, in String format. |
flagName |
String : The name of a flag, in String format. |
flagValue |
String : The value of a flag, in String format. |
Public methods
getFlagName
public String getFlagName ()
Get the flag name of the DeviceFeatureFlag. E.g. "flagName" in flag string "namespace/flagName=flagValue".
Returns | |
---|---|
String |
flag name string |
getFlagValue
public String getFlagValue ()
Get the flag value of the DeviceFeatureFlag. E.g. "flagValue" in flag string "namespace/flagName=flagValue".
Returns | |
---|---|
String |
flag value string |
getNamespace
public String getNamespace ()
Get the namespace of the DeviceFeatureFlag. E.g. "namespace" in flag string "namespace/flagName=flagValue".
Returns | |
---|---|
String |
namespace string |
toString
public String toString ()
Convert the DeviceFeatureFlag object to a flag string in the format of "namespace/flagName=flagValue"
Returns | |
---|---|
String |
formatted flag string |