Class VarUtilsExtra
java.lang.Object
org.apache.jena.sparql.service.enhancer.impl.util.VarUtilsExtra
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.sparql.core.Var
freshVar
(String baseName, Collection<org.apache.jena.sparql.core.Var> excludedVars) Allocate a variable whose name is not in black list
-
Constructor Details
-
VarUtilsExtra
public VarUtilsExtra()
-
-
Method Details
-
freshVar
public static org.apache.jena.sparql.core.Var freshVar(String baseName, Collection<org.apache.jena.sparql.core.Var> excludedVars) Allocate a variable whose name is not in black list- Parameters:
baseName
- The desired name. If it is contained in the set of excluded vars then repeated attempts with the name pattern "baseName_counter" are made until successful.excludedVars
- The set of excluded Var instances- Returns:
- The fresh variable
-