Robust modification of persistent objects while preserving formatting and other attributes
First Claim
1. A method for preserving attributes of a persistent object stream in a file that includes at least one object when the file is opened in a different environment than that in which the file was originally created, comprising the steps of:
- (a) creating a copy of attributes associated with each object when opening the file in the different environment, said copy including attributes that are unknown to said different environment;
(b) ignoring any of said attributes associated with each object that are unknown to the different environment; and
(c) when writing the file, merging known attributes associated with each object that are changed in the different environment, with the copy of the attributes associated with the object, including any attributes that are unknown.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and system for preserving attributes of objects within a file that was created in a different environment from that in which the file is opened, enabling the attributes to be maintained after the file is saved. For example, an HTML document created with a text editor includes elements such as plain text and HTML tags, with which attributes such as whitespace, line breaks, and indent level are associated. When such a document is opened in an HTML editor implementing the present invention, the attributes of these elements are preserved. Even when changes to these elements occur, to the extent possible, the method provides for determining attributes of related elements that were in the document as originally opened in the HTML editor, so that these attributes can be applied to corresponding objects that are added to the document or in regard to changes that are made by the user. The preservation of persistent object attributes is also applicable to other types of software applications such as language development systems and word processing programs. This invention thus insures, for example, that functions developed in newer versions of a program, although not recognized in an earlier version, persist when a file is opened in the earlier version and then saved.
-
Citations
27 Claims
-
1. A method for preserving attributes of a persistent object stream in a file that includes at least one object when the file is opened in a different environment than that in which the file was originally created, comprising the steps of:
-
(a) creating a copy of attributes associated with each object when opening the file in the different environment, said copy including attributes that are unknown to said different environment;
(b) ignoring any of said attributes associated with each object that are unknown to the different environment; and
(c) when writing the file, merging known attributes associated with each object that are changed in the different environment, with the copy of the attributes associated with the object, including any attributes that are unknown. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method for preserving attributes of objects in a file when the file is opened in a different environment than that in which the file was originally created, comprising the steps of:
-
(a) temporarily storing attributes of the objects included in the file when the file is opened in the different environment, including attributes of the objects in the file that are not recognized in the different environment;
(b) enabling changes to be made to the file, including adding new objects to the file that have attributes;
(c) merging the attributes of any new objects added by the changes made to the file with the attributes of the objects that were stored, to produce a revised file; and
(d) writing the revised file, said revised file including the attributes of the objects included in the file when the file was created and attributes of any new objects added in accord with any changes made to the file, said file preserving the attributes of the objects remaining in the revised file that were originally created in the file. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A system for preserving attributes of a persistent object stream in a file that includes at least one object when the file is opened in a different environment than that in which the file was originally created, comprising:
-
(a) a memory adapted to store data and machine instructions;
(b) a processor coupled to the memory, said processor controlling storage of data in the memory and executing the machine instructions to implement a plurality of functions;
(c) a display on which graphics and text are presented to a user in accord with the machine instructions, said display being controlled by the processor; and
(d) a user input device adapted to enable the user to input data and to control the processor, said plurality of functions implemented by the processor including;
(i) creating a temporary copy of attributes associated with each object in the memory when reading the file in the different environment, said copy including attributes that are unknown to said different environment;
(ii) ignoring any of said attributes associated with each object that are unknown to the different environment when the file is opened;
(iii) enabling the user to enter changes to the file with the user input device after the file has been opened; and
(iv) merging known attributes associated with each object with the copy of the attributes associated with the object, including any attributes that are unknown, when writing the file to the memory. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27)
-
Specification