@SuppressWarnings("unchecked") public void mergeContent(PrismContainerValue<?> other, List<QName> overwrite) throws SchemaException { List<ItemName> remainingToOverwrite = overwrite.stream().map(ItemName::fromQName).collect(Collectors.toList()); if (other.getItems() != null) { for (Item<?, ?> otherItem : other.getItems()) { Item<?, ?> existingItem = findItem(otherItem.getElementName()); if (QNameUtil.remove(remainingToOverwrite, otherItem.getElementName()) || existingItem != null && existingItem.isSingleValue()) { remove(existingItem); } merge(otherItem.clone()); } } remainingToOverwrite.forEach(name -> removeItem(name, Item.class)); }
if (i.isSingleValue()){ return ((PrismProperty) i).getRealValue(); if (i.isSingleValue()){ return ((PrismReference) i).getValue().asReferencable(); if (i.isSingleValue()){ return ((PrismContainer) i).getValue().asContainerable();
if (i.isSingleValue()){ return normalize(((PrismProperty) i).getRealValue(), jrField.getValueClass()); if (i.isSingleValue()){ return ObjectTypeUtil.createObjectRef(((PrismReference) i).getValue()); if (i.isSingleValue()){ return ((PrismContainer) i).getValue().asContainerable();