public abstract class EnumProperty extends TextProperty
Action property).valueparameters| Constructor and Description |
|---|
EnumProperty(EnumProperty original)
Copy constructor.
|
EnumProperty(String value)
Creates an enum property.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
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
specifications.
|
getValue, getValue, setValue, toStringValues, valueEquals, valueHashCodeaddParameter, copy, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validatepublic EnumProperty(String value)
value - the property valuepublic EnumProperty(EnumProperty original)
original - the property to make a copy ofprotected 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)
ICalPropertyChecks the property for data consistency problems or deviations from the specifications.
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 topublic int hashCode()
hashCode in class ValuedProperty<String>public boolean equals(Object obj)
equals in class ValuedProperty<String>Copyright © 2013-2016 Michael Angstadt. All Rights Reserved.