Returns the current extra binding for the given variable id or null if one isn't present.
13763
@Nullable
    public final Object extraBinding(int variableId) {
        if (extraBindings == null) {
            return null;
        }
        return extraBindings.get(variableId);
    }
812365
public String lookupVariableDefaultValue(String variableName) {
        ConfigVariable cv = configVariables.get(variableName);
        return cv == null ? null : cv.getDefaultValue();
    }
1357503
function getExistingWidget(id, type) {
    var existingEl = document.getElementById(id);
    var existingWidget;

    if (existingEl && (existingWidget = existingEl.__widget) && existingWidget.__type === type) {
        return existingWidget;
    }

    return null;
}
864013
function getVariable(variable) {

  if ( cached.data == null ) {
    getData();
  }

  if (variable.toUpperCase() in cached.data ) {
    return cached.data[variable.toUpperCase()];
  } else if (variable in cached.data) {
    return cached.data[variable];
  }
}
830903
public SDVariable getVariable(String name) {
        Variable v = variables.get(name);
        return v == null ? null : v.getVariable();
    }
678511
private Iterator<Tuple> getBindingsFor( VarTupleSet tuples, VarDef var)
    {
    return
      IteratorUtils.chainedIterator(
        tuples.getUnused( var),
        IteratorUtils.chainedIterator(
          tuples.getUsed( var),
          tuples.getUsedOnce( var)));
    }
688916
public @Nullable TwinTextItem getItemById(int id) {
        for(int index = getCount()-1; index >= 0; index--) {
            TwinTextItem item = getItem(index);
            if(item.getId() == id)
                return item;
        }
        return null;
    }
315873
private Interaction findContext(String id) {
        for(int i= _currentInteractions.size() - 1; i >= 0; i--) {
            Interaction ia= (Interaction) _currentInteractions.get(i);
            
            if(ia.id.equals(id)) {
                return ia;
            }
        }
        return null;
    }
1270963
public void getPredecessor(DBIDRef id, DBIDVar out) {
    if(predecessor == null) {
      out.unset();
      return;
    }
    predecessor.assignVar(id, out);
  }
502190
private static boolean variableIsParameter(Var variable) {
    Node variableParent = variable.getParentNode();

    return variableParent != null && variableParent.isParamList();
  }
114310
def varbind(name, value=Null)
      if name.respond_to? :to_str
        vb = VarBind.new(oid(name), value)
      else
        vb = name.to_varbind
        vb.value = value
      end
      vb
    end
75160
public void goToStepId(int id) {
        for (int i = 0; i < getWidgetCount(); i++) {
            Widget w = getWidget(i);
            if (w instanceof MaterialStep) {
                MaterialStep materialStep = (MaterialStep) w;
                boolean active = materialStep.getStep() == id;
                materialStep.setActive(active);
                if (active) {
                    setCurrentStepIndex(i);
                }
            }
        }
    }
367809
@Nonnull
  public EChange removeVariable (@Nullable final String sName)
  {
    if (sName == null)
      return EChange.UNCHANGED;
    return m_aMap.removeObject (sName);
  }
554320
def get_config_variable(self, config_id, offset):
        """"""

        config = self._config_variables.get(config_id)
        if config is None:
            return [b""]

        return [bytes(config.current_value[offset:offset + 20])]
376926
public int getState(Var var) {
        Integer state = config.get(var);
        if (state == null) {
            throw new RuntimeException("VarConfig does not contain var: " + var);
        }
        return state;
    }
1242770
public String getVariableShortName(VariableElement var) {
    String baseName = getVariableBaseName(var);
    if (var.getKind().isField() && !ElementUtil.isGlobalVar(var)) {
      return baseName + '_';
    }
    return baseName;
  }
519987
@SuppressWarnings("unchecked")
    public <T> T getExtraParameter(String key) {
        return (T) extraParameters.get(key);
    }