Declarative mechanism for defining a hierarchy of objects
First Claim
1. A method to determine a hierarchy of objects from an extensible language markup file having a root tag comprising the steps of:
- determining a namespace definition file from an xmlns attribute in one of the root tag and a mapping tag, the namespace definition file having a list comprising at least one assembly and at least one namespace;
for each tag in the markup language file;
mapping a name of the tag to a class in the at least one namespace;
if the tag has an attribute;
mapping the attribute to one of one of a property and an event associated with the class and one of another property and another event associated with another class.
2 Assignments
0 Petitions
Accused Products
Abstract
Described is a method and data structure that enables an object to be specified declaratively within a markup document. The markup document may be XML-based. In accordance with the invention, the object is written based on a mapping. The mapping includes a URL attribute for defining a location for a definition file having assemblies and namespaces where classes are specified. The class name is mapped to the markup document as a tag name. Properties and events of a class are mapped to attributes of the tag associated with the class. The method further includes a method to parse the markup language to create a hierarchy of objects. Attributes that do not map directly to a class are defined with a definition tag. The definition tag is also used to add programming code to a page.
-
Citations
49 Claims
-
1. A method to determine a hierarchy of objects from an extensible language markup file having a root tag comprising the steps of:
-
determining a namespace definition file from an xmlns attribute in one of the root tag and a mapping tag, the namespace definition file having a list comprising at least one assembly and at least one namespace;
for each tag in the markup language file;
mapping a name of the tag to a class in the at least one namespace;
if the tag has an attribute;
mapping the attribute to one of one of a property and an event associated with the class and one of another property and another event associated with another class. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A computer-readable medium having stored thereon a markup language data structure, comprising:
-
a first field containing data mapped to a programming language class; and
a second data field containing data mapped to one of a property and an event in the class. - View Dependent Claims (21, 22, 23, 24)
-
-
25. A computer-readable medium having computer-executable instructions for determining a hierarchy of objects from an extensible language markup file having a root tag, the computer-executable instructions for performing the steps comprising:
-
determining a namespace definition file from an xmlns attribute in one of the root tag and a mapping tag, the namespace definition file having a list comprising at least one assembly and at least one namespace;
for each tag in the markup language file;
mapping a name of the tag to a class in the at least one namespace;
if the tag has an attribute;
mapping the attribute to one of one of a property and an event associated with the class and one of another property and another event associated with another class. - View Dependent Claims (26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42)
-
-
43. A method to declaratively define an object comprising the steps of:
-
mapping an uniform resource locator (URL) for a location of a definition file to an xmlns attribute in one of a root tag and a mapping tag, the definition file having at least one namespace;
setting a tag name to a class name in the at least one namespace;
setting an attribute of the tag to a property name if the object has a property setting. - View Dependent Claims (44, 45, 46, 47, 48, 49)
-
Specification