java.lang.Object
jfxtras.icalendarfx.VElementBase
jfxtras.icalendarfx.parameters.VParameterBase<U,T>
- Type Parameters:
T- - type of value stored in the Parameter, such as String for text-based, or the enumerated type of the classes based on an enumU- - implemented subclass
- 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 VParameterElementPARAMETER TYPE The enumerated type of the parameter.private VParentprivate TFields 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 TypeMethodDescriptionbooleanerrors()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 StringextractValue(String content) private StringConverter<T>getValue()The value of the parameter.inthashCode()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.voidvoidsetValue(CharSequence value) voidSet the value of this parametertoString()(package private) StringwithValue(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:VParameterThe 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:
getValuein interfaceVParameter<U>
-
setValue
Description copied from interface:VParameterSet the value of this parameter- Specified by:
setValuein interfaceVParameter<U>
-
setValue
-
withValue
-
withValue
-
valueAsString
String valueAsString() -
parseContent
Description copied from class:VElementBaseParse content line into calendar element. If element contains childrenVElementBase.parseContent(String)is invoked recursively to parse child elements also- Specified by:
parseContentin classVElementBase- Parameters:
content- calendar content string to parse- Returns:
- log of information and error messages
-
getConverter
-
name
Description copied from interface:VElementReturns 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: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 -
extractValue
-