edu.cmu.andrew.icalendar.properties
Class UnknownDate

java.lang.Object
  |
  +--edu.cmu.andrew.icalendar.Property
        |
        +--edu.cmu.andrew.icalendar.properties.UnknownDate
Direct Known Subclasses:
UnknownSingleDate

public class UnknownDate
extends Property

A generic property that must contain a Date value.


Field Summary
private  Date dateval
           
(package private)  DateType dt
           
private  String name
           
 
Fields inherited from class edu.cmu.andrew.icalendar.Property
parameters
 
Constructor Summary
UnknownDate(String name, DateType dt, Date date)
          Constructs a date property given a Java Date object.
UnknownDate(String name, String value)
           
 
Method Summary
 Date getDateValue()
           
 String getName()
          Accessor for the name.
 String getValue()
          Accessor for the value.
 boolean hasTime()
           
 boolean multipleOk()
          Returns whether or not multiple instances of these properties may appear in a single component.
 
Methods inherited from class edu.cmu.andrew.icalendar.Property
getInstance, getParameter, output, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

name

private String name

dateval

private Date dateval

dt

DateType dt
Constructor Detail

UnknownDate

public UnknownDate(String name,
                   String value)
            throws BadComponentException

UnknownDate

public UnknownDate(String name,
                   DateType dt,
                   Date date)
Constructs a date property given a Java Date object.
Parameters:
name - the name of the property
dt - the type of the dateval this property is storing
date - the exact time of this event in UTC
Method Detail

multipleOk

public boolean multipleOk()
Description copied from class: Property
Returns whether or not multiple instances of these properties may appear in a single component. The UnknownProperty class allows them, since some properties do so.
Overrides:
multipleOk in class Property
Following copied from class: edu.cmu.andrew.icalendar.Property
Returns:
true if this property may appear multiple times in a single component

getName

public String getName()
Description copied from class: Property
Accessor for the name.
Overrides:
getName in class Property
Following copied from class: edu.cmu.andrew.icalendar.Property
Returns:
the name of this property

getValue

public String getValue()
Description copied from class: Property
Accessor for the value.
Overrides:
getValue in class Property
Following copied from class: edu.cmu.andrew.icalendar.Property
Returns:
the string form of the value of this property

getDateValue

public Date getDateValue()

hasTime

public boolean hasTime()