public Collection getBindingNames() { // If no conainer, i.e. a page, then no bindings. if (_container == null) return null; HashSet result = new HashSet(); // All the informal bindings go into the bindings Map. if (_bindings != null) result.addAll(_bindings.keySet()); // Now, iterate over the formal parameters and add the formal parameters // that have a binding. List names = getSpecification().getParameterNames(); int count = names.size(); for (int i = 0; i < count; i++) { String name = (String) names.get(i); if (result.contains(name)) continue; if (getBinding(name) != null) result.add(name); } return result; }
public Collection getBindingNames() { // If no conainer, i.e. a page, then no bindings. if (_container == null) return null; HashSet result = new HashSet(); // All the informal bindings go into the bindings Map. if (_bindings != null) result.addAll(_bindings.keySet()); // Now, iterate over the formal parameters and add the formal parameters // that have a binding. List names = getSpecification().getParameterNames(); int count = names.size(); for (int i = 0; i < count; i++) { String name = (String) names.get(i); if (result.contains(name)) continue; if (getBinding(name) != null) result.add(name); } return result; }
/** @since 4.0 */ private boolean isFormalParameter(String name) { Defense.notNull(name, "name"); return getSpecification().getParameter(name) != null; }
/** @since 4.0 */ private boolean isFormalParameter(String name) { Defense.notNull(name, "name"); return getSpecification().getParameter(name) != null; }