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.Transparency

public class Transparency
extends TextProperty

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:

 Transparency transp = Transparency.opaque();
 
 if (transp.isOpaque()) {
   ...
 }
 

Author:
Michael Angstadt
See Also:
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
 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.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

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


Copyright © 2013 Michael Angstadt. All Rights Reserved.