Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 XJC 从 XML 模式文件创建 Java 类。
创建的类中的字段是protected,这对我来说过去没问题。但现在我正在做一些 Tomcat-BlazeDS-Flash-Java-Serializing 的东西,我需要生成的类的字段是public。
XJC 可以配置为完全做到这一点吗?
您可以编写一个 XJC 插件来获得这种行为。下面的链接有一些创建插件的提示: