| | |
| | | String firstNonEmpty = getFirstNonEmpty(values); |
| | | if (firstNonEmpty != null) |
| | | { |
| | | AttributeType attr = rdn.getAttributeType(i); |
| | | attributeTypes.add(attr); |
| | | attributeTypes.add(rdn.getAttributeType(i)); |
| | | attributeNames.add(rdn.getAttributeName(i)); |
| | | attributeValues.add(ByteString.valueOfUtf8(firstNonEmpty)); |
| | | } |
| | |
| | | Object o = table.getValueAt(i, 1); |
| | | if (o instanceof String) |
| | | { |
| | | String aName = |
| | | Utilities.getAttributeNameWithoutOptions(attrName); |
| | | if (schema.hasAttributeType(aName.toLowerCase())) |
| | | String aName = Utilities.getAttributeNameWithoutOptions(attrName); |
| | | if (schema.hasAttributeType(aName)) |
| | | { |
| | | AttributeType attr = schema.getAttributeType(aName.toLowerCase()); |
| | | attributeTypes.add(attr); |
| | | attributeTypes.add(schema.getAttributeType(aName)); |
| | | attributeNames.add(attrName); |
| | | attributeValues.add(ByteString.valueOfUtf8((String) o)); |
| | | } |