public class RelatedTo extends TextProperty
Defines a relationship between the component that this property belongs to and another component.
Code samples:
VEvent event = new VEvent();
RelatedTo relatedTo = new RelatedTo("uid-value");
event.addRelatedTo(relatedTo);
valueparameters| Constructor and Description |
|---|
RelatedTo(RelatedTo original)
Copy constructor.
|
RelatedTo(String uid)
Creates a related-to property.
|
| Modifier and Type | Method and Description |
|---|---|
RelatedTo |
copy()
Creates a copy of this property object.
|
RelationshipType |
getRelationshipType()
Gets the relationship type.
|
void |
setRelationshipType(RelationshipType relationshipType)
Sets the relationship type.
|
equals, getValue, getValue, hashCode, setValue, toStringValues, validate, valueEquals, valueHashCodeaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validatepublic RelatedTo(String uid)
uid - the value of the Uid property of the component that
this property is referencingpublic RelationshipType getRelationshipType()
public void setRelationshipType(RelationshipType relationshipType)
relationshipType - the relationship type (e.g. "child") or null to
removepublic RelatedTo copy()
ICalPropertyCreates 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 ICalPropertyCopyright © 2013-2016 Michael Angstadt. All Rights Reserved.