The enumerated type of the parameter.
public abstract class ParameterBase<U,T> extends java.lang.Object implements Parameter<T>
Base class of all iCalendar Parameters. Parameters can’t have children. Example VALUE=DATE
Type | Property and Description |
---|---|
javafx.beans.property.ObjectProperty<T> |
value
object property of parameter’s value
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Parameter<T> test) |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
errors()
Produces a list of error messages indicating problems with calendar element
VElement.errors() is invoked recursively to return errors of child elements in addition to errors in parent |
VParent |
getParent()
|
T |
getValue()
The value of the parameter.
|
int |
hashCode() |
java.lang.String |
name()
<p>Returns the name of the component as it would appear in the iCalendar content line.</p>
<p>Examples:
<ul>
<li>VEVENT
<li>SUMMARY
<li>LANGUAGE
</ul>
</p>
|
ParameterType |
parameterType()
PARAMETER TYPE
|
java.util.List<java.lang.String> |
parseContent(java.lang.String content)
Parse content line into calendar element.
|
void |
setParent(VParent parent)
|
void |
setValue(T value)
Set the value of this parameter
|
java.lang.String |
toContent()
return parameter name-value pair string separated by an "="
for example:
LANGUAGE=en-US
|
java.lang.String |
toString() |
javafx.beans.property.ObjectProperty<T> |
valueProperty()
object property of parameter’s value
|
U |
withValue(T value) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
extractName, extractValue
public javafx.beans.property.ObjectProperty<T> valueProperty
valueProperty
in interface Parameter<T>
getValue()
,
setValue(T)
public java.lang.String name()
VElement
<p>Returns the name of the component as it would appear in the iCalendar content line.</p> <p>Examples: <ul> <li>VEVENT <li>SUMMARY <li>LANGUAGE </ul> </p>
public T getValue()
Parameter
The value of the parameter.
For example, in the below parameter: CN=John Doe The value is the String "John Doe"
Note: the value’s object must have an overridden toString method that complies with iCalendar content line output.
public javafx.beans.property.ObjectProperty<T> valueProperty()
Parameter
object property of parameter’s value
valueProperty
in interface Parameter<T>
getValue()
,
setValue(T)
public void setValue(T value)
Parameter
Set the value of this parameter
public java.lang.String toContent()
Parameter
return parameter name-value pair string separated by an "=" for example: LANGUAGE=en-US
public java.util.List<java.lang.String> parseContent(java.lang.String content)
VElement
Parse content line into calendar element.
If element contains children VElement.parseContent(String)
is invoked recursively to parse child elements also
parseContent
in interface VElement
content
- calendar content string to parsepublic ParameterType parameterType()
PARAMETER TYPE
The enumerated type of the parameter.
parameterType
in interface Parameter<T>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.List<java.lang.String> errors()
VElement
Produces a list of error messages indicating problems with calendar element
VElement.errors()
is invoked recursively to return errors of child elements in addition to errors in parent