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

public Class Uid

extends Property
implements Encodable
Class Inheritance
All Implemented Interfaces
net.fortuna.ical4j.model.Encodable
Imports
net.fortuna.ical4j.model.*, net.fortuna.ical4j.validate.ValidationException, .ValidationResult, net.fortuna.ical4j.validate.property.RelationshipPropertyValidators

$Id$

Created: [Apr 6, 2004]

Defines a UID iCalendar component property.

    4.8.4.7 Unique Identifier

       Property Name: UID

       Purpose: This property defines the persistent, globally unique
       identifier for the calendar component.

       Value Type: TEXT

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

       Conformance: The property MUST be specified in the "VEVENT", "VTODO",
       "VJOURNAL" or "VFREEBUSY" calendar components.

       Description: The UID itself MUST be a globally unique identifier. The
       generator of the identifier MUST guarantee that the identifier is
       unique. There are several algorithms that can be used to accomplish
       this. The identifier is RECOMMENDED to be the identical syntax to the
       [RFC 822] addr-spec. A good method to assure uniqueness is to put the
       domain name or a domain literal IP address of the host on which the
       identifier was created on the right hand side of the "@", and on the
       left hand side, put a combination of the current calendar date and
       time of day (i.e., formatted in as a DATE-TIME value) along with some
       other currently unique (perhaps sequential) identifier available on
       the system (for example, a process id number). Using a date/time
       value on the left hand side and a domain name or domain literal on
       the right hand side makes it possible to guarantee uniqueness since
       no two hosts should be using the same domain name or IP address at
       the same time. Though other algorithms will work, it is RECOMMENDED
       that the right hand side contain some domain identifier (either of
       the host itself or otherwise) such that the generator of the message
       identifier can guarantee the uniqueness of the left hand side within
       the scope of that domain.

       This is the method for correlating scheduling messages with the
       referenced "VEVENT", "VTODO", or "VJOURNAL" calendar component.

       The full range of calendar components specified by a recurrence set
       is referenced by referring to just the "UID" property value
       corresponding to the calendar component. The "RECURRENCE-ID" property
       allows the reference to an individual instance within the recurrence
       set.

       This property is an important method for group scheduling
       applications to match requests with later replies, modifications or
       deletion requests. Calendaring and scheduling applications MUST
       generate this property in "VEVENT", "VTODO" and "VJOURNAL" calendar
       components to assure interoperability with other group scheduling
       applications. This identifier is created by the calendar system that
       generates an iCalendar object.

       Implementations MUST be able to receive and persist values of at
       least 255 characters for this property.

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

         uid        = "UID" uidparam ":" text CRLF

         uidparam   = *(";" xparam)

       Example: The following is an example of this property:

         UID:[email protected]
Author
Ben Fortuna

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static final long
private String
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
Uid()

Default constructor.

public
Uid(final String
a value string for this component
aValue
)

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

Method Summary

Modifier and TypeMethod and Description
public final String
protected PropertyFactory<Uid>
newFactory()

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

Returns a new property factory used to create deep copies.

public final 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

serialVersionUIDback to summary
private static final long serialVersionUID

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

valueback to summary
private String value

Constructor Detail

Uidback to summary
public Uid()

Default constructor.

Uidback to summary
public Uid(final String aValue)
Parameters
aValue:String

a value string for this component

Uidback to summary
public Uid(final ParameterList aList, final String aValue)
Parameters
aList:ParameterList

a list of parameters for this component

aValue:String

a value string for this component

Method Detail

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<Uid> 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<Uid>

a property factory instance

Annotations
@Override
setValueback to summary
public final 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 Uid.Factory

extends Factory
implements PropertyFactory<Uid>
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 Uid
createProperty(final ParameterList
a list of property parameters
parameters
,
final String
a property value
value
)

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

public Uid
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 Uid 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:Uid

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

a new instance of the specified property

Annotations
@Override
createPropertyback to summary
public Uid createProperty()

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

Returns:Uid

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

a new instance of the specified property

Annotations
@Override