简体   繁体   English

Apache Pivot BXML文件的架构文件

[英]Schema file for Apache Pivot BXML files

Where should I download the schema definition for BXML files? 我应该在哪里下载BXML文件的架构定义? It'd be great to have for IDEs to help with autocompletion. 拥有IDE来帮助自动补全的功能很棒。

Sadly there is no schema (neither XSD nor DTD) for BXML. 不幸的是,没有针对BXML的架构(XSD和DTD都没有)。 The problem is that BXML is too much dynamic format. 问题在于BXML是太多的动态格式。 The reason is well described in this issue: https://issues.apache.org/jira/browse/PIVOT-385 在此问题中对此原因进行了详细描述: https : //issues.apache.org/jira/browse/PIVOT-385

The best approach would be to have an IDE plugin but again sadly there is no one - at least not for IDEA and Eclipse. 最好的方法是拥有一个IDE插件,但可悲的是,没有插件-至少对于IDEA和Eclipse没有。

There is an open issue from 2014 to create generator of XSD for BXML validation during of build (Maven, Gradle, ...) but without any further progress: https://issues.apache.org/jira/browse/PIVOT-936 从2014年开始存在一个未解决的问题,即在构建期间创建XSD生成器以进行BXML验证(Maven,Gradle等),但没有任何进一步的进展: https ://issues.apache.org/jira/browse/PIVOT-936


It is the same case as for FXML used in JavaFX where there is also no schema and it is also impossible to have it valid, complete and deterministic because of the same reasons. 与JavaFX中使用的FXML的情况相同,也没有架构,并且由于相同的原因,也不可能使它有效,完整和确定性。 Happily in this case there are IDE plugins for it - at least for IntelliJ IDEA. 在这种情况下,很高兴为此提供了IDE插件-至少是IntelliJ IDEA。

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

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