public class Classification extends EnumProperty
Defines the level of sensitivity of the iCalendar data. If not specified, the data should be considered "public".
Code sample (creating):
VEvent event = new VEvent(); event.setClassification(Classification.public_());
Code sample (retrieving):
ICalendar ical = ... VEvent event = ical.getEvents().get(0); Classification classification = event.getClassification(); if (classification.isPublic()) { ... } else if (classification.isPrivate()){ ... } else if (classification.isConfidential()){ ... }
value
parameters
Constructor and Description |
---|
Classification(String classification)
Creates a new classification property.
|
Modifier and Type | Method and Description |
---|---|
static Classification |
confidential()
Creates a "confidential" classification property.
|
protected Collection<String> |
getStandardValues(ICalVersion version)
Gets the list of acceptable values for this property.
|
boolean |
isConfidential()
Determines if the classification level is "confidential".
|
boolean |
isPrivate()
Determines if the classification level is "private".
|
boolean |
isPublic()
Determines if the classification level is "public".
|
static Classification |
private_()
Creates a "private" classification property.
|
static Classification |
public_()
Creates a "public" classification property.
|
getValueSupportedVersions, is, validate
getValue, getValue, setValue
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
public Classification(String classification)
classification
- the classification level (e.g. "PUBLIC")public static Classification public_()
public boolean isPublic()
public static Classification private_()
public boolean isPrivate()
public static Classification confidential()
public boolean isConfidential()
protected Collection<String> getStandardValues(ICalVersion version)
EnumProperty
getStandardValues
in class EnumProperty
version
- the versionCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.