public abstract class SparqlElement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
filter
The filter that the sub-clause can belong to
|
protected java.lang.String |
function
The function that can be applied to the filter
|
protected boolean |
not
True if not function declared
|
protected java.lang.String |
type
Additional description if this is an end element
|
protected java.lang.String |
uuid
A unique id for this element, for identification purposes only
|
protected java.lang.String |
value
Value if this is an end element
|
Constructor and Description |
---|
SparqlElement()
Create a new instance of SparqlElement
|
Modifier and Type | Method and Description |
---|---|
abstract SparqlElement |
getElement(java.lang.String elemID)
Get the element with the specified unique ID.
|
java.lang.String |
getType()
Get the additional descriptive type value.
|
java.lang.String |
getUuid()
Get the uuid for this element.
|
java.lang.String |
getValue()
Get the value for this element.
|
abstract java.lang.String |
partToString()
Get a string-based description of this query component, with add type as true.
|
abstract java.lang.String |
queryString()
Get a string-based description of this query component.
|
void |
reset()
Reset the values
|
void |
setFilter(java.lang.String thisFilter)
Set the optional outer filter type for this sub-where clause.
|
void |
setFunction(java.lang.String thisFunction)
Set the filter function for this sub-where clause.
|
void |
setNot(boolean thisNot)
Set the function inverse or not declaration.
|
void |
setType(java.lang.String thisType)
Set the additional descriptive type field: distinct, named.
|
protected void |
setUuid(java.lang.String thisUuid)
Set the uuid for this element.
|
void |
setValue(java.lang.String thisValue)
Set the value for this element.
|
protected java.lang.String uuid
protected java.lang.String value
protected java.lang.String type
protected java.lang.String filter
protected java.lang.String function
protected boolean not
public void reset()
public abstract java.lang.String partToString()
public abstract java.lang.String queryString()
public abstract SparqlElement getElement(java.lang.String elemID)
elemID
- the element id.protected void setUuid(java.lang.String thisUuid)
getUuid
can retrieve it. So only set the uuid in special cases.thisUuid
- the uuid.public java.lang.String getUuid()
public void setValue(java.lang.String thisValue)
thisValue
- the name or value.public java.lang.String getValue()
public void setType(java.lang.String thisType)
thisType
- the descriptive value.public java.lang.String getType()
public void setFilter(java.lang.String thisFilter)
thisFilter
- the sub-clause function.public void setFunction(java.lang.String thisFunction)
thisFunction
- the filter function.public void setNot(boolean thisNot)
thisNot
- true if require the function inverse to be true.