Class Version

  • All Implemented Interfaces:
    Serializable, Comparable<Property>

    public class Version
    extends Property
    $Id$

    Created: [Apr 6, 2004]

    Defines a VERSION iCalendar property. When creating a new calendar you should always add a version property with value "2.0". There is actually a constant defined in the Version class for this. e.g: Calendar calendar = new Calendar(); calendar.add(Version.VERSION_2_0);

    See Also:
    Serialized Form
    • Field Detail

      • VERSION_2_0

        public static final Version VERSION_2_0
        iCalendar version 2.0.
    • Constructor Detail

      • Version

        public Version()
        Default constructor.
      • Version

        public Version​(ParameterList aList,
                       String aValue)
        Parameters:
        aList - a list of parameters for this component
        aValue - a value string for this component
      • Version

        public Version​(String minVersion,
                       String maxVersion)
        Parameters:
        minVersion - a string representation of the minimum version
        maxVersion - a string representation of the maximum version
      • Version

        public Version​(ParameterList aList,
                       String aVersion1,
                       String aVersion2)
        Parameters:
        aList - a list of parameters for this component
        aVersion1 - a string representation of the minimum version
        aVersion2 - a string representation of the maximum version
    • Method Detail

      • getMaxVersion

        public final String getMaxVersion()
        Returns:
        Returns the maxVersion.
      • getMinVersion

        public final String getMinVersion()
        Returns:
        Returns the minVersion.
      • setValue

        public void setValue​(String aValue)
        Sets the current value of the property.
        Specified by:
        setValue in class Property
        Parameters:
        aValue - a string representation of the property value
      • getValue

        public final String getValue()
        Specified by:
        getValue in class Content
        Returns:
        the content value
      • setMaxVersion

        public void setMaxVersion​(String maxVersion)
        Parameters:
        maxVersion - The maxVersion to set.
      • setMinVersion

        public void setMinVersion​(String minVersion)
        Parameters:
        minVersion - The minVersion to set.
      • newFactory

        protected PropertyFactory<Version> newFactory()
        Description copied from class: Property
        Returns a new property factory used to create deep copies.
        Specified by:
        newFactory in class Property
        Returns:
        a property factory instance