Serializable, Comparable<ContactAttributes.Attribute>public static enum ContactAttributes.Attribute extends Enum<ContactAttributes.Attribute>
The enumerated values are used to identify contact attributes based on which a contact will be queried.
| 枚举常量 | 说明 |
|---|---|
ATTR_CONTACT_EVENT |
Indicates the contact event.
|
ATTR_EMAIL |
Indicates the email address.
|
ATTR_GROUP_MEMBERSHIP |
Indicates the contact group.
|
ATTR_IM |
Indicates the instant messaging (IM) address.
|
ATTR_NAME |
Indicates the name.
|
ATTR_NICKNAME |
Indicates the nickname.
|
ATTR_NOTE |
Indicates the note.
|
ATTR_ORGANIZATION |
Indicates the organization.
|
ATTR_PHONE |
Indicates the phone number.
|
ATTR_PORTRAIT |
Indicates the portrait.
|
ATTR_POSTAL_ADDRESS |
Indicates the postal address.
|
ATTR_RELATION |
Indicates the relation.
|
ATTR_SIP_ADDRESS |
Indicates the Session Initiation Protocol (SIP) address.
|
ATTR_WEBSITE |
Indicates the website.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static ContactAttributes.Attribute |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static ContactAttributes.Attribute[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (ContactAttributes.Attribute c : ContactAttributes.Attribute.values()) System.out.println(c); |
public static final ContactAttributes.Attribute ATTR_EMAIL
public static final ContactAttributes.Attribute ATTR_IM
public static final ContactAttributes.Attribute ATTR_NICKNAME
public static final ContactAttributes.Attribute ATTR_ORGANIZATION
public static final ContactAttributes.Attribute ATTR_PHONE
public static final ContactAttributes.Attribute ATTR_SIP_ADDRESS
public static final ContactAttributes.Attribute ATTR_NAME
public static final ContactAttributes.Attribute ATTR_POSTAL_ADDRESS
public static final ContactAttributes.Attribute ATTR_PORTRAIT
public static final ContactAttributes.Attribute ATTR_GROUP_MEMBERSHIP
public static final ContactAttributes.Attribute ATTR_NOTE
public static final ContactAttributes.Attribute ATTR_CONTACT_EVENT
public static final ContactAttributes.Attribute ATTR_WEBSITE
public static final ContactAttributes.Attribute ATTR_RELATION
public static ContactAttributes.Attribute[] values()
for (ContactAttributes.Attribute c : ContactAttributes.Attribute.values()) System.out.println(c);
public static ContactAttributes.Attribute valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值