/* * Copyright © 2010-2011, The MiCode Open Source… · The Chat Archive
Explore /* * Copyright © 2010-2011, The MiCode Open Source Community (www.micode.net) * *… Save Share Download ▾ Report/*
Copyright © 2010-2011, The MiCode Open Source Community (www.micode.net )
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package net.micode.notes.data;
import android.net.Uri;
public class Notes {
public static final String AUTHORITY = “micode_notes”;
public static final String TAG = “Notes”;
public static final int TYPE_NOTE = 0;
public static final int TYPE_FOLDER = 1;
public static final int TYPE_SYSTEM = 2;
/
Following IDs are system folders’ identifiers
{@link Notes#ID_ROOT_FOLDER } is default folder
{@link Notes#ID_TEMPARAY_FOLDER } is for notes belonging no folder
{@link Notes#ID_CALL_RECORD_FOLDER} is to store call records
*/
public static final int ID_ROOT_FOLDER = 0;
public static final int ID_TEMPARAY_FOLDER = -1;
public static final int ID_CALL_RECORD_FOLDER = -2;
public static final int ID_TRASH_FOLER = -3;
public static final String INTENT_EXTRA_ALERT_DATE = “net.micode.notes.alert_date”;
public static final String INTENT_EXTRA_BACKGROUND_ID = “net.micode.notes.background_color_id”;
public static final String INTENT_EXTRA_WIDGET_ID = “net.micode.notes.widget_id”;
public static final String INTENT_EXTRA_WIDGET_TYPE = “net.micode.notes.widget_type”;
public static final String INTENT_EXTRA_FOLDER_ID = “net.micode.notes.folder_id”;
public static final String INTENT_EXTRA_CALL_DATE = “net.micode.notes.call_date”;
public static final int TYPE_WIDGET_INVALIDE = -1;
public static final int TYPE_WIDGET_2X = 0;
public static final int TYPE_WIDGET_4X = 1;
public static class DataConstants {
public static final String NOTE = TextNote.CONTENT_ITEM_TYPE;
public static final String CALL_NOTE = CallNote.CONTENT_ITEM_TYPE;
}
/
Uri to query all notes and folders
*/
public static final Uri CONTENT_NOTE_URI = Uri.parse(“content://” + AUTHORITY + “/note”);
/
Uri to query data
*/
public static final Uri CONTENT_DATA_URI = Uri.parse(“content://” + AUTHORITY + “/data”);
Show full message · 280 lines Assistant2023-12-08 16:47 UTC Copy response
要使用PlantUML生成类图代码,首先需要将提供的Java代码转换成PlantUML格式。下面是根据您提供的Java代码转换后的PlantUML类图代码(假设该Java代码是完整的并且没有编译错误):
Copy first prompt
Details
Provider OpenAI
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date Dec 8, 2023
Added to archive Nov 16, 2026
ID 01m7h41jgg70f9ge6mx87ypgtnSource & license Imported from WildChat-4.8M (AI2) (source ). Imported records earn no Research Points.
Upstream record: e35f570ecd7c7121f3101af1a0a94380
Zhao et al., WildChat: 1M ChatGPT Interaction Logs in the Wild (ICLR 2024). Contains information from WildChat-4.8M, made available under the ODC Attribution License.
License: ODC-BY-1.0
public interface NoteColumns {
/
*/
public static final String ID = “_id”;
The parent’s id for note or folder
*/
public static final String PARENT_ID = “parent_id”;
Created data for note or folder
*/
public static final String CREATED_DATE = “created_date”;
*/
public static final String MODIFIED_DATE = “modified_date”;
*/
public static final String ALERTED_DATE = “alert_date”;
Folder’s name or text content of note
*/
public static final String SNIPPET = “snippet”;
*/
public static final String WIDGET_ID = “widget_id”;
*/
public static final String WIDGET_TYPE = “widget_type”;
Note’s background color’s id
*/
public static final String BG_COLOR_ID = “bg_color_id”;
For text note, it doesn’t has attachment, for multi-media
note, it has at least one attachment
*/
public static final String HAS_ATTACHMENT = “has_attachment”;
*/
public static final String NOTES_COUNT = “notes_count”;
The file type: folder or note
*/
public static final String TYPE = “type”;
*/
public static final String SYNC_ID = “sync_id”;
Sign to indicate local modified or not
*/
public static final String LOCAL_MODIFIED = “local_modified”;
Original parent id before moving into temporary folder
*/
public static final String ORIGIN_PARENT_ID = “origin_parent_id”;
*/
public static final String GTASK_ID = “gtask_id”;
*/
public static final String VERSION = “version”;
}
public interface DataColumns {
/
*/
public static final String ID = “_id”;
The MIME type of the item represented by this row.
*/
public static final String MIME_TYPE = “mime_type”;
The reference id to note that this data belongs to
*/
public static final String NOTE_ID = “note_id”;
Created data for note or folder
*/
public static final String CREATED_DATE = “created_date”;
*/
public static final String MODIFIED_DATE = “modified_date”;
*/
public static final String CONTENT = “content”;
Generic data column, the meaning is {@link #MIMETYPE} specific, used for
integer data type
*/
public static final String DATA1 = “data1”;
Generic data column, the meaning is {@link #MIMETYPE} specific, used for
integer data type
*/
public static final String DATA2 = “data2”;
Generic data column, the meaning is {@link #MIMETYPE} specific, used for
TEXT data type
*/
public static final String DATA3 = “data3”;
Generic data column, the meaning is {@link #MIMETYPE} specific, used for
TEXT data type
*/
public static final String DATA4 = “data4”;
Generic data column, the meaning is {@link #MIMETYPE} specific, used for
TEXT data type
*/
public static final String DATA5 = “data5”;
}
public static final class TextNote implements DataColumns {
/
Mode to indicate the text in check list mode or not
*/
public static final String MODE = DATA1;
public static final int MODE_CHECK_LIST = 1;
public static final String CONTENT_TYPE = “vnd.android.cursor.dir/text_note”;
public static final String CONTENT_ITEM_TYPE = “vnd.android.cursor.item/text_note”;
public static final Uri CONTENT_URI = Uri.parse(“content://” + AUTHORITY + “/text_note”);
}
public static final class CallNote implements DataColumns {
/
Call date for this record
*/
public static final String CALL_DATE = DATA1;
Phone number for this record
*/
public static final String PHONE_NUMBER = DATA3;
public static final String CONTENT_TYPE = “vnd.android.cursor.dir/call_note”;
public static final String CONTENT_ITEM_TYPE = “vnd.android.cursor.item/call_note”;
public static final Uri CONTENT_URI = Uri.parse(“content://” + AUTHORITY + “/call_note”);
}
}
总结puml生成类图代码,中文回答
puml Copy code
@startuml
namespace net.micode.notes.data {
class Notes {
+ static AUTHORITY: String
+ static TAG: String
+ static TYPE_NOTE: int
+ static TYPE_FOLDER: int
+ static TYPE_SYSTEM: int
+ static ID_ROOT_FOLDER: int
+ static ID_TEMPARAY_FOLDER: int
+ static ID_CALL_RECORD_FOLDER: int
+ static ID_TRASH_FOLER: int
+ static INTENT_EXTRA_ALERT_DATE: String
+ static INTENT_EXTRA_BACKGROUND_ID: String
+ static INTENT_EXTRA_WIDGET_ID: String
+ static INTENT_EXTRA_WIDGET_TYPE: String
+ static INTENT_EXTRA_FOLDER_ID: String
+ static INTENT_EXTRA_CALL_DATE: String
+ static TYPE_WIDGET_INVALIDE: int
+ static TYPE_WIDGET_2X: int
+ static TYPE_WIDGET_4X: int
+ static CONTENT_NOTE_URI: Uri
+ static CONTENT_DATA_URI: Uri
}
class DataConstants {
+ static NOTE: String
+ static CALL_NOTE: String
}
interface NoteColumns {
+ static ID: String
+ static PARENT_ID: String
+ static CREATED_DATE: String
+ static MODIFIED_DATE: String
+ static ALERTED_DATE: String
+ static SNIPPET: String
+ static WIDGET_ID: String
+ static WIDGET_TYPE: String
+ static BG_COLOR_ID: String
+ static HAS_ATTACHMENT: String
+ static NOTES_COUNT: String
+ static TYPE: String
+ static SYNC_ID: String
+ static LOCAL_MODIFIED: String
+ static ORIGIN_PARENT_ID: String
+ static GTASK_ID: String
+ static VERSION: String
}
interface DataColumns {
+ static ID: String
+ static MIME_TYPE: String
+ static NOTE_ID: String
+ static CREATED_DATE: String
+ static MODIFIED_DATE: String
+ static CONTENT: String
+ static DATA1: String
+ static DATA2: String
+ static DATA3: String
+ static DATA4: String
+ static DATA5: String
}
class TextNote {
+ static MODE: String
+ static MODE_CHECK_LIST: int
+ static CONTENT_TYPE: String
+ static CONTENT_ITEM_TYPE: String
+ static CONTENT_URI: Uri
}
class CallNote {
+ static CALL_DATE: String
+ static PHONE_NUMBER: String
+ static CONTENT_TYPE: String
+ static CONTENT_ITEM_TYPE: String
+ static CONTENT_URI: Uri
}
}
@enduml
要注意的是,上面的PlantUML代码只是您提供Java代码的一个潜在的PlantUML类图表示。根据PlantUML的语法,可能需要继续调整代码以正确表示某些元素,譬如常量和方法。您可以使用一个PlantUML编辑器或者在线工具来验证和呈现这个类图。请根据实际情况进行调整。
Copy first response
Not yet included in a published release.