public enum VCardVersion extends Enum<VCardVersion>
Modifier and Type | Method and Description |
---|---|
String |
getVersion()
Gets the text representation of this version.
|
String |
getXmlNamespace()
Gets the XML namespace of this version.
|
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 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>
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.