edu.cmu.andrew.icalendar.properties
Class UnknownDuration
java.lang.Object
|
+--edu.cmu.andrew.icalendar.Property
|
+--edu.cmu.andrew.icalendar.properties.UnknownDuration
- Direct Known Subclasses:
- UnknownSingleDuration
- public class UnknownDuration
- extends Property
A generic property that must contain a duration.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
name
private String name
value
private String value
seconds
private int seconds
df
static DecimalFormat df
UnknownDuration
public UnknownDuration(String name,
String value)
throws BadComponentException
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
getSecondsValue
public int getSecondsValue()