Summary of the invention
The embodiment of the invention provides a kind of list creation techniques and device, be conducive to the workload for reducing developer,
Improve the formation efficiency of list.
According to an aspect of the present invention, a kind of list creation techniques are provided, comprising:
Configuration file is obtained, multiple cellular constructions are constructed, each cellular construction has the number with the configuration file
According to the corresponding keyword of sequencing information;
In the body data of configuration file, determining data corresponding with each keyword and module information, and it is right
It should be stored in each cellular construction, then multiple cellular constructions are generated into data dictionary;
Call corresponding first assembly to the cellular construction each in the data dictionary according to the module information
Data are rendered, and object listing is obtained.
Preferably, the data sorting information is the data line information of the configuration file.
Preferably, the data line information is located at the affiliated joint number in the configuration file for data and is located at the institute
Belong to the affiliated line number in joint number.
Preferably, described in the body data of configuration file, determining data corresponding with each keyword and group
Part information, and correspond to and be stored in each cellular construction, then multiple cellular constructions are generated into data dictionaries specifically:
In the body data of configuration file, determining data corresponding with each keyword and module information, and it is right
It should be stored in each cellular construction, then multiple cellular constructions are generated into data word by the sequencing of the keyword
Allusion quotation.
Preferably, described to call corresponding component to the unit each in the data dictionary according to the module information
The data of structure are rendered, after obtaining object listing further include:
On the basis of the object listing, the second component is called to render the additional data of the configuration file,
Object listing after being processed.
Preferably, a kind of list creation techniques provided by the invention further include:
After obtaining data more new information, the textual data in the configuration file is updated, and described in corresponding update
The data of each cellular construction in data dictionary.
Preferably, the configuration file is json format or plist format.
According to another aspect of the present invention, a kind of list creating device is provided, comprising:
Construction unit constructs multiple cellular constructions for obtaining configuration file, each cellular construction have with it is described
The corresponding keyword of data sorting information of configuration file;
Generation unit, in the body data of configuration file, determining data corresponding with each keyword and
Module information, and correspond to and be stored in each cellular construction, then multiple cellular constructions are generated into data dictionaries;
Rendering unit, for calling corresponding first assembly to institute each in the data dictionary according to the module information
The data for stating cellular construction are rendered, and object listing is obtained.
According to another aspect of the present invention, a kind of electronic equipment, including processor and memory are provided, on the memory
Computer program instructions are stored with, realize list creating side as described above when described program instruction is executed by processor
Method.
According to another aspect of the present invention, a kind of computer readable storage medium, the computer-readable storage medium are provided
It is stored with computer program instructions in matter, realizes list creating as described above when described program instruction is executed by processor
Method.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
The present invention provides a kind of list creation techniques and devices, this method comprises: obtaining configuration file, construct multiple lists
Meta structure, each cellular construction have keyword corresponding with the data sorting information of configuration file;In the master of configuration file
In volume data, data corresponding with each keyword and module information are determined, and in corresponding deposit each unit structure, then will be more
A cellular construction generates data dictionary;Call corresponding first assembly to each unit structure in data dictionary according to module information
Data rendered, obtain object listing.The present invention creates each unit structure, each unit in a manner of data dictionary
Structure is identified with keyword, can be corresponding with the data in configuration file, due to having correspondence in each cellular construction
Module information can obtain corresponding component automatically according to module information when rendering to the data in data dictionary
It is rendered, is not required to the artificial developer component of developer, reduces its workload.
Specific embodiment
The embodiment of the invention provides a kind of list creation techniques and device, be conducive to the workload for reducing developer,
Improve the formation efficiency of list.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
Referring to Fig. 1, a kind of one embodiment of list creation techniques provided by the invention, comprising:
101, configuration file is obtained, multiple cellular constructions are constructed, each cellular construction has to be arranged with the data of configuration file
The corresponding keyword of sequence information;
In the present embodiment, cellular construction (CellStruct) is a class, is one of the data dictionary in the present invention
Part, each cellular construction have independent keyword, and keyword passes through opposite with the data sorting information on configuration file
It answers, therefore, corresponding cellular construction can be searched out by keyword.
102, in the body data of configuration file, data corresponding with each keyword and module information are determined, and right
It should be stored in each unit structure, then multiple cellular constructions are generated into data dictionary;
Usual configuration file includes body data and additional data, and include such as configuration file is circle of friends table data,
State, head portrait, title of the every column user of circle of friends etc. are body data, and background, attached drawing of circle of friends etc. are additional data.
After cellular construction creation, since body data is usually to be presented in configuration file in the form of row, keyword
Name placement information of the corresponding data in configuration file is then contained, therefore, each cellular construction may correspond to part
Whole part body data is divided into multiple portions by body data, and one by one in corresponding deposit each unit structure, then will be all
Cellular construction, which is overlapped, produces data dictionary, it is to be understood that data dictionary is a kind of data structure.
It should be noted that after each cellular construction determines corresponding data according to keyword, due to each unit knot
The type and feature of the data of structure storage are there may be difference, therefore unit group required for the data render of each cellular construction
Part (cell) is also different, therefore the present invention is while determining the data of each cellular construction deposit, can be by each cellular construction pair
Corresponding module information is stored in each unit structure by the data type and feature answered.
103, corresponding first assembly is called to carry out the data of each unit structure in data dictionary according to module information
Rendering, obtains object listing.
It is deposited due to cellular construction and prestores module information, when needing to generate list, then can called according to module information
Corresponding first assembly (i.e. said units component) renders the data of each unit structure in data dictionary, obtains target
List.It should be noted that the embodiment of the present invention prestores miscellaneous unit block, and extract corresponding component
Information can call corresponding component according to module information, be not required to developer in the process of development due to profile data
The different developer component again of type and feature, reduce work people and improve efficiency.
The present invention creates each unit structure in a manner of data dictionary, and each cellular construction is identified with keyword,
Can be corresponding with the data in configuration file, due to having corresponding module information in each cellular construction, to data word
When data in allusion quotation are rendered, corresponding component can be obtained automatically according to module information and be rendered, be not required to developer
Artificial developer component reduces its workload.
The above are a kind of one embodiment of list creation techniques to be provided below a kind of column to carry out more specific description
Another embodiment of table creation method, referring to Fig. 2, a kind of another implementation of list creation techniques provided by the invention
Example, comprising:
201, configuration file is obtained, multiple cellular constructions are constructed, each cellular construction has to be arranged with the data of configuration file
The corresponding keyword of sequence information;
In the present embodiment, cellular construction (CellStruct) is a class, is one of the data dictionary in the present invention
Part, each cellular construction have independent keyword, and keyword passes through opposite with the data sorting information on configuration file
It answers, therefore, corresponding cellular construction can be searched out by keyword.
In the present embodiment, data sorting information is the data line information of configuration file.Specifically, data line information
It is located at the affiliated joint number in configuration file and the affiliated line number in affiliated joint number for data, as some cellular construction is corresponding
Keyword can be section1_row1, that is, representing data in the cellular construction is first part in configuration file the
A line.
In the present embodiment, configuration file can be json format or plist format, the data and object listing of storage
It is corresponding.
202, in the body data of configuration file, data corresponding with each keyword and module information are determined, and right
It should be stored in each unit structure, then the sequencing of multiple cellular constructions according to keywords is generated into data dictionary;
Usual configuration file includes body data and additional data, and include such as configuration file is circle of friends table data,
State, head portrait, title of the every column user of circle of friends etc. are body data, and background, attached drawing of circle of friends etc. are additional data.
After cellular construction creation, since body data is usually to be presented in configuration file in the form of row, keyword
Name placement information of the corresponding data in configuration file is then contained, therefore, each cellular construction may correspond to part
Whole part body data is divided into multiple portions by body data, and one by one in corresponding deposit each unit structure, then will be all
The sequencing of cellular construction according to keywords, which is overlapped, produces data dictionary, it is to be understood that data dictionary is one
Kind data structure.
It should be noted that after each cellular construction determines corresponding data according to keyword, due to each unit knot
The type and feature of the data of structure storage are there may be difference, therefore unit group required for the data render of each cellular construction
Part (cell) is also different, therefore the present invention is while determining the data of each cellular construction deposit, can be by each cellular construction pair
Corresponding module information is stored in each unit structure by the data type and feature answered.As the cellular construction A data stored are
Comprising user's head portrait, text, title data, corresponding first assembly be a, and then unit mechanisms A storage module information
It is corresponding with component a, it also include redirected link if the cellular construction B data stored not only include user's head portrait, text, title,
Then its corresponding first assembly is b, and then the module information of cellular construction B storage is corresponding with component b.
203, corresponding first assembly is called to carry out the data of each unit structure in data dictionary according to module information
Rendering, obtains object listing;
It is deposited due to cellular construction and prestores module information, when needing to generate list, then can called according to module information
Corresponding first assembly (i.e. said units component) renders the data of each unit structure in data dictionary, obtains target
List.
204, it on the basis of object listing, calls the second component to render the additional data of configuration file, obtains
Object listing after processing.
Due to including also additional data in configuration file, such as the adeditive attribute of circle of friends, such as whether upper drop-down, if setting
Background picture, setting title etc. call the second component on the basis of object listing (the circle of friends state of such as each user)
(also belonging to a part in said units component) renders additional data polarity, the object listing after processing can be obtained, such as
Complete circle of friends list.
Further, a kind of list creation techniques provided by the invention further include:
After obtaining data more new information, the textual data in configuration file is updated, and corresponding update data dictionary
The data of middle each unit structure.It is understood that the data in each unit structure can carry out according to the demand of user
It is corresponding to update, so that the content of final list display also carries out corresponding content update.
The present invention creates each unit structure in a manner of data dictionary, and each cellular construction is identified with keyword,
Can be corresponding with the data in configuration file, due to having corresponding module information in each cellular construction, to data word
When data in allusion quotation are rendered, corresponding component can be obtained automatically according to module information and be rendered, be not required to developer
Artificial developer component reduces its workload.
It is the present invention will to be provided below a kind of detailed description that list creation techniques carry out provided by the invention above
A kind of list creating device structure and connection relationship be illustrated, referring to Fig. 3, a kind of list creating provided by the invention
One embodiment of device, comprising:
According to another aspect of the present invention, a kind of list creating device is provided, comprising:
Construction unit 301 constructs multiple cellular constructions for obtaining configuration file, each cellular construction have with
The corresponding keyword of data sorting information of the configuration file;
Generation unit 302, in the body data of configuration file, determining data corresponding with each keyword
And module information, and correspond to and be stored in each cellular construction, then multiple cellular constructions are generated into data dictionaries;
Rendering unit 303, for calling corresponding first assembly to each in the data dictionary according to the module information
The data of a cellular construction are rendered, and object listing is obtained.
Further, data sorting information is the data line information of configuration file.
Further, data line information is that data are located at the affiliated joint number in configuration file and are located in affiliated joint number
Affiliated line number.
Further, generation unit is also used in the body data of configuration file, and determination is corresponding with each keyword
Data and module information, and in corresponding deposit each unit structure, then the sequencing by multiple cellular constructions according to keywords
Generate data dictionary.
Further, a kind of list creating device provided by the invention further include:
Unit is processed, on the basis of object listing, calling the second component to carry out the additional data of configuration file
Rendering, the object listing after being processed.
Further, a kind of list creating device provided by the invention further include:
Updating unit is updated the textual data in configuration file after obtaining data more new information, and corresponding
Update the data of each unit structure in data dictionary.
Further, configuration file is json format or plist format.
The invention further relates to a kind of electronic equipment, including processor and memory, computer program is stored on memory
Instruction, list creation techniques as described above are realized when program instruction is executed by processor.
The invention further relates to a kind of computer readable storage medium, computer program instructions are stored on medium, work as program
Instruction realizes list creation techniques as described above when being executed by processor.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.