The enumerated type of the property.
public abstract class PropertyBase<T,U> extends VParentBase implements Property<T>, java.lang.Comparable<Property<T>>
Base iCalendar property class Contains property value, value parameter (ValueType) and other-parameters Also contains several support methods used by other properties
concrete subclasses
UniqueIdentifier
,
CalendarScale
,
Method
,
ProductIdentifier
,
Version
Type | Property and Description |
---|---|
javafx.beans.property.ObjectProperty<java.lang.String> |
propertyName |
javafx.beans.property.ObjectProperty<T> |
value
property value object property
|
javafx.beans.property.ObjectProperty<ValueParameter> |
valueType
property for value type
|
Modifier | Constructor and Description |
---|---|
protected |
PropertyBase() |
|
PropertyBase(java.lang.Class<T> valueClass,
java.lang.String contentLine) |
|
PropertyBase(PropertyBase<T,U> source) |
|
PropertyBase(T value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Property<T> otherProperty) |
void |
copyInto(VParent destination)
|
protected T |
copyValue(T source) |
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 |
protected javafx.util.StringConverter<T> |
getConverter()
STRING CONVERTER
|
javafx.collections.ObservableList<NonStandardParameter> |
getNonStandard() |
VParent |
getParent()
|
protected java.lang.String |
getPropertyValueString() |
protected java.lang.String |
getUnknownValue() |
T |
getValue()
PROPERTY VALUE
|
ValueParameter |
getValueType()
VALUE TYPE
Value Data Types
RFC 5545, 3.2.20, page 29
|
int |
hashCode() |
java.lang.String |
name()
The name of the property, such as DESCRIPTION
Remains the default value unless set by a non-standard property
|
javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<NonStandardParameter>> |
nonStandardParameter()
<h2>NON-STANDARD PARAMETERS</h2>
|
java.util.List<java.lang.String> |
parseContent(java.lang.String unfoldedContent)
Parse content line into calendar property
|
javafx.beans.property.ObjectProperty<java.lang.String> |
propertyNameProperty() |
PropertyType |
propertyType()
PROPERTY TYPE
|
protected void |
setConverter(javafx.util.StringConverter<T> converter) |
protected void |
setConverterByClass(java.lang.Class<T> valueClass) |
void |
setNonStandard(javafx.collections.ObservableList<NonStandardParameter> nonStandardParams) |
void |
setParent(VParent parent)
|
void |
setPropertyName(java.lang.String name)
Set the name of the property.
|
void |
setValue(T value)
Set the value of the property
|
void |
setValueType(java.lang.String value) |
void |
setValueType(ValueParameter valueType)
Set the value type
|
void |
setValueType(ValueType value) |
java.lang.String |
toContent()
Returns iCalendar content text.
|
java.lang.String |
toString() |
protected java.lang.String |
valueContent()
The propery’s value converted by string converted to content string
|
javafx.beans.property.ObjectProperty<T> |
valueProperty()
property value object property
|
javafx.beans.property.ObjectProperty<ValueParameter> |
valueTypeProperty()
property for value type
|
U |
withNonStandard(NonStandardParameter... nonStandardParams)
Sets the value of the
#NonStandardParameter() from a vararg of NonStandardParameter objects. |
U |
withNonStandard(javafx.collections.ObservableList<NonStandardParameter> nonStandardParams)
Sets the value of the
#NonStandardParameter() |
U |
withNonStandard(java.lang.String... nonStandardParams)
NON-STANDARD PARAMETERS
|
U |
withPropertyName(java.lang.String name) |
U |
withValue(T value) |
U |
withValueType(java.lang.String value) |
U |
withValueType(ValueType value) |
childrenUnmodifiable, copyIntoCallback, orderer, setContentLineGenerator
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
childrenUnmodifiable
public javafx.beans.property.ObjectProperty<T> valueProperty
valueProperty
in interface Property<T>
getValue()
,
setValue(T)
public javafx.beans.property.ObjectProperty<java.lang.String> propertyNameProperty
setPropertyName(String)
public javafx.beans.property.ObjectProperty<ValueParameter> valueTypeProperty
valueTypeProperty
in interface Property<T>
getValueType()
,
setValueType(ValueParameter)
protected PropertyBase()
public PropertyBase(java.lang.Class<T> valueClass, java.lang.String contentLine)
public PropertyBase(PropertyBase<T,U> source)
public PropertyBase(T value)
public T getValue()
PROPERTY VALUE
Example: for the property content LOCATION:The park the property value is the string "The park"
public javafx.beans.property.ObjectProperty<T> valueProperty()
Property
property value object property
valueProperty
in interface Property<T>
getValue()
,
setValue(T)
public void setValue(T value)
Property
Set the value of the property
protected java.lang.String valueContent()
The propery’s value converted by string converted to content string
public java.lang.String name()
The name of the property, such as DESCRIPTION Remains the default value unless set by a non-standard property
public javafx.beans.property.ObjectProperty<java.lang.String> propertyNameProperty()
setPropertyName(String)
public void setPropertyName(java.lang.String name)
Set the name of the property. Only allowed for non-standard and IANA properties
public U withPropertyName(java.lang.String name)
public PropertyType propertyType()
PROPERTY TYPE
The enumerated type of the property.
propertyType
in interface Property<T>
protected java.lang.String getUnknownValue()
public ValueParameter getValueType()
VALUE TYPE Value Data Types RFC 5545, 3.2.20, page 29
To specify the value for text values in a property or property parameter. This parameter is optional for properties when the default value type is used.
Examples: VALUE=DATE-TIME (Date-Time is default value, so it isn’t necessary to specify) VALUE=DATE
getValueType
in interface Property<T>
public javafx.beans.property.ObjectProperty<ValueParameter> valueTypeProperty()
Property
property for value type
valueTypeProperty
in interface Property<T>
getValueType()
,
setValueType(ValueParameter)
public void setValueType(ValueParameter valueType)
Property
Set the value type
setValueType
in interface Property<T>
public void setValueType(ValueType value)
public void setValueType(java.lang.String value)
public U withValueType(java.lang.String value)
public javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<NonStandardParameter>> nonStandardParameter()
<h2>NON-STANDARD PARAMETERS</h2>
<p>x-param = x-name "=" param-value *("," param-value)<br> ; A non-standard, experimental parameter.</p>
nonStandardParameter
in interface Property<T>
public javafx.collections.ObservableList<NonStandardParameter> getNonStandard()
getNonStandard
in interface Property<T>
public void setNonStandard(javafx.collections.ObservableList<NonStandardParameter> nonStandardParams)
setNonStandard
in interface Property<T>
public U withNonStandard(java.lang.String... nonStandardParams)
NON-STANDARD PARAMETERS
Sets the value of the #NonStandardParameter()
by parsing a vararg of
iCalendar content text representing individual NonStandardParameter
objects.
public U withNonStandard(javafx.collections.ObservableList<NonStandardParameter> nonStandardParams)
Sets the value of the #NonStandardParameter()
public U withNonStandard(NonStandardParameter... nonStandardParams)
Sets the value of the #NonStandardParameter()
from a vararg of NonStandardParameter
objects.
public void copyInto(VParent destination)
VParent
copyInto
in interface VParent
copyInto
in class VParentBase
protected java.lang.String getPropertyValueString()
protected javafx.util.StringConverter<T> getConverter()
STRING CONVERTER
Get the property’s value string converter. There is a default converter in ValueType associated with the default value type of the property. For most value types that converter is acceptable. However, for the TEXT value type it often needs to be replaced. For example, the value type for TimeZoneIdentifier is TEXT, but the Java object is ZoneId. A different converter is required to make the conversion to ZoneId.
protected void setConverter(javafx.util.StringConverter<T> converter)
protected void setConverterByClass(java.lang.Class<T> valueClass)
public java.util.List<java.lang.String> parseContent(java.lang.String unfoldedContent)
Parse content line into calendar property
parseContent
in interface VElement
unfoldedContent
- calendar content string to parsepublic 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
errors
in interface VElement
errors
in class VParentBase
public java.lang.String toContent()
VElement
Returns iCalendar content text.
toContent
in interface VElement
toContent
in class VParentBase
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class VParentBase
public int hashCode()
hashCode
in class VParentBase