public interface IPropertyRules
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
allowableProperties()
Identifies what properties are acceptable for this rules set
|
java.util.List<java.lang.String> |
allowableValues(java.lang.String propertyName)
Identifies what values are acceptable for a given property
|
boolean |
checkPropertyAllowed(java.lang.String propertyName)
Identifies whether the given property is usable
|
boolean |
checkPropertyUserReadOnly(java.lang.String propertyName)
Identifies whether the property should be revealed to users.
|
boolean |
checkValueAllowed(java.lang.String propertyName,
java.lang.String potentialValue)
Identifies whether the given value is an acceptable for a property.
|
java.lang.String |
getHumanReadableDescription(java.lang.String propertyName)
Returns a human readable string representing the description of a
property.
|
java.lang.String |
getHumanReadableValue(java.lang.String propertyName,
java.lang.String value)
Returns a human readable string representing the value of a specific
property.
|
void |
handlePropertyChanges(java.lang.String propertyName)
Handles any state changes that would be required upon a specific value
being changed.
|
java.util.List<java.lang.String> allowableValues(java.lang.String propertyName)
propertyName
- The name of the property that is being identifiedboolean checkValueAllowed(java.lang.String propertyName, java.lang.String potentialValue)
propertyName
- The name of the property that is being identifiedpotentialValue
- The value that is being testedjava.util.List<java.lang.String> allowableProperties()
boolean checkPropertyAllowed(java.lang.String propertyName)
propertyName
- The name of the property that is being testedboolean checkPropertyUserReadOnly(java.lang.String propertyName)
propertyName
- The name of the property that is being testedjava.lang.String getHumanReadableDescription(java.lang.String propertyName)
propertyName
- The name of the property to be describedjava.lang.String getHumanReadableValue(java.lang.String propertyName, java.lang.String value)
propertyName
- The name of the property whose value is to be
interpreted.value
- The value to be interpreted as a Stringvoid handlePropertyChanges(java.lang.String propertyName)
propertyName
- The name of the property that has changed