public class Comment extends TextProperty
Defines a free-text comment.
Code sample:
VEvent event = new VEvent(); Comment comment = new Comment("Free text"); event.addComment(comment);
value
parameters
Constructor and Description |
---|
Comment(Comment original)
Copy constructor.
|
Comment(String comment)
Creates a comment property.
|
Modifier and Type | Method and Description |
---|---|
Comment |
copy()
Creates a copy of this property object.
|
String |
getAltRepresentation()
Gets a URI pointing to additional information about the entity
represented by the property.
|
String |
getLanguage()
Gets the language that the property value is written in.
|
void |
setAltRepresentation(String uri)
Sets a URI pointing to additional information about the entity
represented by the property.
|
void |
setLanguage(String language)
Sets the language that the property value is written in.
|
equals, getValue, getValue, hashCode, setValue, toStringValues, validate, valueEquals, valueHashCode
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validate
public String getAltRepresentation()
ICalProperty
public void setAltRepresentation(String uri)
ICalProperty
uri
- the URI or null to removepublic String getLanguage()
ICalProperty
public void setLanguage(String language)
ICalProperty
language
- the language (e.g. "en" for English) or null to removepublic Comment 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-2016 Michael Angstadt. All Rights Reserved.