public interface DroolsJaxbHelperProvider
This api is experimental and thus the classes and the interfaces returned are subject to change.
| Modifier and Type | Method and Description |
|---|---|
String[] |
addXsdModel(org.kie.api.io.Resource resource,
KnowledgeBuilder kbuilder,
com.sun.tools.xjc.Options xjcOpts,
String systemId)
Deprecated.
This is now deprecated, as we now support XSD as a standard ResourceType. Although
you'll still need the newJAXBContext method to create a JAXBContext from the KnowledgeBase.
|
JAXBContext |
newJAXBContext(String[] classNames,
Map<String,?> properties,
KnowledgeBase kbase)
Creates a new JAXBContext, from which the Marshaller and Unmarshaller can be created, which are used by the Transformer
pipeline stage.
|
String[] addXsdModel(org.kie.api.io.Resource resource, KnowledgeBuilder kbuilder, com.sun.tools.xjc.Options xjcOpts, String systemId) throws IOException
resource - The resource to the XSD modelkbuilder - the KnowledgeBuilder where the generated .class files will be placedxjcOpts - XJC OptionssystemId - XJC systemIdIOExceptionJAXBContext newJAXBContext(String[] classNames, Map<String,?> properties, KnowledgeBase kbase) throws JAXBException
classNames - An array of class names that can be resolved by this JAXBContextproperties - JAXB propertieskbase - The KnowledgeBaseJAXBExceptionCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.