public abstract class EnumProperty extends TextProperty
Action property).valueparameters| Constructor and Description |
|---|
EnumProperty(String value)
Creates an enum property.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<String> |
getStandardValues()
Gets the list of acceptable values for this property.
|
protected boolean |
is(String value)
Compares the property's value with a given string (case-insensitive).
|
protected void |
validate(List<ICalComponent> components,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
getValue, setValueaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic EnumProperty(String value)
value - the property valueprotected boolean is(String value)
value - the stringprotected abstract Collection<String> getStandardValues()
protected void validate(List<ICalComponent> components, List<Warning> warnings)
ICalPropertyvalidate in class ValuedProperty<String>components - the hierarchy of components that the property belongs
towarnings - the list to add the warnings toCopyright © 2013-2014 Michael Angstadt. All Rights Reserved.