|
||||||||||
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. |
protected String |
getAltRepresentation()
Gets a URI pointing to additional information about the entity represented by the property. |
protected String |
getCommonName()
Gets the display name of the person. |
protected String |
getDirectoryEntry()
Gets a URI that contains additional information about the person. |
protected String |
getFormatType()
Gets the content-type of the property's value. |
protected String |
getLanguage()
Gets the language that the property value is written in. |
String |
getParameter(String name)
Gets the first value of the parameter with the given name. |
ICalParameters |
getParameters()
Gets the property's parameters. |
List<String> |
getParameters(String name)
Gets all values of the parameter with the given name. |
protected String |
getSentBy()
Gets a person that is acting on behalf of the person defined in the property. |
protected String |
getTimezoneId()
Gets the timezone identifier. |
void |
removeParameter(String name)
Removes a parameter from the property. |
protected void |
setAltRepresentation(String uri)
Sets a URI pointing to additional information about the entity represented by the property. |
protected void |
setCommonName(String commonName)
Sets the display name of the person. |
protected void |
setDirectoryEntry(String uri)
Sets a URI that contains additional information about the person. |
protected void |
setFormatType(String formatType)
Sets the content-type of the property's value. |
protected void |
setLanguage(String language)
Sets the language that the property value is written in. |
void |
setParameter(String name,
Collection<String> values)
Sets a parameter's values, replacing all pre-existing values. |
void |
setParameter(String name,
String value)
Sets a parameter's value, replacing all pre-existing values. |
void |
setParameters(ICalParameters parameters)
Sets the property's parameters |
protected void |
setSentBy(String uri)
Sets a person that is acting on behalf of the person defined in the property. |
protected void |
setTimezone(VTimezone timezone)
Sets the property's timezone to a timezone that is defined within the iCalendar object. |
protected void |
setTimezoneId(String timezoneId)
Sets the property's timezone in the form of a globally-defined timezone (e.g. |
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")protected String getAltRepresentation()
protected void setAltRepresentation(String uri)
uri
- the URI or null to removeprotected String getFormatType()
protected void setFormatType(String formatType)
formatType
- the content type (e.g. "image/png") or null to removeprotected String getLanguage()
protected void setLanguage(String language)
language
- the language (e.g. "en" for English) or null to removeprotected String getTimezoneId()
TimezoneId
property of a VTimezone
component, or (b)
specifies a globally-defined timezone (e.g. "America/New_York"). For a
list of globally-defined timezones, see the TZ database.
protected void setTimezoneId(String timezoneId)
setTimezone(VTimezone)
to use a timezone that's defined within
the iCalendar object.
timezoneId
- the timezone identifier (e.g. "America/New_York") or
null to removeprotected void setTimezone(VTimezone timezone)
setTimezoneId(String)
to use a
globally-defined timezone (e.g. "America/New_York").
timezone
- the timezone component or null to removeprotected String getSentBy()
protected void setSentBy(String uri)
uri
- a URI representing the person (typically, an email URI, e.g.
"mailto:janedoe@example.com") or null to removeprotected String getCommonName()
protected void setCommonName(String commonName)
commonName
- the display name (e.g. "John Doe") or null to removeprotected String getDirectoryEntry()
protected void setDirectoryEntry(String uri)
uri
- the URI (e.g. an LDAP URI) or null to removepublic 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 |