Monday, September 10, 2018

Re: XSD schema for gwt xml



On Monday, September 10, 2018 at 1:10:58 PM UTC+2, Jewgenij Moldawski wrote:
Dear friends of Gwt,
where can I find the xsd schema definitions for namespaces
  • urn:ui:com.google.gwt.uibinder,

You can find a schema here https://github.com/gwtproject/gwt/blob/2.8.2/user/src/com/google/gwt/uibinder/resources/UiBinder.xsd, but please read the warning at the top of the file.
 
  • urn:import:com.google.gwt.user.client.ui and
  • urn:import:org.gwtbootstrap3.client.ui

There aren't any, those "urn:import:" namespaces directly map to Java packages, with elements corresponding to classes and their attributes to setters (though some attributes may be handled specially by –internal only– custom parsers, @UiConstructor⋅s, or @UiFactory methods).

Put simply: there's no way to validate a *.ui.xml file without actually "compiling" it against the Java class that uses it (to find @UiFactory methods) and the Java classes it uses.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment