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 task (for example a projector or DVD player).

Examples:

 Resources resources = new Resources("projector", "DVD player");
 

Author:
Michael Angstadt
Specification Reference:
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, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, 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.

Returns:
the URI or null if not set

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.

Parameters:
uri - the URI or null to remove

getLanguage

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

Returns:
the language (e.g. "en" for English) or null if not set

setLanguage

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

Parameters:
language - the language (e.g. "en" for English) or null to remove


Copyright © 2013 Michael Angstadt. All Rights Reserved.