Skip to content

[Android Studio插件]将xml格式String转换成SimpleXml支持的Java实体类

Notifications You must be signed in to change notification settings

lololiu/simplexml-format

Repository files navigation

simplexml-format

介绍

simplexml-format是一个Intellij IDEA和Android Studio中的代码生成工具类插件,利用它可以很方便地将XML格式的String转换成SimpleXml支持的Java实体类,其代码是在开源项目GsonForamt的基础上编写。

安装

File->Settings..->Plugins-->Browse repositores..搜索simplexml-format,重启Android Studio/Intellij IDEA。 或者: 在这里下载zip文件,打开File->Settings..->Plugins -->install plugin from disk..导入文件并重启Android Studio/Intellij IDEA。

使用

  • 打开Generate菜单(Android Studio快捷键alt+Insert),点击xmlformat选项

  • 直接快捷键alt+1打开

截图

默认生成

自定义变量名

感谢

License

Copyright 2014 The simplexml-format Authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

[Android Studio插件]将xml格式String转换成SimpleXml支持的Java实体类

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages