The name of the XMeta engine comes from a special model, which can be used as the first model in the system, and any other model in the system can theoretically pass it directly or indirectly. Edited it out, hence the name metamodel.
In the dynamic model, the object is represented by the tree-structured data, for example, it can be represented by XML, then an object can be represented as XML.
When using XML to represent objects, we define the structure of the object in the following way.
For example, the following XML.
<Person name="Zhangsan" age="40"> <Child name="Xiaoming" age="10"/> </Person>
The structure of this XML is as follows.
<thing name="Person"> <attribute name="name"/> <attribute name="age"/> <thing name="Child"> <attribute name="name"/> <attribute name="age"/> </thing> </thing>
Through the above definition of XML structure, then we can calculate the structure of any XML, we can find that the calculated result is still XML, then we can iterate the calculation, and finally find that we can iterate to an XML, this XML is as follows.
<thing name="thing""> <attribute name="name"/> <thing name="attribute"> <attribute name="name"/> </thing> <thing name="thing"> <attribute name="name/> <thing name="attribute"> <attribute name="name"/> </thing> <thing name="thing"> .... </thing> </thing> </thing>
This is an XML with the same node at every level and infinite levels.
Since this XML has infinite layers, it cannot be represented directly. In order to be able to represent it, we introduce the concept of inheritance, so that it can be simplified into the following XML.
<thing name="thing""> <attribute name="name"/> <attribute name="extends"/> <thing name="attribute"> <attribute name="name"/> </thing> <thing name="thing" extends="_root"/> </thing>
Here we add an extends attribute, in the <thing name="thing" extends="_root"/> child node, the extends="_root" attribute indicates this node Inherit the root node, so that this child node also has child nodes under the root node, so logically it is an XML with infinite layers.
Since it is the structure of any XML structure, in the XML editor that uses the XML structure to edit XML, you can use it to directly or indirectly edit other arbitrary XML, so it can As the first model in the system, the metamodel.
Coincidences exist between the metamodel and some philosophical questions. Typical coincidences are as follows.
The metamodel has some philosophical coincidences, as follows.
The metamodel is essentially a fundamental property of language which, if understood, may lead to a deeper view of the relationship between language and the world. However, this meaning is difficult to explain clearly using words.
Copyright © 2007-2019 XWorker.org 版权所有 沪ICP备08000575号