Lines Matching refs:attr
738 // returns number of bytes that were parsed. Adds the values to attr
962 private void encodeAttribute(BerEncoder ber, Attribute attr)
966 ber.encodeString(attr.getID(), isLdapv3);
968 NamingEnumeration enum_ = attr.getAll();
980 "Malformed '" + attr.getID() + "' attribute value");
987 private static boolean hasNoValue(Attribute attr) throws NamingException {
988 return attr.size() == 0 || (attr.size() == 1 && attr.get() == null);
1011 Attribute attr;
1020 attr = (Attribute)enum_.next();
1023 if (hasNoValue(attr)) {
1025 "'" + attr.getID() + "' has no values.");
1027 encodeAttribute(ber, attr);