All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.coode.oppl.utils.AbstractVariableVisitorExAdapter Maven / Gradle / Ivy

package org.coode.oppl.utils;

import org.coode.oppl.Variable;
import org.coode.oppl.VariableVisitorEx;
import org.coode.oppl.generated.GeneratedVariable;
import org.coode.oppl.generated.RegexpGeneratedVariable;
import org.coode.oppl.variabletypes.InputVariable;
import org.semanticweb.owlapi.model.OWLObject;

/** @author Luigi Iannone
 * @param 
 *            type */
public class AbstractVariableVisitorExAdapter implements VariableVisitorEx {
    private final O defaultValue;

    /** @param defaultValue
     *            defaultValue */
    public AbstractVariableVisitorExAdapter(O defaultValue) {
        this.defaultValue = defaultValue;
    }

    protected 

O getDefaultValue( @SuppressWarnings("unused") Variable

v) { return this.defaultValue; } @Override public

O visit(InputVariable

v) { return this.getDefaultValue(v); } @Override public

O visit(GeneratedVariable

v) { return this.getDefaultValue(v); } @Override public

O visit(RegexpGeneratedVariable

regExpGenerated) { return this.getDefaultValue(regExpGenerated); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy