Declarative mechanism for defining a hierarchy of objects
First Claim
1. A method to determine a hierarchy of common language runtime (CLR) objects from an extensible language markup file having a root tag for creating a document and implemented at least in part by a machine 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 (a) one of a property and an event associated with the class and (b) one of another property and another event associated with another class, wherein the (a) one of a property and an event associated with the class and the (b) one of another property and another event associated with another class are CLR concepts.
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.
28 Citations
62 Claims
-
1. A method to determine a hierarchy of common language runtime (CLR) objects from an extensible language markup file having a root tag for creating a document and implemented at least in part by a machine 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 (a) one of a property and an event associated with the class and (b) one of another property and another event associated with another class, wherein the (a) one of a property and an event associated with the class and the (b) one of another property and another event associated with another class are CLR concepts. - 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 computer-executable instructions for determining a hierarchy of common language runtime (CLR) 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 (a) one of a property and an event associated with the class and (b) one of another property and another event associated with another class, wherein the (a) one of a property and an event associated with the class and the (b) one of another property and another event associated with another class are CLR concepts. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37)
-
-
38. A mechanism for determining a hierarchy of common language runtime (CLR) objects from an extensible language markup file having a root tag comprising:
-
means for 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; means for mapping a name of the tag to a class in the at least one namespace for each tag in the markup language file; and means for mapping the attribute to (a) one of a property and an event associated with the class and (b) one of another property and another event associated with another class if the tag has an attribute, wherein the (a) one of a property and an event associated with the class and the (b) one of another property and another event associated with another class are CLR concepts. - View Dependent Claims (39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55)
-
-
56. An apparatus to declaratively define a common language runtime (CLR) object comprising:
-
means for 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; means for setting a tag name to a class name in the at least one namespace; and means for setting an attribute of the tag to a property name if the object has a property setting, wherein the means for mapping an uniform resource locator, means for setting a tag name to a class name and means for setting an attribute of the tag to a property name if the object has a property setting are used to create a document, wherein the class name and the property name are CLR concepts. - View Dependent Claims (57, 58, 59, 60, 61, 62)
-
Specification