biweekly.property
Class Transparency

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

public class Transparency
extends EnumProperty

Defines whether an event is visible to free/busy time searches. If an event does not have this property, the event should be considered visible ("opaque").

Examples:

 //creating a new property
 Transparency transp = Transparency.opaque();
 
 if (transp.isOpaque()) {
   //its value is "OPAQUE"
 }
 
 //usage in a VEVENT component
 VEvent event = ...
 event.setTransparency(true); //hidden from searches ("TRANSPARENT")
 event.setTransparency(false); //visible to searches ("OPAQUE")
 

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

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
Transparency(String value)
          Creates a new transparency property.
 
Method Summary
protected  Collection<String> getStandardValues()
          Gets the list of acceptable values for this property.
 boolean isOpaque()
          Determines if the event is visible to free/busy time searches.
 boolean isTransparent()
          Determines if the event is hidden from free/busy time searches.
static Transparency opaque()
          Creates a property that marks the event as being visible to free/busy time searches.
static Transparency transparent()
          Creates a property that marks the event as being hidden from free/busy time searches.
 
Methods inherited from class biweekly.property.EnumProperty
is, validate
 
Methods inherited from class biweekly.property.ValuedProperty
getValue, setValue
 
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

Transparency

public Transparency(String value)
Creates a new transparency property.

Parameters:
value - the value
Method Detail

opaque

public static Transparency opaque()
Creates a property that marks the event as being visible to free/busy time searches.

Returns:
the property

isOpaque

public boolean isOpaque()
Determines if the event is visible to free/busy time searches.

Returns:
true if it's visible, false if not

transparent

public static Transparency transparent()
Creates a property that marks the event as being hidden from free/busy time searches.

Returns:
the property

isTransparent

public boolean isTransparent()
Determines if the event is hidden from free/busy time searches.

Returns:
true if it's hidden, false if not

getStandardValues

protected Collection<String> getStandardValues()
Description copied from class: EnumProperty
Gets the list of acceptable values for this property.

Specified by:
getStandardValues in class EnumProperty
Returns:
the list of acceptable values


Copyright © 2013 Michael Angstadt. All Rights Reserved.