Serializable, Comparable<IndexSchemaType>public enum IndexSchemaType extends Enum<IndexSchemaType>
SystemCapability.Data#DATA_SEARCH| 枚举常量 | 说明 |
|---|---|
ACTION |
Indicates an action index schema.
|
APP |
Indicates an application index schema.
|
COMMON |
Indicates a common index schema.
|
CONTACT |
Indicates a contact index schema.
|
CUSTOM |
Indicates a custom index schema.
|
DOCUMENT |
Indicates a document index schema.
|
EMAIL |
Indicates an email index schema.
|
EVENT |
Indicates an event index schema.
|
MESSAGE |
Indicates a message index schema.
|
MUSIC |
Indicates a music index schema.
|
NOTEPAD |
Indicates a notepad index schema.
|
NOTICE |
Indicates a notice index schema.
|
PHOTO |
Indicates a photo index schema.
|
PLACE |
Indicates a place index schema.
|
VIDEO |
Indicates a video index schema.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getSchemaCode() |
Obtains the index schema code.
|
String |
getSchemaType() |
Obtains the index schema type.
|
static IndexSchemaType |
getSchemaType(int schemaCode) |
Obtains the index schema type based on the given index schema code.
|
static IndexSchemaType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static IndexSchemaType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (IndexSchemaType c : IndexSchemaType.values()) System.out.println(c); |
public static final IndexSchemaType CUSTOM
public static final IndexSchemaType COMMON
public static final IndexSchemaType APP
public static final IndexSchemaType DOCUMENT
public static final IndexSchemaType PHOTO
public static final IndexSchemaType VIDEO
public static final IndexSchemaType MUSIC
public static final IndexSchemaType CONTACT
public static final IndexSchemaType MESSAGE
public static final IndexSchemaType EMAIL
public static final IndexSchemaType NOTEPAD
public static final IndexSchemaType NOTICE
public static final IndexSchemaType EVENT
public static final IndexSchemaType PLACE
public static final IndexSchemaType ACTION
public static IndexSchemaType[] values()
for (IndexSchemaType c : IndexSchemaType.values()) System.out.println(c);
public static IndexSchemaType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getSchemaCode()
public String getSchemaType()
public static IndexSchemaType getSchemaType(int schemaCode)
schemaCode - Indicates the index schema code.