biweekly.property
Class Classification

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.ValuedProperty<String>
          extended by biweekly.property.TextProperty
              extended by biweekly.property.Classification

public class Classification
extends TextProperty

Defines the level of sensitivity of the iCalendar data. If not specified, the data within the iCalendar object should be considered "public".

Examples:

 Classification clazz = Classification.public_();
 
 if (clazz.isPublic()) {
         ...
 }
 

Author:
Michael Angstadt
See Also:
RFC 5545 p.82-3

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
Classification(String classification)
          Creates a new classification property.
 
Method Summary
static Classification confidential()
          Creates a "confidential" classification 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.
 
Methods inherited from class biweekly.property.ValuedProperty
getValue, setValue, validate
 
Methods inherited from class biweekly.property.ICalProperty
addParameter, getAltRepresentation, getCommonName, getDirectoryEntry, getFormatType, getLanguage, getParameter, getParameters, getParameters, getSentBy, getTimezoneId, removeParameter, setAltRepresentation, setCommonName, setDirectoryEntry, setFormatType, setLanguage, 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

Classification

public Classification(String classification)
Creates a new classification property. Use the static factory methods to create a property with a standard classification level.

Parameters:
classification - the classification level (e.g. "PUBLIC")
Method Detail

public_

public static Classification public_()
Creates a "public" classification property.

Returns:
the property

isPublic

public boolean isPublic()
Determines if the classification level is "public".

Returns:
true if it's "public", false if not

private_

public static Classification private_()
Creates a "private" classification property.

Returns:
the property

isPrivate

public boolean isPrivate()
Determines if the classification level is "private".

Returns:
true if it's "private", false if not

confidential

public static Classification confidential()
Creates a "confidential" classification property.

Returns:
the property

isConfidential

public boolean isConfidential()
Determines if the classification level is "confidential".

Returns:
true if it's "confidential", false if not


Copyright © 2013 Michael Angstadt. All Rights Reserved.