com.clarkparsia.pellet.sparqldl.model
Class QueryAtomImpl

java.lang.Object
  extended by com.clarkparsia.pellet.sparqldl.model.QueryAtomImpl
All Implemented Interfaces:
QueryAtom
Direct Known Subclasses:
CoreImpl

public class QueryAtomImpl
extends java.lang.Object
implements QueryAtom

Title: Abstract implementation of the query atom.

Description:

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Petr Kremen

Constructor Summary
QueryAtomImpl(QueryPredicate predicate, aterm.ATermAppl... arguments)
           
QueryAtomImpl(QueryPredicate predicate, java.util.List<aterm.ATermAppl> arguments)
           
 
Method Summary
 QueryAtom apply(ResultBinding binding)
          Applies variable binding to the current atom and returns the result which might be same as the current atom.
 boolean equals(java.lang.Object obj)
           
 java.util.List<aterm.ATermAppl> getArguments()
          Returns arguments of the atom.
 QueryPredicate getPredicate()
          Returns predicate of the query atom.
 int hashCode()
           
 boolean isGround()
          
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryAtomImpl

public QueryAtomImpl(QueryPredicate predicate,
                     aterm.ATermAppl... arguments)

QueryAtomImpl

public QueryAtomImpl(QueryPredicate predicate,
                     java.util.List<aterm.ATermAppl> arguments)
Method Detail

getPredicate

public QueryPredicate getPredicate()
Returns predicate of the query atom.

Specified by:
getPredicate in interface QueryAtom
Returns:
predicate of the query atom

getArguments

public java.util.List<aterm.ATermAppl> getArguments()
Returns arguments of the atom.

Specified by:
getArguments in interface QueryAtom
Returns:
arguments of the atom

isGround

public boolean isGround()

Specified by:
isGround in interface QueryAtom
Returns:
true if the atom is ground, i.e. does not use variables, either distinguished or undistinguished ones.

apply

public QueryAtom apply(ResultBinding binding)
Applies variable binding to the current atom and returns the result which might be same as the current atom. Current atom is not affected.

Specified by:
apply in interface QueryAtom
Parameters:
binding - QueryBinding to apply
Returns:
a query atom with applied query binding

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004 Evren Sirin. All Rights Reserved.