public class VCardDataType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static VCardDataType |
BINARY
Supported versions:
3.0 |
static VCardDataType |
BOOLEAN
Supported versions:
4.0 |
static VCardDataType |
CONTENT_ID
Supported versions:
2.1 (p.8-9) |
static VCardDataType |
DATE
Supported versions:
3.0, 4.0 |
static VCardDataType |
DATE_AND_OR_TIME
Supported versions:
4.0 |
static VCardDataType |
DATE_TIME
Supported versions:
3.0, 4.0 |
static VCardDataType |
FLOAT
Supported versions:
4.0 |
static VCardDataType |
INTEGER
Supported versions:
4.0 |
static VCardDataType |
LANGUAGE_TAG
Supported versions:
4.0 |
static VCardDataType |
TEXT
Supported versions:
2.1, 3.0, 4.0 |
static VCardDataType |
TIME
Supported versions:
3.0, 4.0 |
static VCardDataType |
TIMESTAMP
Supported versions:
4.0 |
static VCardDataType |
URI
Supported versions:
3.0, 4.0 |
static VCardDataType |
URL
Supported versions:
2.1 (p.18-9) |
static VCardDataType |
UTC_OFFSET
Supported versions:
4.0 |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<VCardDataType> |
all()
Gets all of the data types that are defined as static constants in this
class.
|
static VCardDataType |
find(java.lang.String dataType)
Searches for a data type that is defined as a static constant in this
class.
|
static VCardDataType |
get(java.lang.String dataType)
Searches for a data type and creates one if it cannot be found.
|
java.lang.String |
getName()
Gets the name of the data type.
|
boolean |
isSupported(VCardVersion version)
Determines if the data type is supported by the given vCard version.
|
java.lang.String |
toString() |
public static final VCardDataType URL
2.1 (p.18-9)
public static final VCardDataType CONTENT_ID
2.1 (p.8-9)
public static final VCardDataType BINARY
3.0
public static final VCardDataType URI
3.0, 4.0
public static final VCardDataType TEXT
2.1, 3.0, 4.0
public static final VCardDataType DATE
3.0, 4.0
public static final VCardDataType TIME
3.0, 4.0
public static final VCardDataType DATE_TIME
3.0, 4.0
public static final VCardDataType DATE_AND_OR_TIME
4.0
public static final VCardDataType TIMESTAMP
4.0
public static final VCardDataType BOOLEAN
4.0
public static final VCardDataType INTEGER
4.0
public static final VCardDataType FLOAT
4.0
public static final VCardDataType UTC_OFFSET
4.0
public static final VCardDataType LANGUAGE_TAG
4.0
public java.lang.String getName()
public boolean isSupported(VCardVersion version)
version
- the vCard versionpublic java.lang.String toString()
toString
in class java.lang.Object
public static VCardDataType find(java.lang.String dataType)
dataType
- the data type name (e.g. "text")public static VCardDataType get(java.lang.String dataType)
==
equality.dataType
- data type name (e.g. "text")public static java.util.Collection<VCardDataType> all()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.