Enum Class VParameterElement

java.lang.Object
java.lang.Enum<VParameterElement>
jfxtras.icalendarfx.parameters.VParameterElement
All Implemented Interfaces:
Serializable, Comparable<VParameterElement>, Constable

public enum VParameterElement extends Enum<VParameterElement>
For each VComponent property parameter (RFC 5545, 3.2, page 13) contains the following:

Parameter name toString()
Parameter class
invalid reference
#getPropertyClass()

Method to parse parameter string into parent component
invalid reference
#parse(Property<?>, String)

Method to get parameter from property
invalid reference
#getParameter(Property<?>)

Method to copy parameter into new parent property
invalid reference
#copyParameter(VParameter, VProperty)

  • Enum Constant Details

  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static VParameterElement[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VParameterElement valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • makeEnumFromNameMap

      private static Map<String,VParameterElement> makeEnumFromNameMap()
    • enumFromName

      public static VParameterElement enumFromName(String parameterName)
    • makeEnumFromClassMap

      private static Map<Class<? extends VParameter<?>>,VParameterElement> makeEnumFromClassMap()
    • enumFromClass

      public static VParameterElement enumFromClass(Class<? extends VElement> myClass)
      get enum from map
    • elementClass

      public Class<? extends VParameter<?>> elementClass()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<VParameterElement>
    • extractValue

      static String extractValue(String content)
      Remove parameter name and equals sign, if present, otherwise returns input string
      Parameters:
      input - - parameter content with or without name and equals sign
      name - - name of parameter
      Returns:
      - nameless string example input: ALTREP="CID:part3.msg.970415T083000@example.com" output: "CID:part3.msg.970415T083000@example.com"
    • getConverter

      public abstract <T> StringConverter<T> getConverter()
      return default String converter associated with property value type