public class Uid extends TextProperty
Defines a unique identifier for a component. Note that all components that require UID properties are automatically given a random one on creation.
Code sample:
VEvent event = new VEvent(); Uid uid = new Uid("19970610T172345Z-AF23B2@example.com"); event.setUid(uid);
value
parameters
Constructor and Description |
---|
Uid(String uid)
Creates a UID property.
|
Uid(Uid original)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Uid |
copy()
Creates a copy of this property object.
|
static Uid |
random()
Creates a UID property that contains a
universally unique
identifier . |
equals, getValue, getValue, hashCode, setValue, toStringValues, validate, valueEquals, valueHashCode
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validate
public static Uid random()
universally unique
identifier
.public Uid copy()
ICalProperty
Creates a copy of this property object.
The default implementation of this method uses reflection to look for a copy constructor. Child classes SHOULD override this method to avoid the performance overhead involved in using reflection.
The child class's copy constructor, if present, MUST invoke the
ICalProperty.ICalProperty(ICalProperty)
super constructor to ensure that the
parameters are also copied.
This method MUST be overridden by the child class if the child class does
not have a copy constructor. Otherwise, an
UnsupportedOperationException
will be thrown when an attempt is
made to copy the property (such as in the
ICalendar class's copy constructor
).
copy
in class ICalProperty
Copyright © 2013–2024 Michael Angstadt. All rights reserved.