public abstract class EnumProperty extends TextProperty
Action
property).value
parameters
Constructor and Description |
---|
EnumProperty(String value)
Creates an enum property.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<String> |
getStandardValues(ICalVersion version)
Gets the list of acceptable values for this property.
|
protected Collection<ICalVersion> |
getValueSupportedVersions()
Gets the iCalendar versions that this property's value is supported in.
|
protected boolean |
is(String value)
Compares the property's value with a given string (case-insensitive).
|
protected void |
validate(List<ICalComponent> components,
ICalVersion version,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
getValue, getValue, setValue
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
public EnumProperty(String value)
value
- the property valueprotected boolean is(String value)
value
- the stringprotected abstract Collection<String> getStandardValues(ICalVersion version)
version
- the versionprotected Collection<ICalVersion> getValueSupportedVersions()
protected void validate(List<ICalComponent> components, ICalVersion version, List<Warning> warnings)
ICalProperty
Checks the property for data consistency problems or deviations from the spec.
This method should be overridden by child classes that wish to provide validation logic. The default implementation of this method does nothing.
validate
in class ValuedProperty<String>
components
- the hierarchy of components that the property belongs
toversion
- the version to validate againstwarnings
- the list to add the warnings toCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.