edu.cmu.andrew.icalendar.properties
Class UnknownSingleDate

java.lang.Object
  |
  +--edu.cmu.andrew.icalendar.Property
        |
        +--edu.cmu.andrew.icalendar.properties.UnknownDate
              |
              +--edu.cmu.andrew.icalendar.properties.UnknownSingleDate

public class UnknownSingleDate
extends UnknownDate

A generic property that must contain an integer value. A component may not have more than one of these properties.


Field Summary
private  String name
           
private  int value
           
 
Fields inherited from class edu.cmu.andrew.icalendar.properties.UnknownDate
dateval, dt
 
Fields inherited from class edu.cmu.andrew.icalendar.Property
parameters
 
Constructor Summary
UnknownSingleDate(String name, DateType dt, Date date)
          Constructor UnknownSingleDate.
UnknownSingleDate(String name, String value)
           
 
Method Summary
 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.properties.UnknownDate
getDateValue, getName, getValue, hasTime
 
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

value

private int value
Constructor Detail

UnknownSingleDate

public UnknownSingleDate(String name,
                         String value)
                  throws BadComponentException

UnknownSingleDate

public UnknownSingleDate(String name,
                         DateType dt,
                         Date date)
Constructor UnknownSingleDate.
Parameters:
string -  
date -  
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 UnknownDate
Following copied from class: edu.cmu.andrew.icalendar.Property
Returns:
true if this property may appear multiple times in a single component