public final class CommonItem extends Schema<CommonItem>
The common index schema is used to develop basic search functions and applies to all
common scenarios. It supports the following index fields: identifier, title,
subtitle, name, alternateName, category, dateCreate,
keywords, description, thumbnailUrl, url,
potentialAction, reserved1, and reserved2. Among these fields,
identifier is mandatory and can be set via the Schema.setIdentifier(java.lang.String) method.
All other schemas will inherit this class, for example, ContactItem,
MessageItem, DocumentItem, and EmailItem.
SystemCapability.Data#DATA_SEARCH| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
ALTERNATE_NAME |
Indicates the index field name of
alternateName. |
static String |
CATEGORY |
Indicates the index field name of
category. |
static String |
DATE_CREATE |
Indicates the index field name of
dateCreate. |
static String |
DESCRIPTION |
Indicates the index field name of
description. |
static String |
IDENTIFIER |
Indicates the index field name of
identifier. |
static String |
KEYWORDS |
Indicates the index field name of
keywords. |
static String |
NAME |
Indicates the index field name of
name. |
static String |
POTENTIAL_ACTION |
Indicates the index field name of
potentialAction. |
static String |
RESERVED1 |
Indicates the index field name of
reserved1. |
static String |
RESERVED2 |
Indicates the index field name of
reserved2. |
static String |
SUBTITLE |
Indicates the index field name of
subtitle. |
static String |
THUMBNAIL_URL |
Indicates the index field name of
thumbnailUrl. |
static String |
TITLE |
Indicates the index field name of
title. |
static String |
URL |
Indicates the index field name of
url. |
| 构造器 | 说明 |
|---|---|
CommonItem() |
A constructor used to create a
CommonItem instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static List<IndexForm> |
getCommonSchema() |
Obtains a list of index field attributes in this
CommonItem object. |
clear, get, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsString, getValues, isEmpty, put, put, put, put, put, remove, setValues, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlternateName, getCategory, getDateCreate, getDescription, getIdentifier, getKeywords, getName, getPotentialAction, getReserved1, getReserved2, getSubtitle, getThumbnailUrl, getTitle, getUrl, setAlternateName, setCategory, setDateCreate, setDescription, setIdentifier, setKeywords, setName, setPotentialAction, setReserved1, setReserved2, setSubtitle, setThumbnailUrl, setTitle, setUrlpublic static final String ALTERNATE_NAME
alternateName.public static final String CATEGORY
category.public static final String DATE_CREATE
dateCreate.public static final String DESCRIPTION
description.public static final String IDENTIFIER
identifier.public static final String KEYWORDS
keywords.public static final String POTENTIAL_ACTION
potentialAction.public static final String RESERVED1
reserved1.public static final String RESERVED2
reserved2.public static final String SUBTITLE
subtitle.public static final String THUMBNAIL_URL
thumbnailUrl.public static final String TITLE
title.