|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.derivo.sparqldlapi.QueryArgument
public class QueryArgument
This class represents a query argument (e.g. an URI or a variable).
Constructor Summary | |
---|---|
QueryArgument(QueryArgumentType type,
java.lang.String value)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
QueryArgumentType |
getType()
Get the type of the query argument. |
java.lang.String |
getValue()
Get the value of the query argument. |
int |
hashCode()
|
boolean |
hasType(QueryArgumentType type)
Check whether the query argument has a special type. |
boolean |
isBnode()
Check whether the query argument is a bnode. |
boolean |
isLiteral()
Check whether the query argument is a literal. |
boolean |
isURI()
Check whether the query argument is an URI. |
boolean |
isVar()
Check whether the query argument is a variable. |
static QueryArgument |
newBnode(java.lang.String value)
Factory method to create a QueryArgument instance with type BNODE by string. |
static QueryArgument |
newLiteral(java.lang.String value)
Factory method to create a QueryArgument instance with type LITERAL by string. |
static QueryArgument |
newURI(IRI value)
Factory method to create a QueryArgument instance with type URI by IRI. |
static QueryArgument |
newVar(java.lang.String value)
Factory method to create a QueryArgument instance with type VAR by string. |
java.lang.String |
toString()
Print the query argument as string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryArgument(QueryArgumentType type, java.lang.String value)
Method Detail |
---|
public static QueryArgument newURI(IRI value)
value
-
public static QueryArgument newVar(java.lang.String value)
value
-
public static QueryArgument newBnode(java.lang.String value)
value
-
public static QueryArgument newLiteral(java.lang.String value)
value
-
public java.lang.String getValue()
public QueryArgumentType getType()
public boolean hasType(QueryArgumentType type)
type
-
public boolean isURI()
public boolean isVar()
public boolean isLiteral()
public boolean isBnode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |