CN100403312C - Method for realizing intelligent interlinking - Google Patents

Method for realizing intelligent interlinking Download PDF

Info

Publication number
CN100403312C
CN100403312C CNB2006100010827A CN200610001082A CN100403312C CN 100403312 C CN100403312 C CN 100403312C CN B2006100010827 A CNB2006100010827 A CN B2006100010827A CN 200610001082 A CN200610001082 A CN 200610001082A CN 100403312 C CN100403312 C CN 100403312C
Authority
CN
China
Prior art keywords
page
link
attribute
intelligent
intelligent interlinking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2006100010827A
Other languages
Chinese (zh)
Other versions
CN1858736A (en
Inventor
张晋
范荣
夏晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100010827A priority Critical patent/CN100403312C/en
Publication of CN1858736A publication Critical patent/CN1858736A/en
Application granted granted Critical
Publication of CN100403312C publication Critical patent/CN100403312C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a method for realizing intelligent links and is characterized in that link attributes and operation thereof are abstracted into link classes in advance; the processing logic for a link object is abstracted and packaged into a link logic interface class; thereby, an intelligent link class comprising a link class and the link logic interface class is constructed; an intelligent link object is respectively generated for each intelligent link in a first page according to the intelligent link class and the intelligent link is possibly used; data provided for a second page from the first page is analyzed; a logic processing interface object is created according to the analyzed data and the logic processing interface class; each attribute of the intelligent link object related to the second page is set by the logic processing interface object according to the data provided by the first page; the link corresponding to the intelligent link object is displayed on the second page according to attributes of the intelligent link object related to the second page. The complexity of page codes can be lowered and the codes can be used repeatedly via the application of the method of the present invention.

Description

A kind of method that realizes intelligent interlinking
Technical field
The present invention relates to link (link) technology, particularly a kind of method that realizes intelligent interlinking.
Background technology
Link is that a widely used technology is gone up in internet (Internet), and it is used to provide the function of page jump.Generally speaking, can realize link by HTML (HTML), HTML realizes that the basic syntax of link is:
<a?href=″URL″>...</a>
Web browser can be with<a〉and</a between content of pages be presented on the page.That is to say, on the page, can show " ... " represented content.When these contents of click, the page just can jump to by URL(uniform resource locator) (URL) page pointed.URL is used to identify new page address, the following form of general employing:
Http: // domain name/directory name/Page Name? parm1=P1﹠amp; Parm2=P2﹠amp; ...
Its expression jumps to " domain name/directory name/Page Name " specified page from current page, and transmits parameters such as parm1, parm2 to this page.
After user end to server sends request, server can be according to the request of client transmission or other initial conditions such as interior perhaps system time that read according to database, according to certain algorithmic rule, in the page of acknowledged client end, generate one or more link; These links of passing through to be generated, client can jump to the page of algorithmic rule appointment.Because these links dynamically generate according to certain conditions, have certain intelligently, therefore be called as intelligent interlinking.
At present, can realize that by dynamic state server homepage (ASP), general server programming methods such as PHP, CGI the intellectuality that links generates, but in these technology, because generating the logic of link directly writes in the output page, do not accomplish separating of page format and page logic, thereby increased the complexity of page code.Simultaneously, in these technology,, make code not reuse, thereby increased programmer's burden owing to do not carry out abstract with operation and encapsulation to the association attributes of link.
Summary of the invention
In view of this, fundamental purpose of the present invention is to propose a kind of method that realizes intelligent interlinking, thereby reduces the complexity of page code, so that code can be reused.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method that realizes intelligent interlinking, in advance with link attribute and abstract to the operation of described link attribute be links category, will be to the processing logic of linked object abstract and be encapsulated as link logical process interface class, and structure comprises links category and the intelligent interlinking class that links the logical process interface class on this basis, and this method further may further comprise the steps:
A, analyze the intelligent interlinking that first page may use, and generate the intelligent interlinking object respectively for each intelligent interlinking that may use according to the intelligent interlinking class, and with each attribute initialize of intelligent interlinking object;
B, analysis first page can be provided to the data of second page, create the logical process interface object according to data of being analyzed and link logical process interface class;
The data that C, logical process interface object are provided according to first page are provided with every attribute of the intelligent interlinking object relevant with second page;
D, according to the attribute of the intelligent interlinking object relevant, the pairing link of this intelligent interlinking object of demonstration on second page with second page.
Be provided with in every attribute of the intelligent interlinking object relevant described in the step C, further comprise: the title that the intelligent interlinking object relevant with second page is set with second page;
Step D is described in the step that shows the pairing link of this intelligent interlinking object on second page to be: display Name is not empty intelligent interlinking object pairing link relevant with second page on second page.
When the number of described second page greater than 1 the time, then for each second page, execution in step B is to step D respectively.
Described link attribute comprises contact names, the page of link sensing, the interface display information of link, the parameter list of link.
Described operation to link attribute comprises: obtain arbitrary attribute operation, the operation of arbitrary attribute be set, on the page, draw the operation of link.
The described link logical process interface class that is encapsulated as is: utilize object oriented programming languages to realize being encapsulated as link logical process interface class.
Described object oriented programming languages is JAVA language, C language, C Plus Plus, BASIC, VISUAL C language or PASCAL.
From above technical scheme as can be seen, in the method for realization intelligent interlinking proposed by the invention, in advance with link attribute and abstract to the operation of link attribute be links category, will be to the processing logic of linked object abstract and be encapsulated as link logical process interface class, and structure comprises links category and the intelligent interlinking class that links the logical process interface class on this basis, and then analyze first page and create the logical process interface object, according to the attribute of the intelligent interlinking object relevant, on second page, show the pairing link of this intelligent interlinking object again with second page.This shows, in the present invention, encapsulate by attribute and corresponding logical operation link, realized separating of page logic and page format, thereby simultaneously in the purpose that reaches the demonstration of giving the parameter assignment that links, dynamic control link automatically, reduce the complexity of page code again, code can be reused, thereby greatly reduced programmer's working strength.
Description of drawings
Fig. 1 is the intelligent interlinking unit class synoptic diagram according to the embodiment of the invention.
Fig. 2 is for realizing the exemplary flow synoptic diagram of intelligent interlinking according to the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention express clearlyer, the present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Main thought of the present invention is: utilize at present popular Object Oriented method to encapsulate with the attribute of link with to the operation of these attributes, and set the logical process method to this attribute and operation; By logical process method that sets and the attribute that dynamically upgrades linked object according to the input parameter that imports into, control the demonstration of link simultaneously by the title of control linked object, when name is called sky, then do not show this link, thereby realize dynamically generating link.
For realizing foregoing invention thought, at first need to define links category; Encapsulated the base attribute of link in the links category and to the operation of these attributes, wherein base attribute has the page (page) that contact names (name), link point to, the interface display information (message) of link, the parameter list (param) of link; Operation comprised the operation of obtaining arbitrary attribute, the operation of arbitrary attribute is set, draw the operation of link on the page;
Secondly need definition link logical process interface class: encapsulated the logical method of handling link in the link logical process interface class, comprised according to coming from the attribute that input parameter that the page that input parameter is provided imports into dynamically updates linked object; Generate the linked object title according to the one or more attributes in the linked object; Title according to linked object judges whether to show the pairing link of this linked object, does not show when name is called sky.
After definition links category and the link logical process interface class, constitute the intelligent interlinking class with link logical process interface class based on links category.Fig. 1 is the intelligent interlinking class synoptic diagram according to the embodiment of the invention.Wherein, the ILinkData class is a links category, is used to deposit the data of intelligent interlinking, has wherein encapsulated all settings and has obtained the method for data; The ILinkLogic interface is the logical process interface of intelligent interlinking, is used for the intelligent interlinking class and carries out logical process; The ILink class is the intelligent interlinking class, has encapsulated ILinkDate and ILinkLogic and setting and has obtained their method.
Particularly, be example explanation definition links category, link logical process interface class and formation intelligent interlinking class with the JAVA language below.Table 1 is member variable and the constructed fuction and the member function table of ILinkData class; Table 2 is member variable and the constructed fuction and the member function table of ILinkLogic class; Table 3 is member variable and the constructed fuction and the member function table of ILink class.
Figure C20061000108200081
Figure C20061000108200091
Table 1
Figure C20061000108200101
Table 2
Figure C20061000108200102
Figure C20061000108200111
Table 3
More than in each table, though utilize the JAVA language to realize attribute and the encapsulation of operation and definition intelligent interlinking class to link, but those of ordinary skills can recognize that the present invention is not limited thereto.On the contrary, the present invention can also adopt other object oriented languages to realize similar encapsulation, such as C language, C Plus Plus, BASIC, VISUAL C language, PASCAL etc.
On the basis of links category and link logical process interface class, Fig. 2 is the exemplary method flowchart according to realization intelligent interlinking of the present invention.
As shown in Figure 2, this method may further comprise the steps:
Step 201: with link attribute and abstract and be encapsulated as links category to the operation of link attribute, will be to the processing logic of linked object abstract and be encapsulated as link logical process interface class, and structure comprises the intelligent interlinking class of links category and link logical process interface class on this basis;
Here, link attribute preferably includes contact names, the page of link sensing, the interface display information of link, the parameter list of link.The operation of link attribute is preferably included the operation of obtaining arbitrary attribute, the operation of arbitrary attribute is set, draws the operation of link on the page.
Step 202: analyze the intelligent interlinking that the page may use, and generate an intelligent interlinking object respectively for each intelligent interlinking that may use according to the intelligent interlinking class, and with each attribute initialize of intelligent interlinking object; For ease of statement, be page a to call this page in the following text;
Step 203: analyze the data that page a can be provided to other pages, for ease of statement, the number of supposing described other pages is 1, claims that described other pages are page b; Create logical process interface object, the logical operation that the data that having comprised in the logical process interface object of being created provides to page b page a are carried out according to link logical process interface class;
Step 204: the data that the logical process interface object is provided according to page a, every attribute of the intelligent interlinking object relevant with page b is set, comprise the title of intelligent interlinking object in the set attribute;
Step 205: whether the title of judging each the intelligent interlinking object relevant with page b respectively is sky, if, process ends then; If not, then execution in step 206 and end;
Step 206: show relevantly with page b on page b, and title is not the pairing link of intelligent interlinking object of sky.
In the such scheme, page a may be many pages, these pages are called page b1, page b2, page b3 or the like, data are provided respectively, the page of data then can be provided corresponding to each page a, can distinguish execution in step 203~206, for these pages are created intelligent interlinking respectively and shown the intelligent interlinking of being created respectively on these pages.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. method that realizes intelligent interlinking, it is characterized in that, in advance with link attribute and abstract to the operation of described link attribute be links category, will be to the processing logic of linked object abstract and be encapsulated as link logical process interface class, and structure comprises links category and the intelligent interlinking class that links the logical process interface class on this basis, and this method further may further comprise the steps:
A, analyze the intelligent interlinking that first page may use, and generate the intelligent interlinking object respectively for each intelligent interlinking that may use according to the intelligent interlinking class, and with each attribute initialize of intelligent interlinking object;
B, analysis first page can be provided to the data of second page, create the logical process interface object according to data of being analyzed and link logical process interface class;
The data that C, logical process interface object are provided according to first page are provided with every attribute of the intelligent interlinking object relevant with second page;
D, according to the attribute of the intelligent interlinking object relevant, the pairing link of this intelligent interlinking object of demonstration on second page with second page.
2. method according to claim 1 is characterized in that, is provided with in every attribute of the intelligent interlinking object relevant with second page described in the step C, further comprises: the title that the intelligent interlinking object relevant with second page is set;
Step D is described in the step that shows the pairing link of this intelligent interlinking object on second page to be: display Name is not empty intelligent interlinking object pairing link relevant with second page on second page.
3. method according to claim 1 and 2 is characterized in that, when the number of described second page greater than 1 the time, for each second page respectively execution in step B to step D.
4. according to the method for claim 1, it is characterized in that described link attribute comprises contact names, the page of link sensing, the interface display information of link, the parameter list of link.
5. according to the method for claim 1, it is characterized in that described operation to link attribute comprises: obtain arbitrary attribute operation, the operation of arbitrary attribute be set, on the page, draw the operation of link.
6. according to the method for claim 1, it is characterized in that the described link logical process interface class that is encapsulated as: utilize object oriented programming languages to realize being encapsulated as link logical process interface class.
7. according to the method for claim 1, it is characterized in that described object oriented programming languages is JAVA language, C language, C Plus Plus, BASIC, VISUAL C language or PASCAL.
CNB2006100010827A 2006-01-16 2006-01-16 Method for realizing intelligent interlinking Expired - Fee Related CN100403312C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100010827A CN100403312C (en) 2006-01-16 2006-01-16 Method for realizing intelligent interlinking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100010827A CN100403312C (en) 2006-01-16 2006-01-16 Method for realizing intelligent interlinking

Publications (2)

Publication Number Publication Date
CN1858736A CN1858736A (en) 2006-11-08
CN100403312C true CN100403312C (en) 2008-07-16

Family

ID=37297645

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100010827A Expired - Fee Related CN100403312C (en) 2006-01-16 2006-01-16 Method for realizing intelligent interlinking

Country Status (1)

Country Link
CN (1) CN100403312C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011130871A1 (en) * 2010-04-19 2011-10-27 Kong Xue Method and system for automatically customizing web applications in unsolicited manner
CN104168250B (en) * 2013-05-15 2018-06-15 腾讯科技(深圳)有限公司 Business Process Control method and device based on CGI frames
CN104346158B (en) * 2013-08-09 2017-11-21 华为终端(东莞)有限公司 A kind of method and user equipment for handling the cascade page

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW234088B (en) * 1993-02-02 1994-11-11 Sterling Winthrop Inc
US20020133637A1 (en) * 1995-08-14 2002-09-19 Nicolas Popp Method and apparatus for generating object-oriented world wide web pages
CN1573749A (en) * 2003-06-13 2005-02-02 微软公司 Web page rendering mechanism using external programmatic themes
US6973625B1 (en) * 2001-07-06 2005-12-06 Convergys Cmg Utah Method for creating browser-based user interface applications using a framework

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW234088B (en) * 1993-02-02 1994-11-11 Sterling Winthrop Inc
US20020133637A1 (en) * 1995-08-14 2002-09-19 Nicolas Popp Method and apparatus for generating object-oriented world wide web pages
US6973625B1 (en) * 2001-07-06 2005-12-06 Convergys Cmg Utah Method for creating browser-based user interface applications using a framework
CN1573749A (en) * 2003-06-13 2005-02-02 微软公司 Web page rendering mechanism using external programmatic themes

Also Published As

Publication number Publication date
CN1858736A (en) 2006-11-08

Similar Documents

Publication Publication Date Title
Kaasinen et al. Two approaches to bringing Internet services to WAP devices
US7269792B2 (en) System and method for generating high-function browser widgets with full addressability
JP4467205B2 (en) Postback input handling by server-side control objects
US20030050931A1 (en) System, method and computer program product for page rendering utilizing transcoding
EP1156415A2 (en) Server-side control objects for processing client-side user interface elements
JP2002215486A (en) Communication system for controller based on wsdl
JP2002041299A (en) Generation of server side code from dynamic web page contents file
CN102495735A (en) Web end UI (user interface) component application frame system
US20040268249A1 (en) Document transformation
CN110347384B (en) Method for realizing multi-style popup window based on object_C language classification
WO2016005885A2 (en) Asynchronous initialization of document object model (dom) modules
CN107545058A (en) A kind of page loading method, server and browser
US20030158894A1 (en) Multiterminal publishing system and corresponding method for using same
WO2016005884A2 (en) Javascript-based, client-side template driver system
US20040122915A1 (en) Method and system for an extensible client specific calendar application in a portal server
CN108885544B (en) Front-end page internationalized processing method, application server and computer-readable storage medium
CN100403312C (en) Method for realizing intelligent interlinking
CN101876998B (en) Method and system for editing data
CN104428763A (en) Method of implementing structured and non-structured data in xml document
CN102804177B (en) The method of self-adaptation context model framework, device are provided
CN101964742B (en) Method, system and device for using network open ability
US20220043546A1 (en) Selective server-side rendering of scripted web page interactivity elements
CN1620060B (en) Method and device for integrating browser-incompatible information into web content and for displaying the information
Sheng et al. Techniques on developing context‐aware web services
CN111680247B (en) Local calling method, device and equipment of webpage character strings and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080716

Termination date: 20180116