public void setRealValue(T realValue) { if (realValue == null) { // Just make sure there are no values clear(); } else { setValue(new PrismPropertyValueImpl<>(realValue)); } }
@Override public <IV extends PrismValue,ID extends ItemDefinition,I extends Item<IV,ID>> void removeItem(ItemPath path, Class<I> itemType) { // Objects are only a single-valued containers. The path of the object itself is "empty". // Fix this special behavior here. ((PrismObjectValueImpl<O>) getValue()).removeItem(path, itemType); }
public PrismPropertyDefinition createPropertyDefinition(QName name) { PrismPropertyDefinition propDef = new PrismPropertyDefinitionImpl(name, null, prismContext); addDefinition(propDef); return propDef; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
public void setRealValues(T... realValues) { clear(); if (realValues == null || realValues.length == 0) { // nothing to do, already cleared } else { for (T realValue: realValues) { addValue(new PrismPropertyValueImpl<>(realValue)); } } }
public void addRealValue(T valueToAdd) { PrismPropertyValue<T> pval = new PrismPropertyValueImpl<>(valueToAdd); addValue(pval); }
@Override protected void propagateDeepCloneDefinition(boolean ultraDeep, PrismContainerDefinition<C> clonedDef, Consumer<ItemDefinition> postCloneAction) { for(PrismContainerValue<C> cval: getValues()) { ((PrismContainerValueImpl<C>) cval).deepCloneDefinition(ultraDeep, clonedDef, postCloneAction); } }
@Override public <T> MutablePrismPropertyDefinition<T> createPropertyDefinition(QName name, QName typeName, Collection<? extends DisplayableValue<T>> allowedValues, T defaultValue) { return new PrismPropertyDefinitionImpl<>(name, typeName, prismContext, allowedValues, defaultValue); } }
/** * Returns true if property is mandatory. * * @return true if property is mandatory. */ @Override public boolean isMandatory() { return getMinOccurs() > 0; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
@Override public <C extends Containerable> PrismContainerValue<C> createContainerValue() { return new PrismContainerValueImpl<>(prismContext); } }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }
public PrismContainerValue asPrismContainerValue() { if (_containerValue == null) { _containerValue = new PrismContainerValueImpl<>(this); } return _containerValue; }