public class DocumentationAdder extends Object implements Supplier<Transformer>
Transformer that addes xs:documentation tags to an existing XSD.
The contents of the documentation tags is determined by introspecting while looking for @XmlDocumentation tags.| Constructor and Description |
|---|
DocumentationAdder(Class<?>... classes) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
createDocumentations(Class<?>... classes) |
Transformer |
get() |
boolean |
isUseCache() |
Map<String,Source> |
schemaSources()
Returns the associated XSD schema's as a map of
Source's. |
void |
setUseCache(boolean useCache) |
void |
transform(Source source,
Result out) |
Map<String,Source> |
transformedSources() |
public DocumentationAdder(Class<?>... classes)
public boolean isUseCache()
public void setUseCache(boolean useCache)
public void transform(Source source, Result out) throws TransformerException
TransformerExceptionpublic Map<String,Source> schemaSources() throws JAXBException, IOException, SAXException
Source's. The key is the namespace.JAXBExceptionIOExceptionSAXExceptionpublic Map<String,Source> transformedSources() throws JAXBException, IOException, SAXException, TransformerException
public Transformer get()
get in interface Supplier<Transformer>protected Map<String,String> createDocumentations(Class<?>... classes) throws IOException, ParserConfigurationException, SAXException
Copyright © 2017. All rights reserved.