org.semanticweb.kaon2.api.reasoner
Class Query.UntypedPredicate
java.lang.Object
org.semanticweb.kaon2.api.reasoner.Query.UntypedPredicate
- All Implemented Interfaces:
- java.io.Serializable, Predicate
- Enclosing interface:
- Query
public static class Query.UntypedPredicate
- extends java.lang.Object
- implements Predicate, java.io.Serializable
Models a predicate whose type is not known. This class should only be used to represent
construction patterns in which the type of the predicate will be determine by the target ontology.
- See Also:
- Serialized Form
|
Field Summary |
protected int |
m_arity
|
protected java.lang.String |
m_uri
|
|
Method Summary |
java.lang.Object |
accept(KAON2Visitor visitor)
Accepts a visitor for this object. |
int |
getArity()
Returns the arity of the predicate. |
java.lang.String |
getURI()
|
void |
toString(java.lang.StringBuffer buffer,
Namespaces namespaces)
Writes this entity to the supplied string buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_uri
protected final java.lang.String m_uri
m_arity
protected final int m_arity
Query.UntypedPredicate
public Query.UntypedPredicate(java.lang.String uri,
int arity)
getURI
public java.lang.String getURI()
getArity
public int getArity()
- Description copied from interface:
Predicate
- Returns the arity of the predicate.
- Specified by:
getArity in interface Predicate
- Returns:
- the arity of the predicate
toString
public void toString(java.lang.StringBuffer buffer,
Namespaces namespaces)
- Description copied from interface:
Predicate
- Writes this entity to the supplied string buffer.
- Specified by:
toString in interface Predicate
- Parameters:
buffer - the buffernamespaces - the namespaces object
accept
public java.lang.Object accept(KAON2Visitor visitor)
- Description copied from interface:
Predicate
- Accepts a visitor for this object.
- Specified by:
accept in interface Predicate
- Parameters:
visitor - the visitor for this object
- Returns:
- the return value of the visitor (can be
null)