简体   繁体   English

Android元模型在哪里?

[英]Where is the Android Metamodel located?

I would like to use Android for Model-Driven-Software-Development. 我想使用Android进行模型驱动的软件开发。

For this, I need to locate the Android Model in the SDK. 为此,我需要在SDK中找到Android模型。 I already searched a while for it, but were not able to find it. 我已经搜索了一段时间,但找不到。 Has anyone an idea where it could be? 有谁知道它可能在哪里?

Is it possible, that it is the AndroidManifest.xml-File in the folder android-sdk-\\platforms\\android-x\\android.jar? 是否可能是文件夹android-sdk- \\ platforms \\ android-x \\ android.jar中的AndroidManifest.xml文件? After unpacking this file, I am not able to open that file correctly on Windows XP, because a lot of characters have the wrong character set. 解压缩此文件后,我无法在Windows XP上正确打开该文件,因为许多字符具有错误的字符集。

Or is it also possible, that it is only located in the source code? 还是仅在源代码中找到它?

Thanks in advance, Dominik 在此先感谢Dominik

Yeah, got it. 是的,知道了。

It is the Android.jar lying beneath the platforms folder. 这是位于platform文件夹下的Android.jar。 I just searched a JAR2UML Converter and got my UML model in XMI :) 我刚刚搜索了一个JAR2UML转换器,并在XMI中获得了UML模型:)

I would like to use Android for Model-Driven-Software-Development. 我想使用Android进行模型驱动的软件开发。

I am not aware of an MDA system for Android, possibly due to size constraints. 由于大小限制,我不知道适用于Android的MDA系统。

For this, I need to locate the Android Model in the SDK. 为此,我需要在SDK中找到Android模型。

There is no "Android Model", any more than there is a "Linux Model" or "OS X Model" or "Symbian Model". 除了“ Linux模型”或“ OS X模型”或“ Symbian模型”外,没有“ Android模型”。

thanks for the answers. 感谢您的回答。

CommonsWare: I just need the Model to do a Model-to-Model-Transformation, for this it would be very helpful to have it. CommonsWare:我只需要Model进行Model-to-Model-Transformation,为此,这将非常有帮助。 :) But thanks for that hint. :)但感谢您的提示。

Rui Curado: Thanks, I will have a look at it, but I recently worked with the Eclipse Modeling Tools and I am very happy with these tools. Rui Curado:谢谢,我会看一下它,但是最近我使用了Eclipse Modeling Tools,并且对这些工具感到非常满意。 :) :)

Jordi Cabot: Thanks for that advice. Jordi Cabot:感谢您的建议。 So I will look which components I need and try to rebuild it. 因此,我将查看所需的组件并尝试对其进行重建。

I just hoped the Metamodel is somewhere in the Android package located, so I can skip the own creation of a model. 我只是希望元模型位于Android包中的某个位置,所以我可以跳过自己创建的模型。 But so I will start on Monday... 但是,我将从星期一开始...

Thanks for all these three answers! 感谢所有这三个答案! :) :)

This is absolutely great Dominick! 这绝对是伟大的多米尼克! Thanks for posting your solution; 感谢您发布解决方案; I never would have found this. 我永远都找不到。 Just to elaborate a little for others interested in doing the same: 为了给其他有兴趣的人详细说明一下:

is where the installation instructions are for JAR2UML. 是JAR2UML的安装说明所在的位置。

Install JAR2UML in Eclipse. 在Eclipse中安装JAR2UML

Then follow these instructions and import Android.jar found in the platforms folder in the Android SDK folder. 然后按照以下说明操作,并导入在Android SDK文件夹的platform文件夹中找到的Android.jar。 The default options JAR2UML presents are perfect (ignore the options changes shown in the instructions.) JAR2UML呈现的默认选项是完美的(忽略说明中显示的选项更改。)

Next, you can double click the newly created UML file and you can browse it and use it from other EMF projects! 接下来,您可以双击新创建的UML文件,然后可以浏览并在其他EMF项目中使用它!

You may wish to have a look at ABSE ( http://www.abse.info - Disclaimer: I am the project lead). 您可能希望看看ABSE( http ://www.abse.info-免责声明:我是项目负责人)。 ABSE is a generic model-driven development system that lets you create your own models for code generation, using your own code. ABSE是一个通用的模型驱动开发系统,使您可以使用自己的代码创建自己的模型以进行代码生成。

As you learn Android development, you can build and evolve your code generation models (called "Atoms" in ABSE). 在学习Android开发时,您可以构建和发展代码生成模型(在ABSE中称为“原子”)。 Like CommonsWare said, there is no "real" Android model, but you can architect your own through ABSE. 就像CommonsWare所说的那样,没有“真正的” Android模型,但是您可以通过ABSE构建自己的模型。

Then, you can develop Android apps by snapping your Atoms together, adding some custom, application-specific code, and getting an app out quickly. 然后,您可以通过将Atom吸附在一起,添加一些自定义的,特定于应用程序的代码并快速发布应用程序来开发Android应用程序。

AtomWeaver is an IDE that implements the ABSE approach, but is still in alpha and not publicly available. AtomWeaver是实现ABSE方法的IDE,但仍处于Alpha状态且不公开。 Just tell me if you want to be part of the alpha testing program (a contact is displayed at the bottom of ABSE's site pages). 只需告诉我您是否想参加alpha测试计划(ABSE网站页面的底部会显示一个联系人)。

Unfortunately, many systems do not offer a explicit metamodel and this must be deduced from either the API of the system or the storage format they use. 不幸的是,许多系统没有提供显式的元模型,这必须从系统的API或它们使用的存储格式中推论得出。 All tools/systems have an internal schema they use to manipulate the data, it is just a matter of rediscovering it when it is not explicitly available 所有工具/系统都具有用于处理数据的内部架构,这在没有显式可用时只需重新发现它即可

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM