@SupportedVersions(value=V3_0) public class Classification extends TextProperty
Defines the sensitivity of the information in the vCard.
Code sample
VCard vcard = new VCard(); Classification classification = new Classification("PUBLIC"); vcard.setClassification(classification);
Property name: CLASS
Supported versions: 3.0
value
group, parameters
Constructor and Description |
---|
Classification(Classification original)
Copy constructor.
|
Classification(String classValue)
Creates a classification property.
|
Modifier and Type | Method and Description |
---|---|
Classification |
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 Classification(String classValue)
classValue
- the classification (e.g. "PUBLIC", "PRIVATE",
"CONFIDENTIAL")public Classification(Classification original)
original
- the property to make a copy ofpublic Classification 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.