Dto_downloadXsd

Mixin that provides the ability to download the XSD schema for a view model can be downloaded as XML.

Requires that the view model is a JAXB view model, and implements the Dto marker interface.

If the domain object’s JAXB annotations reference only a single XSD schema then this will return that XML text as a Clob of that XSD. If there are multiple XSD schemas referenced then the action will return a zip of those schemas, wrapped up in a Blob .

API

Dto_downloadXsd.java
class Dto_downloadXsd {
  Object act(String fileName, IsisSchemas isisSchemas)     (1)
  String default0Act()     (2)
  IsisSchemas default1Act()     (3)
}
1 act(String, IsisSchemas)

The IsisSchemas parameter can be used to optionally ignore the common Apache Isis schemas; useful if there is only one other XSD schema referenced by the DTO.

2 default0Act()

Defaults to the fully qualified class name of the domain object.

3 default1Act()

Defaults to IsisSchemas#IGNORE

Members

act(String, IsisSchemas)

The IsisSchemas parameter can be used to optionally ignore the common Apache Isis schemas; useful if there is only one other XSD schema referenced by the DTO.

default0Act()

Defaults to the fully qualified class name of the domain object.

default1Act()

Defaults to IsisSchemas#IGNORE