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

org.coode.parsers.OWLLiteralSymbol Maven / Gradle / Ivy

package org.coode.parsers;

import static org.coode.oppl.utils.ArgCheck.checkNotNull;

import org.semanticweb.owlapi.model.OWLLiteral;

/** @author Luigi Iannone */
public class OWLLiteralSymbol extends Symbol {
    private final OWLLiteral owlConstant;

    /** @param name
     *            name
     * @param constant
     *            constant */
    public OWLLiteralSymbol(String name, OWLLiteral constant) {
        super(name, OWLType.OWL_CONSTANT);
        owlConstant = checkNotNull(constant, "constant");
    }

    /** @return the owlConstant */
    public OWLLiteral getOWLLiteral() {
        return owlConstant;
    }

    @Override
    public  O accept(SymbolVisitorEx visitor) {
        return visitor.visitOWLLiteral(this);
    }

    @Override
    public void accept(SymbolVisitor visitor) {
        visitor.visitOWLLiteral(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy