private void assertSourceNotNull(ObjectType source, ItemDeltaItem<PrismContainerValue<AssignmentType>,PrismContainerDefinition<AssignmentType>> assignmentIdi) { if (source == null) { throw new IllegalArgumentException("Source cannot be null (while evaluating assignment "+assignmentIdi.getAnyItem()+")"); } }
public QName getElementName() { Item<V,D> anyItem = getAnyItem(); if (anyItem != null) { return anyItem.getElementName(); } if (delta != null) { return delta.getElementName(); } return null; }
public boolean isContainer() { Item<V,D> item = getAnyItem(); if (item != null) { return item instanceof PrismContainer<?>; } if (getDelta() != null) { return getDelta() instanceof ContainerDelta<?>; } return false; }
public ItemDefinition getDefinition() { Item<V,D> anyItem = getAnyItem(); if (anyItem != null) { return anyItem.getDefinition(); } if (delta != null) { return delta.getDefinition(); } return null; }
public boolean isProperty() { Item<V,D> item = getAnyItem(); if (item != null) { return item instanceof PrismProperty<?>; } if (getDelta() != null) { return getDelta() instanceof PropertyDelta<?>; } return false; }
@Override public Long getAssignmentId() { Item<PrismContainerValue<AssignmentType>, PrismContainerDefinition<AssignmentType>> any = assignmentIdi.getAnyItem(); return any != null && !any.getValues().isEmpty() ? any.getAnyValue().getId() : null; }
sb.append("inducement "); PrismContainer<AssignmentType> assignment = (PrismContainer<AssignmentType>) assignmentIdi.getAnyItem(); AssignmentType assignmentType = assignment != null ? assignment.getRealValue() : null; if (assignmentType != null) {
/** * @return */ public boolean isStructuredProperty() { if (!isProperty()) { return false; } PrismProperty<?> property = (PrismProperty<?>) getAnyItem(); Object realValue = property.getAnyRealValue(); if (realValue != null) { return realValue instanceof Structured; } PropertyDelta<?> delta = (PropertyDelta<?>) getDelta(); realValue = delta.getAnyRealValue(); if (realValue != null) { return realValue instanceof Structured; } return false; }
Item<IV,ID> subAnyItem = subIdi.getAnyItem(); Collection<ItemDelta<?,?>> subSubItemDeltas = new ArrayList<>(); for (ItemDelta<?,?> subItemDelta: subItemDeltas) {