Class VPropertyBase<T,U>
java.lang.Object
jfxtras.icalendarfx.VElementBase
jfxtras.icalendarfx.VParentBase<U>
jfxtras.icalendarfx.properties.VPropertyBase<T,U>
- Type Parameters:
T- - type of property valueU- - type of implementing subclass
- Direct Known Subclasses:
Action, Attachment, CalendarScale, Classification, FreeBusyTime, GeographicPosition, Method, PercentComplete, Priority, ProductIdentifier, PropBaseDateTime, PropBaseLanguage, PropBaseUTC, PropertyBaseZoneOffset, RecurrenceRule, RelatedTo, RepeatCount, Sequence, Status, TimeTransparency, TimeZoneIdentifier, TimeZoneURL, Trigger, UniformResourceLocator, UniqueIdentifier, Version
Base iCalendar property class
Contains property value, value parameter (ValueType) and other-parameters
Also contains several support methods used by other properties
concrete subclasses
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class VElementBase
VElementBase.Message, VElementBase.MessageEffect -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final Collection<ValueType> private StringConverter<T> protected final ValueTypeVALUE TYPE Value Data Types RFC 5545, 3.2.20, page 29 To specify the value for text values in a property or property parameter.private VParentprivate List<NonStandardParameter> NON-STANDARD PARAMETERSprotected Stringprivate final VPropertyElementprivate Stringprivate Tprivate ValueParameterFields inherited from class VParentBase
contentLineGenerator, ordererFields inherited from class VElementBase
BEGIN, END -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVPropertyBase(Class<T> valueClass, String contentLine) VPropertyBase(VPropertyBase<T, U> source) VPropertyBase(T value) -
Method Summary
Modifier and TypeMethodDescriptionprotected Tbooleanerrors()Produces a list of error messages indicating problems with calendar elementVElement.errors()is invoked recursively to return errors of child elements in addition to errors in parentprotected StringConverter<T> STRING CONVERTER Get the property's value string converter.Non-Standard Parametersprotected StringgetValue()PROPERTY VALUE Example: for the property content LOCATION:The park the property value is the string "The park"private Class<?> VALUE Value Date Types RFC 5545 iCalendar 3.2.10 page 29 To explicitly specify the value type format for a property value.inthashCode()private booleanprivate booleanisValueTypeValid(ValueType value) protected Stringname()The name of the property, such as DESCRIPTION Remains the default value unless set by a non-standard propertyprotected List<VElementBase.Message> parseContent(String unfoldedContent) Handle non-standard property nameprotected voidprocessInLineChild(List<VElementBase.Message> messages, String childName, String content, Class<? extends VElement> singleLineChildClass) protected voidsetConverter(StringConverter<T> converter) protected voidsetConverterByClass(Class<T> valueClass) voidsetNonStandard(List<NonStandardParameter> nonStandardParams) voidprivate voidsetUnknownValue(String value) voidSet the value of the propertyvoidsetValueType(ValueParameter valueType) Set the value typevoidsetValueType(ValueType value) toString()protected StringThe propery's value converted by string converted to content stringprivate voidvalueParamenterConverter(ValueParameter newValueParameter) withNonStandard(String... nonStandardParams) NON-STANDARD PARAMETERS Sets the value of theby parsing a vararg of iCalendar content text representing individualinvalid reference
#NonStandardParameter()NonStandardParameterobjects.withNonStandard(List<NonStandardParameter> nonStandardParams) Sets the value of theinvalid reference
#NonStandardParameter()withNonStandard(NonStandardParameter... nonStandardParams) Sets the value of thefrom a vararg ofinvalid reference
#NonStandardParameter()NonStandardParameterobjects.withValueType(ValueType value) Methods inherited from class VParentBase
addChild, addChild, addChild, addChildInternal, checkChild, childrenUnmodifiable, collectGetterMap, collectSetterMap, copyChildrenInto, getGetter, getGetters, getSetter, getSetters, orderChild, orderChild, orderChild, parseContent, removeChild, removeChild, replaceChild, replaceChild, withChildMethods inherited from class VElementBase
elementName, isContentValid, newEmptyVElement, parse, throwMessageExceptionsMethods inherited from interface VParent
addChild, addChild, addChild, childrenUnmodifiable, orderChild, orderChild, orderChild, removeChild, removeChild, replaceChild, replaceChild
-
Field Details
-
myParent
-
value
-
valueClass
-
propertyName
-
propertyType
-
unknownValue
-
defaultValueType
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 -
allowedValueTypes
-
valueType
-
nonStandardParams
NON-STANDARD PARAMETERS
x-param = x-name "=" param-value *("," param-value)
; A non-standard, experimental parameter. -
actualValueContent
-
converter
-
-
Constructor Details
-
VPropertyBase
protected VPropertyBase() -
VPropertyBase
-
VPropertyBase
-
VPropertyBase
-
-
Method Details
-
setParent
-
getParent
-
getValue
-
setValue
-
withValue
-
valueContent
The propery's value converted by string converted to content string -
getValueClass
-
name
-
getUnknownValue
-
setUnknownValue
-
getValueType
Description copied from interface:VPropertyVALUE Value Date Types RFC 5545 iCalendar 3.2.10 page 29 To explicitly specify the value type format for a property value. Property value type. Optional if default type is used. Example: VALUE=DATE- Specified by:
getValueTypein interfaceVProperty<T>
-
setValueType
Description copied from interface:VPropertySet the value type- Specified by:
setValueTypein interfaceVProperty<T>
-
setValueType
-
withValueType
-
valueParamenterConverter
-
getNonStandard
Description copied from interface:VPropertyNon-Standard Parameters
x-param = x-name "=" param-value *("," param-value)
; A non-standard, experimental parameter.- Specified by:
getNonStandardin interfaceVProperty<T>
-
setNonStandard
- Specified by:
setNonStandardin interfaceVProperty<T>
-
withNonStandard
Sets the value of theinvalid reference
#NonStandardParameter()- Returns:
- - this class for chaining
-
withNonStandard
NON-STANDARD PARAMETERS Sets the value of theby parsing a vararg of iCalendar content text representing individualinvalid reference
#NonStandardParameter()NonStandardParameterobjects.- Returns:
- - this class for chaining
-
withNonStandard
Sets the value of thefrom a vararg ofinvalid reference
#NonStandardParameter()NonStandardParameterobjects.- Returns:
- - this class for chaining
-
modifiedValue
-
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. -
setConverter
-
isCustomConverter
private boolean isCustomConverter() -
copyValue
-
setConverterByClass
-
parseContent
Handle non-standard property name- Overrides:
parseContentin classVParentBase<U>- Parameters:
unfoldedContent- calendar content string to parse- Returns:
- log of information and error messages
-
processInLineChild
protected void processInLineChild(List<VElementBase.Message> messages, String childName, String content, Class<? extends VElement> singleLineChildClass) - Overrides:
processInLineChildin classVParentBase<U>
-
errors
Description copied from interface:VElementProduces a list of error messages indicating problems with calendar elementVElement.errors()is invoked recursively to return errors of child elements in addition to errors in parent- Specified by:
errorsin interfaceVElement- Overrides:
errorsin classVParentBase<U>- Returns:
- - list of error messages
-
isValueTypeValid
-
toString
- Overrides:
toStringin classVParentBase<U>
-
equals
- Overrides:
equalsin classVParentBase<U>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVParentBase<U>
-