if (s == null) s = new SearchScope(intValue); UNDEFINED_SCOPES.put(intValue, s);
/** * Creates an argument for a search scope value. * * @param s The search scope value for the argument. It may be * {@code null}. * @param comment A comment that may help clarify the argument. It may * be {@code null} if there should be no comment. * * @return The argument that was created. */ public static ToCodeArgHelper createScope(final SearchScope s, final String comment) { if (s == null) { return new ToCodeArgHelper("(SearchScope) null", comment); } final SearchScope definedScope = SearchScope.definedValueOf(s.intValue()); if (definedScope == null) { return new ToCodeArgHelper("SearchScope.valueOf(" + s.intValue() + ')', comment); } else { return new ToCodeArgHelper("SearchScope." + definedScope.getName(), comment); } }
buffer.append(baseDN); buffer.append("', scope='"); buffer.append(scope.toString()); buffer.append("', derefPolicy='"); buffer.append(derefPolicy.toString());
/** * Retrieves the search scope for the LDAP URL. * * @return The search scope for the LDAP URL. */ public int getScope() { return ldapURL.getScope().intValue(); }
final SearchScope scopeObject = SearchScope.valueOf(scope); final Filter filterObject = Filter.create(filter);
buffer.append(dnScope.getName()); buffer.append("', returnRelativeDNs="); buffer.append(returnRelativeDNs);
try ss = SearchScope.definedValueOf(getNamedValueAsInteger("scope"));
if (! scope.equals(SearchScope.BASE))
final SearchScope scopeObject = SearchScope.valueOf(scope); final Filter filterObject = Filter.create(filter); ldapURL = new LDAPURL("ldap", host, port, dnObject, attributes,
buffer.append(dnScope.getName()); buffer.append("', returnRelativeDNs="); buffer.append(returnRelativeDNs);
final int scopeValue = idElement.decodeAsEnumerated().intValue(); tmpScope = SearchScope.definedValueOf(scopeValue); if (tmpScope == null)
Arrays.asList(String.valueOf(scope.intValue()))));
/** * Creates an argument for a search scope value. * * @param s The search scope value for the argument. It may be * {@code null}. * @param comment A comment that may help clarify the argument. It may * be {@code null} if there should be no comment. * * @return The argument that was created. */ public static ToCodeArgHelper createScope(final SearchScope s, final String comment) { if (s == null) { return new ToCodeArgHelper("(SearchScope) null", comment); } final SearchScope definedScope = SearchScope.definedValueOf(s.intValue()); if (definedScope == null) { return new ToCodeArgHelper("SearchScope.valueOf(" + s.intValue() + ')', comment); } else { return new ToCodeArgHelper("SearchScope." + definedScope.getName(), comment); } }
scope = SearchScope.valueOf(reader.readEnumerated()); derefPolicy = DereferencePolicy.valueOf(reader.readEnumerated()); sizeLimit = reader.readInteger();
out(p.getFirst().getName(), ": ", p.getSecond(), " (", decimalFormat.format(percent), "%)");
final int scopeValue = idElement.decodeAsEnumerated().intValue(); tmpScope = SearchScope.definedValueOf(scopeValue); if (tmpScope == null)
buffer.append(baseDN); buffer.append("', scope='"); buffer.append(scope.toString()); buffer.append("', derefPolicy='"); buffer.append(derefPolicy.toString());
if (s == null) s = new SearchScope(intValue); UNDEFINED_SCOPES.put(intValue, s);