public boolean isOrdered() { return wrapped.isOrdered(); }
/** * Construct a new instance from the supplied Attribute. * * @param attribute the Attribute to copy. */ public NameAwareAttribute(Attribute attribute) { this(attribute.getID(), attribute.isOrdered()); try { NamingEnumeration<?> incomingValues = attribute.getAll(); while(incomingValues.hasMore()) { this.add(incomingValues.next()); } } catch (NamingException e) { throw LdapUtils.convertLdapException(e); } if (attribute instanceof NameAwareAttribute) { NameAwareAttribute nameAwareAttribute = (NameAwareAttribute) attribute; populateValuesAsNames(nameAwareAttribute, this); } }
/** * Construct a new instance from the supplied Attribute. * * @param attribute the Attribute to copy. */ public NameAwareAttribute(Attribute attribute) { this(attribute.getID(), attribute.isOrdered()); try { NamingEnumeration<?> incomingValues = attribute.getAll(); while(incomingValues.hasMore()) { this.add(incomingValues.next()); } } catch (NamingException e) { throw LdapUtils.convertLdapException(e); } if (attribute instanceof NameAwareAttribute) { NameAwareAttribute nameAwareAttribute = (NameAwareAttribute) attribute; populateValuesAsNames(nameAwareAttribute, this); } }
/** * Construct a new instance from the supplied Attribute. * * @param attribute the Attribute to copy. */ public NameAwareAttribute(Attribute attribute) { this(attribute.getID(), attribute.isOrdered()); try { NamingEnumeration<?> incomingValues = attribute.getAll(); while(incomingValues.hasMore()) { this.add(incomingValues.next()); } } catch (NamingException e) { throw LdapUtils.convertLdapException(e); } if (attribute instanceof NameAwareAttribute) { NameAwareAttribute nameAwareAttribute = (NameAwareAttribute) attribute; populateValuesAsNames(nameAwareAttribute, this); } }
/** * Construct a new instance from the supplied Attribute. * * @param attribute the Attribute to copy. */ public NameAwareAttribute(Attribute attribute) { this(attribute.getID(), attribute.isOrdered()); try { NamingEnumeration<?> incomingValues = attribute.getAll(); while(incomingValues.hasMore()) { this.add(incomingValues.next()); } } catch (NamingException e) { throw LdapUtils.convertLdapException(e); } if (attribute instanceof NameAwareAttribute) { NameAwareAttribute nameAwareAttribute = (NameAwareAttribute) attribute; populateValuesAsNames(nameAwareAttribute, this); } }