public class JavaRosaPropertyRules extends Object implements IPropertyRules
| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_LOCALE |
static String |
DEVICE_ID_PROPERTY |
static String |
LOGS_ENABLED |
static String |
LOGS_ENABLED_NO |
static String |
LOGS_ENABLED_YES |
static String |
OPENROSA_API_LEVEL
The expected compliance version for the OpenRosa API set
|
| Constructor and Description |
|---|
JavaRosaPropertyRules()
Creates the JavaRosa set of property rules
|
| Modifier and Type | Method and Description |
|---|---|
ArrayList<String> |
allowableProperties()
(non-Javadoc)
|
ArrayList<String> |
allowableValues(String propertyName)
(non-Javadoc)
|
boolean |
checkPropertyAllowed(String propertyName)
(non-Javadoc)
|
boolean |
checkPropertyUserReadOnly(String propertyName)
(non-Javadoc)
|
boolean |
checkValueAllowed(String propertyName,
String potentialValue)
(non-Javadoc)
|
String |
getHumanReadableDescription(String propertyName)
Returns a human readable string representing the description of a
property.
|
String |
getHumanReadableValue(String propertyName,
String value)
Returns a human readable string representing the value of a specific
property.
|
void |
handlePropertyChanges(String propertyName)
Handles any state changes that would be required upon a specific value
being changed.
|
public static final String DEVICE_ID_PROPERTY
public static final String CURRENT_LOCALE
public static final String LOGS_ENABLED
public static final String LOGS_ENABLED_YES
public static final String LOGS_ENABLED_NO
public static final String OPENROSA_API_LEVEL
public JavaRosaPropertyRules()
public ArrayList<String> allowableValues(String propertyName)
allowableValues in interface IPropertyRulespropertyName - The name of the property that is being identifiedIPropertyRules.allowableValues(String)public boolean checkValueAllowed(String propertyName, String potentialValue)
checkValueAllowed in interface IPropertyRulespropertyName - The name of the property that is being identifiedpotentialValue - The value that is being testedIPropertyRules.checkValueAllowed(String, String)public ArrayList<String> allowableProperties()
allowableProperties in interface IPropertyRulesIPropertyRules.allowableProperties()public boolean checkPropertyAllowed(String propertyName)
checkPropertyAllowed in interface IPropertyRulespropertyName - The name of the property that is being testedorg.javarosa.core.services.properties.IPropertyRules#checkPropertyAllowed)public boolean checkPropertyUserReadOnly(String propertyName)
checkPropertyUserReadOnly in interface IPropertyRulespropertyName - The name of the property that is being testedorg.javarosa.core.services.properties.IPropertyRules#checkPropertyUserReadOnly)public String getHumanReadableDescription(String propertyName)
IPropertyRulesgetHumanReadableDescription in interface IPropertyRulespropertyName - The name of the property to be describedpublic String getHumanReadableValue(String propertyName, String value)
IPropertyRulesgetHumanReadableValue in interface IPropertyRulespropertyName - The name of the property whose value is to be
interpreted.value - The value to be interpreted as a Stringpublic void handlePropertyChanges(String propertyName)
IPropertyRuleshandlePropertyChanges in interface IPropertyRulespropertyName - The name of the property that has changedCopyright © 2021. All rights reserved.