public final class NotepadItem extends Schema<NotepadItem>
This schema is used to create indexes for notepad items.
It supports index fields notepadCategory, content,
attachment, and all the fields in CommonItem.
Among these fields, identifier is mandatory and can be set via the
CommonItem#setIdentifier(String) method.
SystemCapability.Data#DATA_SEARCH| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
ATTACHMENT |
Indicates the index field name of
attachment. |
static String |
CONTENT |
Indicates the index field name of
content. |
static String |
NOTEPAD_CATEGORY |
Indicates the index field name of
notepadCategory. |
| 构造器 | 说明 |
|---|---|
NotepadItem() |
A constructor used to create a
NotepadItem instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getAttachment() |
Obtains the value of the
attachment index field. |
String |
getContent() |
Obtains the value of the
content index field. |
String |
getNotepadCategory() |
Obtains the value of the
notepadCategory index field. |
static List<IndexForm> |
getNotepadSchema() |
Obtains a list of index field attributes in this
NotepadItem object. |
NotepadItem |
setAttachment(String attachment) |
Sets the
attachment index field. |
NotepadItem |
setContent(String content) |
Sets the
content index field. |
NotepadItem |
setNotepadCategory(String notepadCategory) |
Sets the
notepadCategory index field. |
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 ATTACHMENT
attachment.public static final String CONTENT
content.public NotepadItem()
NotepadItem instance.public static List<IndexForm> getNotepadSchema()
NotepadItem object.public NotepadItem setNotepadCategory(String notepadCategory)
notepadCategory index field.
Attributes of this index field:
IndexForm.indexFieldName = "notepadCategory";
IndexForm.indexType = IndexType.SORTED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = true;
IndexForm.isSearch = true;
notepadCategory - Indicates the type of the notepad item.NotepadItem object.public NotepadItem setAttachment(String attachment)
attachment index field.
Attributes of this index field:
IndexForm.indexFieldName = "attachment";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = false;
IndexForm.isSearch = true;
attachment - Indicates the attachment contained in the notepad item.NotepadItem object.public NotepadItem setContent(String content)
content index field.
Attributes of this index field:
IndexForm.indexFieldName = "content";
IndexForm.indexType = IndexType.ANALYZED;
IndexForm.isPrimaryKey = false;
IndexForm.isStore = false;
IndexForm.isSearch = true;
content - Indicates the content in the notepad item.NotepadItem object.public String getNotepadCategory()
notepadCategory index field.notepadCategory index field.public String getAttachment()
attachment index field.attachment index field.public String getContent()
content index field.content index field.