Object-oriented processing of markup
First Claim
1. A computer-implemented method, executed by a central processing unit (CPU), for application-specific object-oriented processing of a markup by a model instance associated with a class Model and a plurality of element instances, each of said plurality of element instances associated with a class Element, said class Model is configured to process instances of said class Element, comprising the steps of:
- responding to a construct-element request, said construct-element request is a member function of said class Model, dispatched to said model instance, in which a tag name is provided, said tag name corresponding to a tagged element from said markup, constructing a new element instance, one of said plurality of element instances, according to application-specific requirements as determined according to said tag name, performing application-specific processing as required, and returning said constructed new element instance;
responding to an accept-attribute request, said accept-attribute request is a member function of said class Element, dispatched to one of said plurality of element instances, in which an attribute is provided, said attribute corresponding to a markup attribute of a tagged element from said markup, and performing application-specific processing as required;
responding to an accept-element request, said accept-element request is a member function of said class Element, dispatched to one of said plurality of element instances, in which a child element instances, one of said plurality of element instances, is provided, and performing application-specific processing as required; and
responding to an accept-root-element request, said accept-root-element request is a member function of said class Model, dispatched to said model instance, in which a root element instance, one of said plurality of element instances, is provided, and performing application-specific processing as required.
0 Assignments
0 Petitions
Accused Products
Abstract
An application-specific client for object-oriented processing of markup includes a model object and a plurality of element objects. The model object is configured to respond to client requests including construct-element, accept-root-element, and accept-root-text. The element objects are configured to respond to client requests including accept-attribute, accept-element, and accept-text. Responses to requests contain application-specific processing as necessary. A driver generates client requests in response to processing of XML markup. An RSS client processes markup describing syndicated web content to HTML markup.
-
Citations
15 Claims
-
1. A computer-implemented method, executed by a central processing unit (CPU), for application-specific object-oriented processing of a markup by a model instance associated with a class Model and a plurality of element instances, each of said plurality of element instances associated with a class Element, said class Model is configured to process instances of said class Element, comprising the steps of:
-
responding to a construct-element request, said construct-element request is a member function of said class Model, dispatched to said model instance, in which a tag name is provided, said tag name corresponding to a tagged element from said markup, constructing a new element instance, one of said plurality of element instances, according to application-specific requirements as determined according to said tag name, performing application-specific processing as required, and returning said constructed new element instance; responding to an accept-attribute request, said accept-attribute request is a member function of said class Element, dispatched to one of said plurality of element instances, in which an attribute is provided, said attribute corresponding to a markup attribute of a tagged element from said markup, and performing application-specific processing as required; responding to an accept-element request, said accept-element request is a member function of said class Element, dispatched to one of said plurality of element instances, in which a child element instances, one of said plurality of element instances, is provided, and performing application-specific processing as required; and responding to an accept-root-element request, said accept-root-element request is a member function of said class Model, dispatched to said model instance, in which a root element instance, one of said plurality of element instances, is provided, and performing application-specific processing as required. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer-implemented method, executed by a central processing unit (CPU), for processing markup to dispatch object-oriented is to a model instance associated with a Model class, and a plurality of element instances, each of said element instances associated with an Element class, said class Model is configured to process instances of said class Element, comprising the steps of:
-
detecting a tagged element of said markup, said tagged element including a tag name, dispatching to said model instance a construct-element request, said construct-element request is a member function of said Model class, in which said tag name is provided, and from which a newly-constructed element instance is returned, and associating said newly-constructed element instance with said tagged element of said markup; detecting an attribute of another tagged element of said markup, determining an associated element instance, one of said plurality of element instances, said associated element instance previously associated with said another tagged element, and dispatching to said associated element instance an accept-attribute request, said accept-attribute request is a member function of said Element class, in which said markup attribute is provided; detecting a child tagged element of said markup and a corresponding parent tagged element of said markup, determining a child element instance, one of said plurality of element instances, said child element instance previously associated with said child tagged element, determining a parent element instance, one of said plurality of element instances, said parent element instance previously associated with said parent tagged element, dispatching to said parent tagged element an accept-element request, said accept-attribute request is a member function of said Element class, in which said child element instance is provided; and detecting a root-level tagged element of said markup, determining an associated element instance, one of said plurality of element instances, said associated element instance previously associated with said tagged element, and dispatching to said model instance an accept-root-element request, said accept-root-element is a member function of said Model class, in which said associated element instance is provided. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A non-transitory computer-readable medium encoded with a computer program for application-specific object-oriented processing of a markup, said computer program comprising:
-
a model instance associated with a class Model; a plurality of element instances, each of said plurality of element instances associated with a class Element, said class Model is configured to process instances of said class Element; wherein said model instance is configured to respond to a construct-element request, said construct-element request is a member function of said class Model, in which a tag name is provided, said tag name corresponding to a tagged element from said markup, to construct a new element instance, one of said plurality of element instances, according to application-specific requirements as determined according to said tag name, to perform application-specific processing as required, and to return said constructed new element instance; each of said plurality of element instances is configured to respond to an accept-attribute request, said accept-attribute request is a member function of said class Element, in which an attribute is provided, said attribute corresponding to a markup attribute of a tagged element from said markup, and to perform application-specific processing as required; each of said plurality of element instances is further configured to respond to an accept-element request, said accept-element request is a member function of said class Element, in which a child element instance, one of said plurality of element instances, is provided, and to perform application-specific processing as required; and said model instance is further configured to respond to an accept-root-element request, said accept-root-element request is a member function of said class Model, in which a root element instance, one of said plurality of element instances, is provided, and to perform application-specific processing as required. - View Dependent Claims (12, 13, 14, 15)
-
Specification