Modifier and Type | Field and Description |
---|---|
static String |
DTEND |
static String |
DTSTART |
static String |
DURATION |
static String |
EXDATE |
static String |
EXRULE |
static String |
RDATE |
static String |
RRULE |
Constructor and Description |
---|
Property(String name)
Creates a new property with the provided name.
|
Property(String name,
String value)
Creates a new property with the provided name and value.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(ICalendar.Parameter param)
Adds a
ICalendar.Parameter to this property. |
ICalendar.Parameter |
getFirstParameter(String name)
Returns the first parameter with the specified name.
|
String |
getName()
Returns the name of the property.
|
Set<String> |
getParameterNames()
Returns the set of parameter names for this property.
|
List<ICalendar.Parameter> |
getParameters(String name)
Returns the list of parameters with the specified name.
|
String |
getValue()
Returns the value of this property.
|
void |
setValue(String value)
Sets the value of this property.
|
String |
toString()
Returns a string representation of the object.
|
void |
toString(StringBuilder sb)
Helper method that appends this property to a StringBuilder.
|
public static final String DTSTART
public static final String DTEND
public static final String DURATION
public static final String RRULE
public static final String RDATE
public static final String EXRULE
public static final String EXDATE
public Property(String name)
name
- The name of the property.public String getName()
public String getValue()
public void setValue(String value)
value
- The desired value for this property.public void addParameter(ICalendar.Parameter param)
ICalendar.Parameter
to this property.param
- The parameter that should be added.public Set<String> getParameterNames()
public List<ICalendar.Parameter> getParameters(String name)
name
- The name of the parameters that should be returned.public ICalendar.Parameter getFirstParameter(String name)
name
- The name of the parameter that should be returned.public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public void toString(StringBuilder sb)