| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | this.attributeType = attribute.getName(); |
| | | } |
| | | |
| | | if (attribute.isEmpty()) |
| | | if (attribute.isVirtual()) |
| | | { |
| | | values = new ArrayList<ByteString>(); |
| | | } |
| | | else if (attribute.isEmpty()) |
| | | { |
| | | values = new ArrayList<ByteString>(0); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | values = new ArrayList<ByteString>(attribute.size()); |
| | | } |
| | | |
| | | values = new ArrayList<ByteString>(attribute.size()); |
| | | for (AttributeValue v : attribute) |
| | | { |
| | | values.add(v.getValue()); |
| | |
| | | * |
| | | * @return A string representation of this attribute. |
| | | */ |
| | | @Override |
| | | public String toString() |
| | | { |
| | | StringBuilder buffer = new StringBuilder(); |