Interface ParameterValue
- All Known Implementing Classes:
- DurationParameterValue,- TemporalParameterValue
public interface ParameterValue
Query parameter value holder.
- 
Method SummaryModifier and TypeMethodDescriptionGets this parameter value as a string which can be inserted directly into a query.getValue()Gets the value held by this wrapper.default booleanisSet()Whether this parameter value is set or it represents just the parameter identification.toQueryValues(int size) Builds a list of the specified size containing the value(s) represented by this parameter value.default intReturns the number of values held by this instance.
- 
Method Details- 
getValueObject getValue()Gets the value held by this wrapper.- Returns:
- The parameter value
 
- 
getQueryStringString getQueryString()Gets this parameter value as a string which can be inserted directly into a query.- Returns:
- Value as query string
 
- 
toQueryValuesBuilds a list of the specified size containing the value(s) represented by this parameter value.If this instance does not contain enough values to fill in the list of the specified size, its remainder is filled with SparqlConstants.UNDEFs.The resulting list will be used to build a SPARQL VALUES table. - Parameters:
- size- Requested size of value list
- Returns:
- List of values
 
- 
isSetdefault boolean isSet()Whether this parameter value is set or it represents just the parameter identification.- Returns:
- trueif this instance represents an explicit parameter value
 
- 
valueCountdefault int valueCount()Returns the number of values held by this instance.Will return number different from 1 only for collection value parameters. - Returns:
- Number of values represented by this instance
 
 
-