Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
 
 import  org.drools.core.builder.conf.impl.DecisionTableConfigurationImpl;
 import  org.drools.core.builder.conf.impl.ResourceConfigurationImpl;
 import  org.kie.api.io.ResourceConfiguration;
 import  org.kie.api.io.ResourceType;
 import  org.kie.internal.builder.DecisionTableConfiguration;
import  org.kie.internal.builder.DecisionTableInputType;
public class DecisionTableConfigurationAdapter extends ResourceConfigurationImpl implements DecisionTableConfiguration {
    
    private static final long serialVersionUID = -2052308765193190359L;
    
    
        super.setResourceType(ResourceType.DTABLE);
        this. = delegate;
    }
    public void setInputType(org.drools.builder.DecisionTableInputType inputType) {
        .setInputType(inputType);
    }
    public DecisionTableInputType getInputType() {
        return .getInputType() == .... ? DecisionTableInputType.CSV : DecisionTableInputType.XLS;
    }
    public void setWorksheetName(String name) {
        .setWorksheetName(name);
    }
    public String getWorksheetName() {
        return .getWorksheetName();
    }
    public Properties toProperties() {
        Properties prop = super.toProperties();
        prop.setProperty( DecisionTableConfigurationImpl.DROOLS_DT_TYPE, getInputType().toString() );
        ifgetWorksheetName() != null ) {
            prop.setProperty( DecisionTableConfigurationImpl.DROOLS_DT_WORKSHEET, getWorksheetName() );
        }
        return prop;
    }
    public ResourceConfiguration fromProperties(Properties prop) {
        super.fromProperties(prop);
        setInputType( DecisionTableInputType.valueOf( prop.getProperty( DecisionTableConfigurationImpl.DROOLS_DT_TYPE, DecisionTableInputType.XLS.toString() ) ) );
        setWorksheetNameprop.getProperty( DecisionTableConfigurationImpl.DROOLS_DT_WORKSHEET, null ) );
        return this;
    }
    @Override
    public void setInputType(DecisionTableInputType inputType) {
        .setInputTypeinputType == DecisionTableInputType.CSV ? .... : ....);
    }
    @Override
    public int hashCode() {
        return .hashCode();
    }
    @Override
    public boolean equals(Object obj) {
    }
New to GrepCode? Check out our FAQ X