com.clarkparsia.pellet.sparqldl.model
Class UnionQueryAtom

java.lang.Object
  extended by com.clarkparsia.pellet.sparqldl.model.UnionQueryAtom
All Implemented Interfaces:
QueryAtom

public class UnionQueryAtom
extends java.lang.Object
implements QueryAtom

Title:

Description:

Copyright: Copyright (c) 2009

Company: Clark & Parsia, LLC.

Author:
Evren Sirin

Constructor Summary
UnionQueryAtom(java.util.List<java.util.List<QueryAtom>> union)
           
UnionQueryAtom(java.util.List<QueryAtom> atoms1, java.util.List<QueryAtom> atoms2)
           
 
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.
 java.util.List<java.util.List<QueryAtom>> getUnion()
           
 int hashCode()
           
 boolean isGround()
          
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnionQueryAtom

public UnionQueryAtom(java.util.List<QueryAtom> atoms1,
                      java.util.List<QueryAtom> atoms2)

UnionQueryAtom

public UnionQueryAtom(java.util.List<java.util.List<QueryAtom>> union)
Method Detail

apply

public QueryAtom apply(ResultBinding binding)
Description copied from interface: QueryAtom
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

equals

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

getArguments

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

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

getUnion

public java.util.List<java.util.List<QueryAtom>> getUnion()

getPredicate

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

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

hashCode

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

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.

toString

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


Copyright © 2004 Evren Sirin. All Rights Reserved.