public class DocumentationAdder extends Object implements Supplier<Transformer>
Transformer that adds xs:documentation tags to an existing XSD.
The contents of the documentation tags is determined by introspecting while looking for XmlDocumentation tags.
The transformer is an actual XSLT `add-documentation.xslt`, which combines the information collected via introspection with the original XSD XML.| Constructor and Description |
|---|
DocumentationAdder(Class<?>... classes) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
createDocumentations(Class<?>... classes) |
Transformer |
get() |
Class<?>[] |
getClasses() |
void |
transform(Source source,
Result out) |
String |
write() |
void |
write(Writer writer) |
public DocumentationAdder(Class<?>... classes)
public void transform(Source source, Result out) throws TransformerException
TransformerExceptionpublic Transformer get()
get in interface Supplier<Transformer>public Class<?>[] getClasses()
public void write(Writer writer) throws JAXBException, IOException, TransformerException
public String write() throws JAXBException, IOException, TransformerException
Copyright © 2021. All rights reserved.