org.swrlapi.factory.DefaultSWRLObjectPropertyBuiltInArgument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swrlapi Show documentation
Show all versions of swrlapi Show documentation
Java API for working with SWRL rules and SQWRL queries
package org.swrlapi.factory;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.semanticweb.owlapi.model.OWLObjectProperty;
import org.semanticweb.owlapi.model.OWLObjectPropertyExpression;
import org.swrlapi.builtins.arguments.SWRLBuiltInArgumentType;
import org.swrlapi.builtins.arguments.SWRLBuiltInArgumentVisitor;
import org.swrlapi.builtins.arguments.SWRLBuiltInArgumentVisitorEx;
import org.swrlapi.builtins.arguments.SWRLObjectPropertyBuiltInArgument;
import org.swrlapi.exceptions.SWRLBuiltInException;
class DefaultSWRLObjectPropertyBuiltInArgument extends DefaultSWRLNamedBuiltInArgument
implements SWRLObjectPropertyBuiltInArgument
{
private static final long serialVersionUID = 1L;
public DefaultSWRLObjectPropertyBuiltInArgument(@NonNull OWLObjectProperty property)
{
super(property);
}
@NonNull @Override public SWRLBuiltInArgumentType> getSWRLBuiltInArgumentType()
{
return SWRLBuiltInArgumentType.OBJECT_PROPERTY;
}
@NonNull @Override public OWLObjectProperty getOWLObjectProperty()
{
return getOWLEntity().asOWLObjectProperty();
}
@NonNull @Override public OWLObjectPropertyExpression getOWLObjectPropertyExpression()
{
return getOWLObjectProperty();
}
@Override @NonNull public <@NonNull T> T accept(@NonNull SWRLBuiltInArgumentVisitorEx<@NonNull T> visitor)
{
return visitor.visit(this);
}
@NonNull @Override public SWRLObjectPropertyBuiltInArgument asSWRLObjectPropertyBuiltInArgument()
throws SWRLBuiltInException
{
return this;
}
@NonNull @Override public SWRLObjectPropertyBuiltInArgument asSWRLObjectPropertyExpressionBuiltInArgument()
throws SWRLBuiltInException
{
return this;
}
@Override public void accept(@NonNull SWRLBuiltInArgumentVisitor visitor)
{
visitor.visit(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy