biweekly.property
Class Resources

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.ListProperty<String>
          extended by biweekly.property.Resources

public class Resources
extends ListProperty<String>

Defines a list of resources that are needed for an event or to-do (for example, an easel, a projector or a DVD player).

Author:
Michael Angstadt
See Also:
RFC 5545 p.91

Field Summary
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
Resources()
          Creates a new resources property.
Resources(List<String> values)
          Creates a new resources property.
Resources(String... values)
          Creates a new resources property.
 
Method Summary
 String getAltRepresentation()
          Gets a URI pointing to additional information about the entity represented by the property.
 String getLanguage()
          Gets the language that the property value is written in.
 void setAltRepresentation(String uri)
          Sets a URI pointing to additional information about the entity represented by the property.
 void setLanguage(String language)
          Sets the language that the property value is written in.
 
Methods inherited from class biweekly.property.ListProperty
addValue, getValues, validate
 
Methods inherited from class biweekly.property.ICalProperty
addParameter, getCommonName, getDirectoryEntry, getFormatType, getParameter, getParameters, getParameters, getSentBy, getTimezoneId, removeParameter, setCommonName, setDirectoryEntry, setFormatType, setParameter, setParameter, setParameters, setSentBy, setTimezone, setTimezoneId, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resources

public Resources()
Creates a new resources property.


Resources

public Resources(String... values)
Creates a new resources property.

Parameters:
values - the values to initialize the property with (e.g. "easel", "projector")

Resources

public Resources(List<String> values)
Creates a new resources property.

Parameters:
values - the values to initialize the property with (e.g. "easel", "projector")
Method Detail

getAltRepresentation

public String getAltRepresentation()
Description copied from class: ICalProperty
Gets a URI pointing to additional information about the entity represented by the property.

Overrides:
getAltRepresentation in class ICalProperty
Returns:
the URI or null if not set
See Also:
RFC 5545 p.14-5

setAltRepresentation

public void setAltRepresentation(String uri)
Description copied from class: ICalProperty
Sets a URI pointing to additional information about the entity represented by the property.

Overrides:
setAltRepresentation in class ICalProperty
Parameters:
uri - the URI or null to remove
See Also:
RFC 5545 p.14-5

getLanguage

public String getLanguage()
Description copied from class: ICalProperty
Gets the language that the property value is written in.

Overrides:
getLanguage in class ICalProperty
Returns:
the language (e.g. "en" for English) or null if not set
See Also:
RFC 5545 p.21

setLanguage

public void setLanguage(String language)
Description copied from class: ICalProperty
Sets the language that the property value is written in.

Overrides:
setLanguage in class ICalProperty
Parameters:
language - the language (e.g. "en" for English) or null to remove
See Also:
RFC 5545 p.21


Copyright © 2013 Michael Angstadt. All Rights Reserved.