biweekly.property
Class Categories

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

public class Categories
extends ListProperty<String>

Defines a list of "tags" or "keywords" that describe the component.

Examples:

 //creating a new property (multi-valued)
 Categories categories = new Categories("conference", "meeting");
 

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.81-2

Field Summary
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
Categories()
          Creates a new categories property.
Categories(List<String> categories)
          Creates a new categories property.
Categories(String... categories)
          Creates a new categories property.
 
Method Summary
 String getLanguage()
          Gets the language that the property value is written in.
 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

Categories

public Categories()
Creates a new categories property.


Categories

public Categories(String... categories)
Creates a new categories property.

Parameters:
categories - the categories to initialize the property with

Categories

public Categories(List<String> categories)
Creates a new categories property.

Parameters:
categories - the categories to initialize the property with
Method Detail

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.