java.lang.Object
jfxtras.icalendarfx.VElementBase
jfxtras.icalendarfx.parameters.VParameterBase<U,T>
- Type Parameters:
U
- - implemented subclassT
- - type of value stored in the Parameter, such as String for text-based, or the enumerated type of the classes based on an enum
- All Implemented Interfaces:
VParameter<T>
,VChild
,VElement
- Direct Known Subclasses:
AlarmTriggerRelationship
,AlternateText
,CommonName
,Delegatees
,Delegators
,DirectoryEntry
,Encoding
,FormatType
,GroupMembership
,Language
,NonStandardParameter
,ParameterEnumBasedWithUnknown
,Range
,RSVP
,SentBy
,TimeZoneIdentifierParameter
Base class of all iCalendar Parameters. Parameters can't have children.
Example VALUE=DATE
-
Nested Class Summary
Nested classes/interfaces inherited from class jfxtras.icalendarfx.VElementBase
VElementBase.Message, VElementBase.MessageEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringConverter
<T> STRING CONVERTER Get the parameter value string converter.protected final VParameterElement
PARAMETER TYPE The enumerated type of the parameter.private VParent
private T
Fields inherited from class jfxtras.icalendarfx.VElementBase
BEGIN, END
-
Constructor Summary
ConstructorsConstructorDescriptionVParameterBase
(VParameterBase<U, T> source, StringConverter<T> stringConverter) VParameterBase
(StringConverter<T> stringConverter) VParameterBase
(T value, StringConverter<T> stringConverter) -
Method Summary
Modifier and TypeMethodDescriptionboolean
errors()
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 parent(package private) static String
extractValue
(String content) private StringConverter
<T> getValue()
The value of the parameter.int
hashCode()
name()
Returns the name of the component as it would appear in the iCalendar content line.protected List
<VElementBase.Message> parseContent
(String content) Parse content line into calendar element.void
void
setValue
(CharSequence value) void
Set the value of this parametertoString()
(package private) String
withValue
(CharSequence value) Methods inherited from class jfxtras.icalendarfx.VElementBase
elementName, isContentValid, newEmptyVElement, parse, throwMessageExceptions
-
Field Details
-
myParent
-
value
-
converter
STRING CONVERTER Get the parameter value string converter. -
elementType
PARAMETER TYPE The enumerated type of the parameter.
-
-
Constructor Details
-
VParameterBase
VParameterBase(StringConverter<T> stringConverter) -
VParameterBase
VParameterBase(T value, StringConverter<T> stringConverter) -
VParameterBase
VParameterBase(VParameterBase<U, T> source, StringConverter<T> stringConverter)
-
-
Method Details
-
setParent
Description copied from interface:VChild
-
getParent
Description copied from interface:VChild
-
getValue
Description copied from interface:VParameter
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.- Specified by:
getValue
in interfaceVParameter<U>
-
setValue
Description copied from interface:VParameter
Set the value of this parameter- Specified by:
setValue
in interfaceVParameter<U>
-
setValue
-
withValue
-
withValue
-
valueAsString
String valueAsString() -
parseContent
Description copied from class:VElementBase
Parse content line into calendar element. If element contains childrenVElementBase.parseContent(String)
is invoked recursively to parse child elements also- Specified by:
parseContent
in classVElementBase
- Parameters:
content
- calendar content string to parse- Returns:
- log of information and error messages
-
getConverter
-
name
Description copied from interface:VElement
Returns the name of the component as it would appear in the iCalendar content line.
Examples:
- VEVENT
- SUMMARY
- LANGUAGE
-
toString
-
equals
-
hashCode
public int hashCode() -
errors
Description copied from interface:VElement
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 parent -
extractValue
-