|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<VCardVersion>
ezvcard.VCardVersion
public enum VCardVersion
Contains all possible vCard versions.
Enum Constant Summary | |
---|---|
V2_1
|
|
V3_0
|
|
V4_0
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final VCardVersion V2_1
public static final VCardVersion V3_0
public static final VCardVersion V4_0
Method Detail |
---|
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 name
NullPointerException
- 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 representation
public static VCardVersion valueOfByXmlNamespace(String ns)
VCardVersion
instance based on the given XML namespace.
ns
- the XML namespace
public String toString()
toString
in class Enum<VCardVersion>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |