Top Description Inners Fields Constructors Methods
net.fortuna.ical4j.model.property

public Class Priority

extends Property
Class Inheritance
Known Direct Subclasses
net.fortuna.ical4j.model.property.immutable.ImmutablePriority
Imports
net.fortuna.ical4j.model.Content, .ParameterList, .Property, .PropertyFactory, net.fortuna.ical4j.util.CompatibilityHints, net.fortuna.ical4j.validate.ValidationException, .ValidationResult, net.fortuna.ical4j.validate.property.DescriptivePropertyValidators

$Id$

Created: [Apr 6, 2004]

Defines a PRIORITY iCalendar component property.

    4.8.1.9 Priority

       Property Name: PRIORITY

       Purpose: The property defines the relative priority for a calendar
       component.

       Value Type: INTEGER

       Property Parameters: Non-standard property parameters can be
       specified on this property.

       Conformance: The property can be specified in a "VEVENT" or "VTODO"
       calendar component.

       Description: The priority is specified as an integer in the range
       zero to nine. A value of zero (US-ASCII decimal 48) specifies an
       undefined priority. A value of one (US-ASCII decimal 49) is the
       highest priority. A value of two (US-ASCII decimal 50) is the second
       highest priority. Subsequent numbers specify a decreasing ordinal
       priority. A value of nine (US-ASCII decimal 58) is the lowest
       priority.

       A CUA with a three-level priority scheme of "HIGH", "MEDIUM" and
       "LOW" is mapped into this property such that a property value in the
       range of one (US-ASCII decimal 49) to four (US-ASCII decimal 52)
       specifies "HIGH" priority. A value of five (US-ASCII decimal 53) is
       the normal or "MEDIUM" priority. A value in the range of six (US-
       ASCII decimal 54) to nine (US-ASCII decimal 58) is "LOW" priority.

       A CUA with a priority schema of "A1", "A2", "A3",
        "B1", "B2", ...,
       "C3" is mapped into this property such that a property value of one
       (US-ASCII decimal 49) specifies "A1", a property value of two (US-
       ASCII decimal 50) specifies "A2", a property value of three (US-ASCII
       decimal 51) specifies "A3", and so forth up to a property value of 9
       (US-ASCII decimal 58) specifies "C3".

       Other integer values are reserved for future use.

       Within a "VEVENT" calendar component, this property specifies a
       priority for the event. This property may be useful when more than
       one event is scheduled for a given time period.

       Within a "VTODO" calendar component, this property specified a
       priority for the to-do. This property is useful in prioritizing
       multiple action items for a given time period.

       Format Definition: The property is specified by the following
       notation:

         priority   = "PRIORITY" prioparam ":" privalue CRLF
         ;Default is zero

         prioparam  = *(";" xparam)

         privalue   = integer       ;Must be in the range [0..9]
            ; All other values are reserved for future use

       The following is an example of a property with the highest priority:

         PRIORITY:1

       The following is an example of a property with a next highest
       priority:

         PRIORITY:2

       Example: The following is an example of a property with no priority.
       This is equivalent to not specifying the "PRIORITY" property:

         PRIORITY:0
Author
Ben Fortuna

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private int
private static final long
public static final int
public static final int
public static final int
public static final int
Inherited from net.fortuna.ical4j.model.Property:
ACKNOWLEDGEDACTIONATTACHATTENDEEBUSYTYPECALENDAR_ADDRESSCALSCALECATEGORIESCLASSCOMMENTCOMPLETEDCONTACTCOUNTRYCREATEDDESCRIPTIONDTENDDTSTAMPDTSTARTDUEDURATIONEXDATEEXPERIMENTAL_PREFIXEXRULEEXTENDED_ADDRESSFREEBUSYGEOLAST_MODIFIEDLOCALITYLOCATIONLOCATION_TYPEMETHODNAMEORGANIZERPARTICIPANT_TYPEPERCENT_COMPLETEPOSTALCODEPRIORITYPRODIDPROXIMITYRDATERECURRENCE_IDREGIONRELATED_TOREPEATREQUEST_STATUSRESOURCE_TYPERESOURCESRRULESEQUENCESTATUSSTREET_ADDRESSSTRUCTURED_DATASTYLED_DESCRIPTIONSUMMARYTELTRANSPTRIGGERTZIDTZID_ALIAS_OFTZNAMETZOFFSETFROMTZOFFSETTOTZUNTILTZURLUIDURLVERSIONXML

Constructor Summary

AccessConstructor and Description
public
Priority()

Default constructor.

public
Priority(final ParameterList
a list of parameters for this component
aList
,
final String
a value string for this component
aValue
)

public
Priority(final int
an int representation of a priority level
aLevel
)

public
Priority(final ParameterList
a list of parameters for this component
aList
,
final int
an int representation of a priority level
aLevel
)

Method Summary

Modifier and TypeMethod and Description
public final int

Returns:

Returns the level.
getLevel
()

public final String
protected PropertyFactory<Priority>
newFactory()

Implements abstract net.fortuna.ical4j.model.Property.newFactory.

Returns a new property factory used to create deep copies.

public void
setLevel(final int
The level to set.
level
)

public void
setValue(final String
a string representation of the property value
aValue
)

Implements abstract net.fortuna.ical4j.model.Property.setValue.

Sets the current value of the property.

public ValidationResult
validate()

Implements abstract net.fortuna.ical4j.model.Property.validate.

Perform validation on a property.

Inherited from net.fortuna.ical4j.model.Property:
addcompareTocopyequalsgetFluentTargetgetNamegetParametergetParametergetParameterListgetParametersgetPrefixgetRequiredParametergetRequiredParameterhashCoderemoveremoveAllreplacesetParameterssetPrefixtoString

Field Detail

levelback to summary
private int level
serialVersionUIDback to summary
private static final long serialVersionUID

Hides net.fortuna.ical4j.model.Property.serialVersionUID.

VALUE_HIGHback to summary
public static final int VALUE_HIGH
VALUE_LOWback to summary
public static final int VALUE_LOW
VALUE_MEDIUMback to summary
public static final int VALUE_MEDIUM
VALUE_UNDEFINEDback to summary
public static final int VALUE_UNDEFINED

Constructor Detail

Priorityback to summary
public Priority()

Default constructor.

Priorityback to summary
public Priority(final ParameterList aList, final String aValue)
Parameters
aList:ParameterList

a list of parameters for this component

aValue:String

a value string for this component

Priorityback to summary
public Priority(final int aLevel)
Parameters
aLevel:int

an int representation of a priority level

Priorityback to summary
public Priority(final ParameterList aList, final int aLevel)
Parameters
aList:ParameterList

a list of parameters for this component

aLevel:int

an int representation of a priority level

Method Detail

getLevelback to summary
public final int getLevel()
Returns:int

Returns the level.

getValueback to summary
public final String getValue()

Implements abstract net.fortuna.ical4j.model.Content.getValue.

Returns:String

Doc from net.fortuna.ical4j.model.Content.getValue.

the content value

Annotations
@Override
newFactoryback to summary
protected PropertyFactory<Priority> newFactory()

Implements abstract net.fortuna.ical4j.model.Property.newFactory.

Doc from net.fortuna.ical4j.model.Property.newFactory.

Returns a new property factory used to create deep copies.

Returns:PropertyFactory<Priority>

a property factory instance

Annotations
@Override
setLevelback to summary
public void setLevel(final int level)
Parameters
level:int

The level to set.

setValueback to summary
public void setValue(final String aValue)

Implements abstract net.fortuna.ical4j.model.Property.setValue.

Doc from net.fortuna.ical4j.model.Property.setValue.

Sets the current value of the property.

Parameters
aValue:String

a string representation of the property value

Annotations
@Override
validateback to summary
public ValidationResult validate() throws ValidationException

Implements abstract net.fortuna.ical4j.model.Property.validate.

Doc from net.fortuna.ical4j.model.Property.validate.

Perform validation on a property.

Annotations
@Override
Exceptions
ValidationException:
where the property is not in a valid state
net.fortuna.ical4j.model.property back to summary

public Class Priority.Factory

extends Factory
implements PropertyFactory<Priority>
Class Inheritance
All Implemented Interfaces
net.fortuna.ical4j.model.PropertyFactory, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Priority
createProperty(final ParameterList
a list of property parameters
parameters
,
final String
a property value
value
)

Implements net.fortuna.ical4j.model.PropertyFactory.createProperty.

public Priority
Inherited from net.fortuna.ical4j.model.Content.Factory:
supports

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

Factoryback to summary
public Factory()

Method Detail

createPropertyback to summary
public Priority createProperty(final ParameterList parameters, final String value)

Implements net.fortuna.ical4j.model.PropertyFactory.createProperty.

Parameters
parameters:ParameterList

Doc from net.fortuna.ical4j.model.PropertyFactory.createProperty.

a list of property parameters

value:String

Doc from net.fortuna.ical4j.model.PropertyFactory.createProperty.

a property value

Returns:Priority

Doc from net.fortuna.ical4j.model.PropertyFactory.createProperty.

a new instance of the specified property

Annotations
@Override
createPropertyback to summary
public Priority createProperty()

Implements net.fortuna.ical4j.model.PropertyFactory.createProperty.

Returns:Priority

Doc from net.fortuna.ical4j.model.PropertyFactory.createProperty.

a new instance of the specified property

Annotations
@Override