|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.property.ICalProperty
public abstract class ICalProperty
Base class for all iCalendar properties.
Field Summary | |
---|---|
protected ICalParameters |
parameters
The property parameters. |
Constructor Summary | |
---|---|
ICalProperty()
|
Method Summary | |
---|---|
void |
addParameter(String name,
String value)
Adds a value to a parameter. |
String |
getParameter(String name)
Gets the first value of a parameter with the given name. |
ICalParameters |
getParameters()
Gets the property's parameters. |
List<String> |
getParameters(String name)
Gets all values of a parameter with the given name. |
void |
removeParameter(String name)
Removes a parameter from the property. |
void |
setParameter(String name,
Collection<String> values)
Replaces all existing values of a parameter with the given values. |
void |
setParameter(String name,
String value)
Replaces all existing values of a parameter with the given value. |
void |
setParameters(ICalParameters parameters)
Sets the property's parameters |
List<String> |
validate(List<ICalComponent> components)
Checks the property for data consistency problems or deviations from the spec. |
protected void |
validate(List<ICalComponent> components,
List<String> warnings)
Checks the property for data consistency problems or deviations from the spec. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ICalParameters parameters
Constructor Detail |
---|
public ICalProperty()
Method Detail |
---|
public ICalParameters getParameters()
public void setParameters(ICalParameters parameters)
parameters
- the parameterspublic String getParameter(String name)
name
- the parameter name (case insensitive, e.g. "LANGUAGE")
public List<String> getParameters(String name)
name
- the parameter name (case insensitive, e.g. "LANGUAGE")
public void addParameter(String name, String value)
name
- the parameter name (case insensitive, e.g. "LANGUAGE")value
- the parameter valuepublic void setParameter(String name, String value)
name
- the parameter name (case insensitive, e.g. "LANGUAGE")value
- the parameter valuepublic void setParameter(String name, Collection<String> values)
name
- the parameter name (case insensitive, e.g. "LANGUAGE")values
- the parameter valuespublic void removeParameter(String name)
name
- the parameter name (case insensitive, e.g. "LANGUAGE")public final List<String> validate(List<ICalComponent> components)
components
- the hierarchy of components that the property belongs
to
ICalendar.validate()
protected void validate(List<ICalComponent> components, List<String> warnings)
components
- the hierarchy of components that the property belongs
towarnings
- the list to add the warnings to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |