public class VCardParameter extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
value
The value (for example, "home").
|
Modifier | Constructor and Description |
---|---|
|
VCardParameter(String value)
Creates a new parameter.
|
protected |
VCardParameter(String value,
boolean preserveCase)
Creates a new parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
VCardVersion[] |
getSupportedVersions()
Gets the vCard versions that support this parameter value.
|
String |
getValue()
Gets the value of the parameter.
|
int |
hashCode() |
boolean |
isSupportedBy(VCardVersion version)
Determines if this parameter value is supported by the given vCard
version.
|
String |
toString() |
public VCardParameter(String value)
value
- the valueprotected VCardParameter(String value, boolean preserveCase)
value
- the valuepreserveCase
- true to preserve the case of the value, false convert
it to lower-casepublic String getValue()
public VCardVersion[] getSupportedVersions()
Gets the vCard versions that support this parameter value.
The supported versions are defined by assigning a
SupportedVersions
annotation to the parameter value's static
field (for example, AddressType.DOM
). Dynamically-created
parameter values (i.e. non-standard values) are considered to be
supported by all versions.
public boolean isSupportedBy(VCardVersion version)
Determines if this parameter value is supported by the given vCard version.
The supported versions are defined by assigning a
SupportedVersions
annotation to the parameter value's static
field (for example, AddressType.DOM
). Dynamically-created
parameter values (i.e. non-standard values) are considered to be
supported by all versions.
version
- the vCard versionCopyright © 2012–2023 Michael Angstadt. All rights reserved.