ParameterMappublic class ParameterMapImpl extends java.lang.Object implements ParameterMap
ParameterMapEMPTY_INSTANCE| Constructor | Description |
|---|---|
ParameterMapImpl(Parameter... p) |
Construct this
ParameterMapImpl for the given Parameter... p |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<Parameter> |
getAllParameters() |
|
<T> T |
getValue(Parameter p) |
Get the value for the given parameter.
|
<T> T |
getValue(Parameter p,
T defaultValue) |
Get the value for the given parameter, or the defaultValue, if it has not been set.
|
ParameterMap |
init(org.apache.jena.rdf.model.Resource r) |
Initialize this
ParameterMap, making it immutable and enabling the getters. |
ParameterMap |
setValue(Parameter p,
java.lang.Object o) |
Directly set a value for a parameter.
|
public ParameterMapImpl(Parameter... p)
ParameterMapImpl for the given Parameter... pp - an arbitrary number of parameters as a varargpublic java.util.Set<Parameter> getAllParameters()
getAllParameters in interface ParameterMapParameterMaps supported parameterspublic <T> T getValue(Parameter p, T defaultValue) throws java.lang.IllegalStateException
ParameterMapgetValue in interface ParameterMapT - this methods generic return typep - the parameter to getdefaultValue - a defaultValue as fallbackdefaultVaue if the value has not been set or has been set to null;
otherwise, the value of parameter pjava.lang.IllegalStateException - if this ParameterMap has not been initialized yetpublic <T> T getValue(Parameter p) throws java.lang.IllegalStateException
ParameterMapgetValue in interface ParameterMapT - this methods generic return typep - the parameter to getjava.lang.IllegalStateException - if this ParameterMap has not been initialized yetpublic ParameterMap init(org.apache.jena.rdf.model.Resource r)
ParameterMapParameterMap, making it immutable and enabling the getters.init in interface ParameterMapr - if not null, this Resource and its corresponding subgraph will be used for
automatic parameter value assignmentParameterMap, for method chainingpublic ParameterMap setValue(Parameter p, java.lang.Object o) throws java.lang.IllegalStateException
ParameterMapsetValue in interface ParameterMapp - the parameter which should be seto - the value to set for the given parameterParameterMap, for method chainingjava.lang.IllegalStateException - if this ParameterMap has already been initializedCopyright © 2018. All rights reserved.