@Override public String getId() { return wrappedContext.getId(); }
public String getId() { return tableId.getId(); }
@Override public boolean isEnabled() { return contextManager.getActiveContextIds().contains( wrappedContext.getId()); }
/** * @return the context id */ @SuppressWarnings("null") public @NonNull String getId() { return this.tableId.getId(); }
public boolean isPartialMatch(ContextSet contextSet, TriggerSequence sequence) { List<Context> contexts = contextSet.getContexts(); ListIterator<Context> it = contexts.listIterator(contexts.size()); while (it.hasPrevious()) { Context c = it.previous(); BindingTable table = getTable(c.getId()); if (table != null) { if (table.isPartialMatch(sequence)) { return true; } } } return false; }
public boolean isPartialMatch(ContextSet contextSet, TriggerSequence sequence) { List<Context> contexts = contextSet.getContexts(); ListIterator<Context> it = contexts.listIterator(contexts.size()); while (it.hasPrevious()) { Context c = it.previous(); BindingTable table = getTable(c.getId()); if (table != null) { if (table.isPartialMatch(sequence)) { return true; } } } return false; }
public Collection<Binding> getActiveBindings() { ArrayList<Binding> bindings = new ArrayList<Binding>(); for (Context ctx : definedTables.getContexts()) { BindingTable table = getTable(ctx.getId()); if (table != null) { bindings.addAll(table.getBindings()); } } return bindings; }
public Collection<Binding> getActiveBindings() { ArrayList<Binding> bindings = new ArrayList<Binding>(); for (Context ctx : definedTables.getContexts()) { BindingTable table = getTable(ctx.getId()); if (table != null) { bindings.addAll(table.getBindings()); } } return bindings; }
public Collection<Binding> getConflictsFor(ContextSet contextSet, TriggerSequence triggerSequence) { Collection<Binding> matches = new ArrayList<Binding>(); for (Context ctx : contextSet.getContexts()) { BindingTable table = getTable(ctx.getId()); if (table != null) { final Collection<Binding> matchesFor = table.getConflictsFor(triggerSequence); if (matchesFor != null) { matches.addAll(matchesFor); } } } return matches.size() == 0 ? null : matches; }
public Collection<Binding> getBindingsFor(ContextSet contextSet, ParameterizedCommand cmd) { Collection<Binding> bindings = new ArrayList<Binding>(); for (Context ctx : contextSet.getContexts()) { BindingTable table = getTable(ctx.getId()); if (table != null) { Collection<Binding> matches = table.getSequencesFor(cmd); if (matches != null) { bindings.addAll(matches); } } } return bindings; }
public Collection<Binding> getBindingsFor(ContextSet contextSet, ParameterizedCommand cmd) { Collection<Binding> bindings = new ArrayList<Binding>(); for (Context ctx : contextSet.getContexts()) { BindingTable table = getTable(ctx.getId()); if (table != null) { Collection<Binding> matches = table.getSequencesFor(cmd); if (matches != null) { bindings.addAll(matches); } } } return bindings; }
public Collection<Binding> getAllConflicts() { Collection<Binding> conflictsList = new ArrayList<Binding>(); for (Context ctx : definedTables.getContexts()) { BindingTable table = getTable(ctx.getId()); if (table != null) { Collection<Binding> conflictsInTable = table.getConflicts(); if (conflictsInTable != null) { conflictsList.addAll(conflictsInTable); } } } return conflictsList; }
public Collection<Binding> getAllConflicts() { Collection<Binding> conflictsList = new ArrayList<Binding>(); for (Context ctx : definedTables.getContexts()) { BindingTable table = getTable(ctx.getId()); if (table != null) { Collection<Binding> conflictsInTable = table.getConflicts(); if (conflictsInTable != null) { conflictsList.addAll(conflictsInTable); } } } return conflictsList; }
boolean isPartialMatch(@NonNull ContextSet contextSet, @NonNull TriggerSequence sequence) { List<Context> contexts = contextSet.getContexts(); ListIterator<Context> it = contexts.listIterator(contexts.size()); while (it.hasPrevious()) { Context c = it.previous(); BindingTable table = getTable(c.getId()); if (table != null) { if (table.isPartialMatch(sequence)) { return true; } } } return false; }
@NonNull Collection<@NonNull Binding> getAllConflicts() { Collection<@NonNull Binding> conflictsList = new ArrayList<>(); for (Context ctx : this.definedTables.getContexts()) { BindingTable table = getTable(ctx.getId()); if (table != null) { Collection<@NonNull Binding> conflictsInTable = table.getConflicts(); conflictsList.addAll(conflictsInTable); } } return conflictsList; }
@NonNull Collection<@NonNull Binding> getBindingsFor(@NonNull ContextSet contextSet, @NonNull ParameterizedCommand cmd) { Collection<@NonNull Binding> bindings = new ArrayList<>(); for (Context ctx : contextSet.getContexts()) { BindingTable table = getTable(ctx.getId()); if (table != null) { Collection<@NonNull Binding> matches = table.getSequencesFor(cmd); bindings.addAll(matches); } } return bindings; }
public void init(Context context) { setId(context.getId()); setModelObject(context); try { setName(context.getName()); setDescription(context.getDescription()); } catch (NotDefinedException e) { } } }