| | |
| | | |
| | | if (attribute.hasOptions()) |
| | | { |
| | | HashSet<String> options = attribute.getOptions(); |
| | | |
| | | LinkedHashSet<AttributeValue> valueSet = attribute.getValues(); |
| | | if ((valueSet == null) || valueSet.isEmpty()) |
| | | { |
| | | return removeAttribute(attribute.getAttributeType()); |
| | | return removeAttribute(attribute.getAttributeType(), options); |
| | | } |
| | | |
| | | HashSet<String> options = attribute.getOptions(); |
| | | |
| | | List<Attribute> attrList = |
| | | getAttribute(attribute.getAttributeType()); |
| | | if (attrList == null) |
| | |
| | | |
| | | if (existingValueSet.isEmpty()) |
| | | { |
| | | return removeAttribute(attribute.getAttributeType()); |
| | | return removeAttribute(attribute.getAttributeType(), |
| | | options); |
| | | } |
| | | |
| | | return true; |