Android 元模型位于哪里?

发布于 2024-08-29 07:24:50 字数 273 浏览 12 评论 0原文

我想使用 Android 进行模型驱动软件开发。

为此,我需要在 SDK 中找到 Android 模型。我已经搜索了一段时间,但没能找到。有谁知道它可能在哪里吗?

有可能是 android-sdk-\platforms\android-x\android.jar 文件夹中的 AndroidManifest.xml 文件吗?解压该文件后,我无法在 Windows XP 上正确打开该文件,因为很多字符的字符集错误。

或者它也有可能仅位于源代码中?

提前致谢, 多米尼克

I would like to use Android for Model-Driven-Software-Development.

For this, I need to locate the Android Model in the SDK. 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? 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.

Or is it also possible, that it is only located in the source code?

Thanks in advance,
Dominik

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

明媚如初 2024-09-05 07:24:50

是的,明白了。

它是位于platforms 文件夹下的Android.jar。我刚刚搜索了 JAR2UML Converter 并在 XMI 中获取了我的 UML 模型:)

Yeah, got it.

It is the Android.jar lying beneath the platforms folder. I just searched a JAR2UML Converter and got my UML model in XMI :)

往事随风而去 2024-09-05 07:24:50

我想使用 Android
模型驱动的软件开发。

我不知道适用于 Android 的 MDA 系统,可能是由于大小限制。

为此,我需要找到 Android
SDK中的模型。

不存在“Android 模型”,就像不存在“Linux 模型”或“OS X 模型”或“Symbian 模型”一样。

I would like to use Android for
Model-Driven-Software-Development.

I am not aware of an MDA system for Android, possibly due to size constraints.

For this, I need to locate the Android
Model in the SDK.

There is no "Android Model", any more than there is a "Linux Model" or "OS X Model" or "Symbian Model".

不爱素颜 2024-09-05 07:24:50

感谢您的回答。

CommonsWare:我只需要模型来进行模型到模型的转换,为此,拥有它会非常有帮助。 :) 但谢谢你的提示。

Rui Curado:谢谢,我会看一下,但我最近使用了 Eclipse 建模工具,我对这些工具非常满意。 :)

Jordi Cabot:谢谢你的建议。所以我会看看我需要哪些组件并尝试重建它。

我只是希望元模型位于 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. :) 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. :)

Jordi Cabot: Thanks for that advice. 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. But so I will start on Monday...

Thanks for all these three answers! :)

家住魔仙堡 2024-09-05 07:24:50

这绝对是伟大的多米尼克!感谢您发布您的解决方案;我永远不会发现这个。只是为了让其他有兴趣做同样事情的人详细说明一下:

这是 JAR2UML 的安装说明。

在 Eclipse 中安装 JAR2UML

然后按照这些说明并导入在平台中找到的Android.jar Android SDK 文件夹中的文件夹。 JAR2UML 提供的默认选项是完美的(忽略说明中显示的选项更改。)

接下来,您可以双击新创建的 UML 文件,您可以浏览它并从其他 EMF 项目中使用它!

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.

Install JAR2UML in Eclipse.

Then follow these instructions and import Android.jar found in the platforms folder in the Android SDK folder. The default options JAR2UML presents are perfect (ignore the options changes shown in the instructions.)

Next, you can double click the newly created UML file and you can browse it and use it from other EMF projects!

思念绕指尖 2024-09-05 07:24:50

您可能希望查看 ABSE (http://www.abse.info - 免责声明:我是项目负责人)。 ABSE 是一个通用的模型驱动开发系统,可让您使用自己的代码创建自己的代码生成模型。

当您学习 Android 开发时,您可以构建和发展您的代码生成模型(在 ABSE 中称为“Atoms”)。正如 CommonsWare 所说,不存在“真正的”Android 模型,但您可以通过 ABSE 构建自己的模型。

然后,您可以通过将 Atom 组合在一起、添加一些自定义的、特定于应用程序的代码并快速开发应用程序来开发 Android 应用程序。

AtomWeaver 是一个实现 ABSE 方法的 IDE,但仍处于 alpha 阶段且未公开提供。只要告诉我您是否想成为 alpha 测试计划的一部分(联系方式显示在 ABSE 网站页面的底部)。

You may wish to have a look at ABSE (http://www.abse.info - Disclaimer: I am the project lead). ABSE is a generic model-driven development system that lets you create your own models for code generation, using your own code.

As you learn Android development, you can build and evolve your code generation models (called "Atoms" in ABSE). Like CommonsWare said, there is no "real" Android model, but you can architect your own through ABSE.

Then, you can develop Android apps by snapping your Atoms together, adding some custom, application-specific code, and getting an app out quickly.

AtomWeaver is an IDE that implements the ABSE approach, but is still in alpha and not publicly available. 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).

习惯成性 2024-09-05 07:24:50

不幸的是,许多系统不提供明确的元模型,这必须从系统的 API 或它们使用的存储格式中推断出来。所有工具/系统都有一个用于操作数据的内部模式,这只是在它不明确可用时重新发现它的问题

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. 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文