Programming language extensions for processing data representation language objects and related applications
First Claim
1. A method comprising:
- receiving one or more definitional statements expressed with language elements of a programming language;
determining if said one or more definitional statements include an operator with a first operand representing a data representation language value and a second operand representing a conditional expression; and
processing said operator to iteratively identify one or more elements selected from said data representation language value for which a test condition stipulated by said conditional expression is satisfied.
2 Assignments
0 Petitions
Accused Products
Abstract
A system is provided for manipulating data representation language based—objects in a native programming language environment. In one embodiment, the system is used to map data objects of the data representation language to corresponding objects within the native programming language and vice versa. In one embodiment, the system is equipped to receive a mapping definition mapping selected elements of a data representation language, such as an XML data structure, to selected objects of a programming language, such as ECMAScript. The system is further equipped to determine whether the mapping definition comprises one or more definitional statements expressed with data representation language oriented language elements of a programming language. Further, the system is equipped to process the mapping definition statements comprising data representation language oriented language elements of the programming language, in accordance with syntactical and semantic definitions of the data representation language oriented language elements.
86 Citations
45 Claims
-
1. A method comprising:
-
receiving one or more definitional statements expressed with language elements of a programming language;
determining if said one or more definitional statements include an operator with a first operand representing a data representation language value and a second operand representing a conditional expression; and
processing said operator to iteratively identify one or more elements selected from said data representation language value for which a test condition stipulated by said conditional expression is satisfied. - View Dependent Claims (2, 3, 4)
-
-
5. An article of manufacture comprising:
a storage medium having stored therein a plurality of programming instructions designed to program an apparatus, which when executed enable the apparatus to receive one or more definitional statements expressed with language elements of a programming language;
determine if said one or more definitional statements include an operator with a first operand representing a data representation language value and a second operand representing a conditional expression; and
process said operator to iteratively identify one or more elements selected from said data representation language value for which a test condition stipulated by said conditional expression is satisfied. - View Dependent Claims (6, 7, 8)
-
9. A method comprising:
-
receiving one or more definitional statements expressed with language elements of a programming language;
determining whether the one or more definitional statements comprises an expression representing a data representation language value and including one or more named child elements embedded within an unnamed parent element; and
processing the expression including the unnamed parent element as an XML document fragment, if it is determined that the one or more definitional statements comprises an expression including one or more named child elements embedded within an unnamed parent element. - View Dependent Claims (10, 11, 12)
-
-
13. An article of manufacture comprising:
a storage medium having stored therein a plurality of programming instructions designed to program an apparatus, which when executed enable the apparatus to;
receive one or more definitional statements expressed with language elements of a programming language;
determine whether the one or more definitional statements comprises an expression representing a data representation language value and including one or more named child elements embedded within an unnamed parent element; and
process the expression including the unnamed parent element as an XML document fragment if it is determined that the one or more definitional statements comprises an expression including one or more named child elements embedded within an unnamed parent element. - View Dependent Claims (14, 15, 16)
-
17. A method comprising:
-
receiving one or more definitional statements expressed with language elements of a programming language;
determining whether the one or more definitional statements includes a statement designed to import a predefined data type description describing a class of objects associated with said data representation language;
determining whether the one or more definitional statements associate one or more data representation language values with said data type description;
determining whether the one or more definitional statements include an operator, wherein said one or more data representation language values are operands of said operator;
determining whether said operator will result in one or more of said data representation language values that do not conform with constraints specified by said data type description; and
generating one or more error messages identifying said operator as generating results that do not conform with constraints specified by said data type. - View Dependent Claims (18, 19, 20, 21)
-
-
22. An article of manufacture comprising:
a storage medium having stored therein a plurality of programming instructions designed to program an apparatus, which when executed enable the apparatus to;
receive one or more definitional statements expressed with language elements of a programming language;
determine whether the one or more definitional statements includes a statement designed to import a predefined data type description describing a class of objects associated with said data representation language;
determine whether the one or more definitional statements associate one or more data representation language values with said data type description;
determine whether the one or more definitional statements include an operator, wherein said one or more data representation language values are operands of said operator;
determine whether said operator will result in one or more of said data representation language values that do not conform with constraints specified by said data type description; and
generate one or more error messages identifying said operator as generating results that do not conform with constraints specified by said data type. - View Dependent Claims (23, 24, 25, 26)
-
27. A method comprising:
-
receiving one or more definitional statements expressed with language elements of a programming language;
determining if said one or more definitional statements include an expression representing a data representation language value;
determining whether the one or more definitional statements comprises an expression including an operator having a left operand and a right operand, wherein said left operand comprises one of an IDREF and IDREFS attribute; and
processing the expression to identify zero or more elements containing an id attribute whose value is equivalent to that of said IDREF or IDREFs attributes. - View Dependent Claims (28, 29, 30)
-
-
31. An article of manufacture comprising:
a storage medium having stored therein a plurality of programming instructions designed to program an apparatus, which when executed enable the apparatus to;
receive one or more definitional statements expressed with language elements of a programming language;
determine if said one or more definitional statements include an expression representing a data representation language value;
determine whether the one or more definitional statements comprises an expression including a first operator having a left operand and a right operand, wherein said left operand comprises one of an IDREF and IDREFS attribute; and
process the expression to identify one or more elements containing an id attribute whose value is equivalent to that of said IDREF or IDREFS attributes. - View Dependent Claims (32, 33, 34)
-
35. A method comprising:
-
receiving one or more definitional statements expressed with language elements of a first programming language;
determining whether the one or more definitional statements include a statement designed to indicate the logic of a function is expressed using a second programming language from within said first programming language; and
processing the one or more definitional statements to pass at least a name and body of said function to be evaluated in association with said second programming language. - View Dependent Claims (36, 37)
-
-
38. An article of manufacture comprising:
a storage medium having stored therein a plurality of programming instructions designed to program an apparatus, which when executed enable the apparatus to;
receive one or more definitional statements expressed with language elements of a first programming language;
determine whether the one or more definitional statements include a statement designed to indicate the logic of a function is expressed using a second programming language from within said first programming language; and
process the one or more definitional statements to pass at least the a name and body of said function to be evaluated in association with said second programming language. - View Dependent Claims (39, 40)
-
41. A method comprising:
-
receiving a mapping definition mapping between selected elements of an XML data structure and one or more ECMAScript objects;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of said one or more ECMAScript objects;
determining whether the one or more definitional statements includes an operator with a first operand representing a data representation language value and a second operand representing a conditional expression, if the mapping definition does comprise one or more definitional statements expressed with language elements of said one or more ECMAScript objects; and
processing said operator to iteratively identify one or more elements selected from said data representation language value for which a test condition stipulated by the conditional expression is satisfied.
-
-
42. A method comprising:
-
receiving a mapping definition mapping between selected elements of an XML data structure and one or more ECMAScript objects;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of said one or more ECMAScript objects;
determining whether the one or more definitional statements comprises an expression including one or more elements embedded within an unnamed parent element, if the mapping definition comprises one or more definitional statements expressed with language elements of said one or more ECMAScript objects; and
processing the expression including the unnamed parent element as an XML document fragment if it is determined that the one or more definitional statements comprises an expression including one or more elements embedded within an unnamed parent element.
-
-
43. A method comprising:
-
receiving a mapping definition mapping between selected elements of an XML data structure and one or more ECMAScript objects;
determining whether the mapping definition comprises one or more definitional statements expressed with data representation oriented language elements of said one or more ECMAScript objects;
determining whether the one or more definitional statements includes a statement designed to import a predefined data type description describing a class of objects associated with said data representation language, if the mapping definition does in fact comprise one or more definitional statements expressed with language elements of said one or more ECMAScript objects;
determining whether the one or more definitional statements associate one or more data representation language values with said data type description;
determining whether the one or more definitional statements include an operator, wherein said one or more data representation language values are operands of said operator;
determining whether said operator will result in one or more of said data representation language values that do not conform with constraints specified by said data type description; and
generating one or more error messages identifying said operator as generating results that do not conform with constraints specified by said data type.
-
-
44. A method comprising:
-
receiving a mapping definition mapping between selected elements of an XML data structure and selected objects of one or more ECMAScript objects;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of said one or more ECMAScript objects;
determining whether the one or more definitional statements comprises an expression including a operator having a left operand and a right operand, wherein said left operand comprises one of an IDREF and IDREFS attribute, if the mapping definition does comprise one or more definitional statements expressed with language elements of said one or more ECMAScript objects; and
processing the expression to identify zero or more of said elements containing an id attribute whose value is equivalent to that of said IDREF and IDREFS attributes.
-
-
45. A method comprising:
-
receiving a mapping definition mapping between selected elements of an XML data structure and one or more ECMAScript objects;
determining whether the mapping definition comprises one or more definitional statements expressed with data representation oriented language elements of said one or more ECMAScript objects;
determining whether the one or more definitional statements includes a statement designed to indicate the logic of a function is expressed using a programming language from within said one or more ECMAScript objects, if the mapping definition does in fact comprise one or more definitional statements expressed with language elements of said one or more ECMAScript objects; and
processing the one or more definitional statements to pass at least a name and body of said function to be evaluated in association with said one or more ECMAScript objects.
-
Specification