public enum VCardVersion extends Enum<VCardVersion>
Enum Constant and Description |
---|
V2_1
The original vCard specification.
|
V3_0
Version 3.0.
|
V4_0
The lastest specification.
|
Modifier and Type | Method and Description |
---|---|
SyntaxStyle |
getSyntaxStyle()
Gets the syntax style used by this version when writing to a plain-text
data stream.
|
String |
getVersion()
Gets the text representation of this version.
|
String |
getXmlNamespace()
Gets the XML namespace used by this version when writing to an xCard.
|
String |
toString() |
static VCardVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VCardVersion |
valueOfByStr(String value)
Gets a
VCardVersion instance based on the given text
representation. |
static VCardVersion |
valueOfByXmlNamespace(String ns)
Gets a
VCardVersion instance based on the given XML namespace. |
static VCardVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VCardVersion V2_1
public static final VCardVersion V3_0
public static final VCardVersion V4_0
public static VCardVersion[] values()
for (VCardVersion c : VCardVersion.values()) System.out.println(c);
public static VCardVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getVersion()
public SyntaxStyle getSyntaxStyle()
public String getXmlNamespace()
public static VCardVersion valueOfByStr(String value)
VCardVersion
instance based on the given text
representation.value
- the text representationpublic static VCardVersion valueOfByXmlNamespace(String ns)
VCardVersion
instance based on the given XML namespace.ns
- the XML namespacepublic String toString()
toString
in class Enum<VCardVersion>
Copyright © 2012–2023 Michael Angstadt. All rights reserved.