Programming language extensions for processing XML objects and related applications
First Claim
1. A method comprising:
- receiving a mapping definition mapping selected elements of a data representation language to selected objects of one or more programming languages;
determining whether the mapping definition comprises a mapping definition section having one or more definitional statements expressed with data representation oriented language elements of a script language that includes data representation oriented language elements; and
processing the mapping definition, including processing the mapping definition having mapping definition statements comprising data representation language elements of said script language in accordance with syntactical and semantic definitions of said data representation language elements.
2 Assignments
0 Petitions
Accused Products
Abstract
An apparatus is provided to map data objects of a data representation language to corresponding objects within a programming language and vice versa. In one embodiment, the apparatus is equipped to receive a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes. The apparatus is further equipped to determine whether the mapping definition comprises one or more definitional statements expressed with XML oriented language elements of a script language. Further, the apparatus is equipped to process the mapping definition statements comprising XML oriented language elements of the script language, in accordance with syntactical and semantic definitions of the XML oriented language elements.
-
Citations
51 Claims
-
1. A method comprising:
-
receiving a mapping definition mapping selected elements of a data representation language to selected objects of one or more programming languages;
determining whether the mapping definition comprises a mapping definition section having one or more definitional statements expressed with data representation oriented language elements of a script language that includes data representation oriented language elements; and
processing the mapping definition, including processing the mapping definition having mapping definition statements comprising data representation language elements of said script language in accordance with syntactical and semantic definitions of said data representation language elements.
-
-
2. An apparatus comprising:
-
a storage medium having stored therein a plurality of programming instructions, which when executed enables the apparatus to;
receive a mapping definition mapping selected elements of a data representation language to selected objects of one or more programming languages, determine whether the mapping definition comprises a mapping definition section having one or more definitional statements expressed with data representation oriented language elements of a script language that includes data representation oriented language elements, and process the mapping definition, including processing the mapping definition having mapping definition statements comprising data representation oriented language elements of said script language in accordance with syntactical and semantic definitions of said data representation oriented language elements; and
one or more processors coupled to the storage medium to execute the programming instructions.
-
-
3. A method comprising:
-
receiving a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language;
determining whether the one or more definitional statements comprise an assignment statement comprising a variable having an XML data type, and a data string to be assigned to the variable, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language; and
processing the assignment statement, including processing the data string as an XML object, if it is determined that the one or more definitional statements comprise an assignment statement comprising a variable having an XML data type. - View Dependent Claims (4, 5, 6, 7, 8, 9)
-
-
10. An apparatus comprising:
-
a storage medium having stored therein a plurality of programming instructions, which when executed enables the apparatus to;
receive a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes, determine whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language, determine whether the one or more definitional statements comprise an assignment statement comprising a variable having an XML data type and a data string to be assigned to the variable, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language, and process the assignment statement, including processing the data string as an XML object, if it is determined that the one or more definitional statements comprise an assignment statement comprising a variable having an XML data type; and
one or more processors coupled to the storage medium to execute the programming instructions. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
17. A method comprising:
-
receiving a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language;
determining whether the one or more definitional statements comprise an expression including an embedded expression, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language;
dynamically resolving the value of the embedded expression, if the one or more definitional statements comprise an expression including an embedded expression; and
processing the expression, including the resolved embedded function, as an XML data type. - View Dependent Claims (18, 19)
-
-
20. An apparatus comprising:
-
a storage medium having stored therein a plurality of programming instructions, which when executed enables the apparatus to;
receive a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes, determine whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language, determine whether the one or more definitional statements comprise an expression including an embedded expression, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language, dynamically resolve the value of the embedded expression, if the one or more definitional statements comprise an expression including an embedded expression, and process the expression, including the resolved embedded function, as an XML data type; and
one or more processors coupled to the storage medium to execute the programming instructions. - View Dependent Claims (21, 22)
-
-
23. A method comprising:
-
receiving a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language;
determining whether the one or more definitional statements comprise an expression including first and second elements of the XML data structure separated by a predefined navigational operator, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language; and
processing the expression and returning one or more child elements of said first element having a name equivalent to that of said second element. - View Dependent Claims (24, 25, 26, 27)
retrieving content associated with the one or more child elements and using at least part of said content in association with a second expression.
-
-
26. The method of claim 23, further comprising:
-
determining if any of said one or more child elements contain a second set of one or more child elements; and
returning the value associated with the second set of one or more child elements if it is determined that at least one of said one or more child elements contains a second set of one or more child elements.
-
-
27. The method of claim 23, wherein said expression further comprises a literal value, and wherein said accessed element is assigned the value.
-
28. An apparatus comprising:
-
a storage medium having stored therein a plurality of programming instructions, which when executed enables the apparatus to;
receive a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes, determine whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language, determine whether the one or more definitional statements comprise an expression including first and second elements of the XML data structure separated by a predefined navigational operator, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language, and process the expression to access said second element of the XML data structure and return one or more child elements of said first element having a name equivalent to that of said second element; and
one or more processors coupled to the storage medium to execute the programming instructions. - View Dependent Claims (29, 30, 31, 32)
retrieve content associated with the one or more child elements and utilize at least part of said content in association with a second expression.
-
-
31. The apparatus of claim 28, further comprising instructions, which when executed, enable the apparatus to:
-
determine if any of said one or more child elements contain a second set of one or more child elements; and
return the value associated with the second set of one or more child elements if it is determined that at least one of said one or more child elements contains a second set of one or more child elements.
-
-
32. The apparatus of claim 28, wherein said expression further comprises a literal value, and wherein said accessed element is assigned the value.
-
33. A method comprising:
-
receiving a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language;
determining whether the one or more definitional statements comprise an expression including at least one element of the XML data structure associated with an attribute operator, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language; and
accessing the value associated with an attribute identified by the attribute operator, if one or more definitional statements comprise an expression including at least one element of the XML data structure associated with the attribute operator. - View Dependent Claims (34, 35, 36)
-
-
37. An apparatus comprising:
-
a storage medium having stored therein a plurality of programming instructions, which when executed enables the apparatus to;
receive a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes, determine whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language, determine whether the one or more definitional statements comprise an expression including at least one element of the XML data structure associated with an attribute operator, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language, and accessing the value associated with the attribute if one or more definitional statements comprise an expression including at least one element of the XML data structure associated with the attribute operator; and
one or more processors coupled to the storage medium to execute the programming instructions. - View Dependent Claims (38)
-
-
39. A method comprising:
-
receiving a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language;
determining whether the one or more definitional statements comprise an expression including first and second elements of the XML data structure separated by a predefined navigational operator, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language; and
processing the expression to access said second element of the XML data structure and all descendants of said second element. - View Dependent Claims (40)
-
-
41. An apparatus comprising:
-
a storage medium having stored therein a plurality of programming instructions, which when executed enables the apparatus to;
receive a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes, determine whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language, determine whether the one or more definitional statements comprise an expression including first and second elements of the XML data structure separated by a predefined navigational operator, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language, and process the expression to access said second element of the XML data structure and all descendants of said second element; and
one or more processors coupled to the storage medium to execute the programming instructions. - View Dependent Claims (42)
-
-
43. A method comprising:
-
receiving a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language;
determining whether the one or more definitional statements comprise an expression including an indexing operator defining a left operand and an index value, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language; and
processing the expression to access a single element of the XML data structure having an ordinal position equivalent to the index value. - View Dependent Claims (44)
-
-
45. An apparatus comprising:
-
a storage medium having stored therein a plurality of programming instructions, which when executed enables the apparatus to;
receive a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes, determine whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language, determine whether the one or more definitional statements comprise an expression including an indexing operator defining a left operand and an index value, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language, and process the expression to access a single element of the XML data structure having an ordinal position equivalent to the index value; and
one or more processors coupled to the storage medium to execute the programming instructions. - View Dependent Claims (46)
-
-
47. A method comprising:
-
receiving a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes;
determining whether the mapping definition comprises a mapping definition section having one or more definitional statements expressed with XML oriented language elements of a script language that includes XML oriented language elements; and
processing the mapping definition, including processing the mapping definition having mapping definition statements comprising XML oriented language elements of said script language in accordance with syntactical and semantic definitions of said XML oriented language elements.
-
-
48. An apparatus comprising:
-
a storage medium having stored therein a plurality of programming instructions, which when executed enables the apparatus to;
receive a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes, determine whether the mapping definition comprises a mapping definition section having one or more definitional statements expressed with XML oriented language elements of a script language that includes XML oriented language elements, and process the mapping definition, including processing the mapping definition having mapping definition statements comprising XML oriented language elements of said script language in accordance with syntactical and semantic definitions of said XML oriented language elements; and
one or more processors coupled to the storage medium to execute the programming instructions.
-
-
49. A method comprising:
-
receiving a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language;
determining whether the one or more definitional statements comprises an expression comprising a literal value having a predefined unary operator, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language; and
processing the expression as an XML object, if it is determined that the one or more definitional statements comprises an expression comprising a literal value having the predefined unary operator. - View Dependent Claims (50)
-
-
51. A method comprising:
-
receiving a mapping definition mapping selected elements of an XML data structure to selected objects of one or more Java classes;
determining whether the mapping definition comprises one or more definitional statements expressed with language elements of a script language;
determining whether the one or more definitional statements comprises an expression comprising an iterative operator, if the mapping definition comprises one or more definitional statements expressed with language elements of a script language; and
processing the expression as an XML object to iteratively access a list of one or more elements identified by the iterative operator, if it is determined that the one or more definitional statements comprises an expression comprising an iterative operator.
-
Specification