Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2010 JBoss Inc
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.

DroolsJaxbHelperProvider is used by the DroolsJaxbHelperFactory to "provide" it's concrete implementation. This class is not considered stable and may change, the user is protected from this change by using the Factory api, which is considered stable.

This api is experimental and thus the classes and the interfaces returned are subject to change.

public interface DroolsJaxbHelperProvider {
Generates pojos for a given XSD using XJC and adds them to the specified KnowlegeBase.

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.
resource The resource to the XSD model
kbuilder the KnowledgeBuilder where the generated .class files will be placed
xjcOpts XJC Options
systemId XJC systemId
Returns an array of class names that where generated by the XSD.
    public String[] addXsdModel(Resource resource,
                                KnowledgeBuilder kbuilder,
                                Options xjcOpts,
                                String systemIdthrows IOException;

Creates a new JAXBContext, from which the Marshaller and Unmarshaller can be created, which are used by the Transformer pipeline stage.

classNames An array of class names that can be resolved by this JAXBContext
properties JAXB properties
kbase The KnowledgeBase
The JAXB Context
    public JAXBContext newJAXBContext(String[] classNames,
                                      Map<String, ?> properties,
                                      KnowledgeBase kbasethrows JAXBException;
New to GrepCode? Check out our FAQ X