CausewaySchemas (enum)

Controls whether, when generating JaxbService#toXsd(Object, CausewaySchemas) XML schemas , any of the common Causeway schemas (in the namespace http://org.apache.causeway.schema ) should be included or just ignored (and therefore don’t appear in the returned map).

The practical benefit of this is that for many DTOs there will only be one other schema, that of the DTO itself. The Dto_downloadXsd mixin uses this to return that single XSD, rather than generating a ZIP of two schemas (the Causeway schema and the one for the DTO), as it would otherwise; far more convenient when debugging and so on. The Causeway schemas can always bedownloadedfrom the Causeway website.

API

CausewaySchemas.java
enum CausewaySchemas {
  INCLUDE
  IGNORE
  boolean shouldIgnore(String namespaceUri)     (1)
}
1 shouldIgnore(String)

Implementation note: not using subclasses, otherwise the key in translations.po becomes more complex.

Members

shouldIgnore(String)

Implementation note: not using subclasses, otherwise the key in translations.po becomes more complex.