@SupportedVersions(value=V3_0) public class SourceDisplayText extends TextProperty
Defines a textual representation of the Source
property.
Code sample
VCard vcard = new VCard(); SourceDisplayText name = new SourceDisplayText("Download the latest version of my vCard"); vcard.setSourceDisplayText(name);
Property name: NAME
Supported versions: 3.0
value
group, parameters
Constructor and Description |
---|
SourceDisplayText(SourceDisplayText original)
Copy constructor.
|
SourceDisplayText(String displayText)
Creates a source display text property.
|
Modifier and Type | Method and Description |
---|---|
SourceDisplayText |
copy()
Creates a copy of this property object.
|
_validate, equals, getValue, hashCode, setValue, toStringValues
addParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, isSupportedBy, removeParameter, setGroup, setParameter, setParameters, toString, validate
public SourceDisplayText(String displayText)
displayText
- the display textpublic SourceDisplayText(SourceDisplayText original)
original
- the property to make a copy ofpublic SourceDisplayText copy()
VCardProperty
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
VCardProperty.VCardProperty(VCardProperty)
super constructor to ensure that
the group name and 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 VCard
class's copy constructor
).
copy
in class VCardProperty
Copyright © 2012–2023 Michael Angstadt. All rights reserved.