|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.derivo.sparqldlapi.QueryAtom
public class QueryAtom
This class represents a query atom.
Field Summary | |
---|---|
protected java.util.List<QueryArgument> |
args
|
protected boolean |
bound
|
protected QueryAtomType |
type
|
Constructor Summary | |
---|---|
QueryAtom(QueryAtomType type,
java.util.List<QueryArgument> args)
|
|
QueryAtom(QueryAtomType type,
QueryArgument... args)
|
Method Summary | |
---|---|
QueryAtom |
bind(QueryBinding binding)
A convenience method to clone the QueryAtom instance while inserting a new binding. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<QueryArgument> |
getArguments()
Get the arguments of the atom. |
QueryAtomType |
getType()
Get the exact type of the atom. |
int |
hashCode()
|
boolean |
hasType(QueryAtomType type)
Check whether this atom has a concrete type. |
boolean |
isBound()
Check whether the atom contains any variables or not. |
java.lang.String |
toString()
Get the atom as string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final QueryAtomType type
protected final java.util.List<QueryArgument> args
protected boolean bound
Constructor Detail |
---|
public QueryAtom(QueryAtomType type, QueryArgument... args)
public QueryAtom(QueryAtomType type, java.util.List<QueryArgument> args)
Method Detail |
---|
public boolean isBound()
public QueryAtomType getType()
public boolean hasType(QueryAtomType type)
type
-
public java.util.List<QueryArgument> getArguments()
public QueryAtom bind(QueryBinding binding)
binding
-
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |