Method and system for converting between structured language elements and objects embeddable in a document
First Claim
1. A computer-implemented method for converting a structured language element representing an element to be rendered within a document to a data structure representing a software object of a software object class having a method for setting properties of the software object based on a passed structured language element, the method comprising:
- reading the structured language element representing the element to be rendered within the document;
determining a class identifier associated with the structured language element representing the element to be rendered within the document and indicative of the software object class having a method for setting properties of the software object based on a passed structured language element; and
without instantiating an instance of the represented software object of the software object class, converting the structured language element representing the element to be rendered within the document to the data structure representing the software object of the software object class having a method for setting properties of the software object based on a passed structured language element, the data structure containing the persistent state of the represented object of the software object class, wherein the data structure comprises the class identifier associated with the structure language element representing the element to be rendered within the document and indicative of the software object class having a method for setting properties of the software object based on a passed structured language element.
2 Assignments
0 Petitions
Accused Products
Abstract
A converter converts between structured language elements and objects embeddable in the native format of a document editor. A data structure representing the embeddable object is created without instantiating an instance of the object and includes the associated structured language element. Subsequently, the structured language element is used to instantiate an object and set its properties. Any portion of the structured language element not recognized during the conversion process is retained by the embeddable object. If conversion back to a structured language element is subsequently required, the conversion process is facilitated by the presence of the original structured language element within the embeddable object as well as the retained portion of the structured language element not recognized.
120 Citations
17 Claims
-
1. A computer-implemented method for converting a structured language element representing an element to be rendered within a document to a data structure representing a software object of a software object class having a method for setting properties of the software object based on a passed structured language element, the method comprising:
-
reading the structured language element representing the element to be rendered within the document;
determining a class identifier associated with the structured language element representing the element to be rendered within the document and indicative of the software object class having a method for setting properties of the software object based on a passed structured language element; and
without instantiating an instance of the represented software object of the software object class, converting the structured language element representing the element to be rendered within the document to the data structure representing the software object of the software object class having a method for setting properties of the software object based on a passed structured language element, the data structure containing the persistent state of the represented object of the software object class, wherein the data structure comprises the class identifier associated with the structure language element representing the element to be rendered within the document and indicative of the software object class having a method for setting properties of the software object based on a passed structured language element. - View Dependent Claims (2, 3, 4, 5, 6)
finding a class identifier associated with the tag name of the structured language element, wherein the class identifier identifies a software object class providing the characteristics of the visible element indicated by the tag name.
-
-
3. The method of claim 2 wherein the class identifier identifies a software object class embeddable and editable in a converted document edited by a document editor.
-
4. The method of claim 1 wherein the data structure further comprises the structured language element.
-
5. The method of claim 1 wherein the data structure comprises the structured language element, the method further comprising:
-
instantiating an instance of an object identified by the class identifier;
locating the structured language element in the data structure; and
setting the properties of the instance of the object by passing the located structured language element to the method for setting properties of the software object based on the passed structured language element.
-
-
6. The method of claim 5 wherein the structured language element comprises and HTML attribute keyword and an associated HTML attribute value and the setting comprises:
-
matching the HTML attribute keyword with an object property identifier identifying a property of the object;
setting the property identified by the object property identifier to a value according to the associated HTML attribute value.
-
-
7. A method for converting a structured language element to a data structure representing a software object, the method comprising:
-
reading the structured language element;
converting the structured language element to the data structure representing the software object without instantiating an instance of the represented software object, the represented software object being of a software object class having a method defined to set properties of the represented software object based on the data structure representing the software object. - View Dependent Claims (8)
selecting a structured language tag component of the structured language element; and
finding the structured language tag component in an entry of a data structure associating the structured language tag component with the class identifier.
-
-
9. A method of converting a software object to a structured language element, wherein the software object represents an original structured language element comprising a portion of structured language not recognized when creating the software object, and the software object comprises the portion of structured language not recognized when creating the software object, the method comprising:
- reading the portion of structured language not recognized when creating the software object; and
reconstituting the original structured language element from the software object to produce the converted structured language element, including in the converted structured language element the portion of structured language not recognized when creating the software object. - View Dependent Claims (10)
- reading the portion of structured language not recognized when creating the software object; and
-
11. A method for converting a data structure representing a represented software object to a structured language element, wherein the data structure was created without creating an instance of the represented software object and comprises text of the structured language element, the method comprising:
reconstituting the structured language element of the represented software object by reading the text of the structured language element stored in the data structure without instantiating the represented software object.
-
12. A method for converting a software object to a structured language element, the method comprising:
-
providing a data structure to a software routine extrinsic to the software object, the data structure with entries associating a structured language attribute keyword with a property identifier, the software routine performing the following for a plurality of entries in the data structure;
reading a has-been-set value in the software object indicative of whether a property value of the software object identified by the property identifier in the entry has been set; and
if the has-been-set value is indicative of having set the property value, producing a portion of the structured language element comprising the structured language attribute keyword in the entry and the property value identified by the property identifier. - View Dependent Claims (13)
-
-
14. A converter for converting a structured language element to an embeddable data structure representing a represented object, the converter comprising:
-
a parser operative for selecting a tag component of the structured language element;
a data structure with an entry, the entry associating a structured language tag component with an object class identifier;
a table look-up logic operative for selecting a class identifier associated in the data structure with the selected tag component; and
a structured language element data structure logic operative for creating a data structure comprising the structured language element and the class identifier to generate an embeddable representation of the represented object without instantiating an instance of the represented object.
-
-
15. A computer-implemented method for converting an HTML element representing an HTML form user interface feature to a data structure representing a software object for depicting a form user interface feature corresponding to the HTML form user interface feature in a document editor, the represented software object being of a software object class having a method for setting properties of the represented software object when supplied with an HTML element, the method comprising:
-
reading the HTML element representing the HTML form user interface feature;
determining a class identifier associated with the HTML form user interface feature and indicative of the software object class having a method for setting properties of the represented software object when supplied with an HTML element;
without instantiating an instance of the represented software object of the software object class, converting the HTML element to the data structure representing the software object for depicting the form user interface feature corresponding to the HTML form user interface feature in the document editor, the data structure comprising the persistent state of the represented object of the software object class, wherein the data structure comprises the class identifier associated with the HTML form user interface feature and indicative of the software object class having a method for setting properties of the represented software object when supplied with an HTML element. - View Dependent Claims (16, 17)
the HTML element representing an HTML form user interface feature comprises a tag name; - and
the determining determines the class identifier by determining the class identifier is associated with the tag name.
-
Specification