org.semanticweb.kaon2.api.rules
Interface Predicate

All Known Subinterfaces:
AnnotationProperty, DataAll, DataCardinality, DataHasValue, DataNot, DataOneOf, DataProperty, DataRange, DataSome, Datatype, Description, NonOWLPredicate, ObjectAll, ObjectAnd, ObjectCardinality, ObjectHasValue, ObjectNot, ObjectOneOf, ObjectOr, ObjectProperty, ObjectSome, OWLClass
All Known Implementing Classes:
Query.UntypedPredicate

public interface Predicate

Represents a predicate in the program.


Method Summary
 java.lang.Object accept(KAON2Visitor visitor)
          Accepts a visitor for this object.
 int getArity()
          Returns the arity of the predicate.
 void toString(java.lang.StringBuffer buffer, Namespaces namespaces)
          Writes this entity to the supplied string buffer.
 

Method Detail

getArity

int getArity()
Returns the arity of the predicate.

Returns:
the arity of the predicate

toString

void toString(java.lang.StringBuffer buffer,
              Namespaces namespaces)
Writes this entity to the supplied string buffer.

Parameters:
buffer - the buffer
namespaces - the namespaces object

accept

java.lang.Object accept(KAON2Visitor visitor)
Accepts a visitor for this object.

Parameters:
visitor - the visitor for this object
Returns:
the return value of the visitor (can be null)