Package com.evolveum.midpoint.prism
Interface ItemFactory
-
public interface ItemFactory
Factory for items (property, reference, container, object) and item values. Eliminates the need of calls like "new PrismPropertyValue(...)" in midPoint 3.x.
-
-
Method Summary
-
-
-
Method Detail
-
createValue
PrismValue createValue(Object realValue)
-
createProperty
<T> PrismProperty<T> createProperty(QName itemName)
-
createProperty
<T> PrismProperty<T> createProperty(QName itemName, PrismPropertyDefinition<T> definition)
-
createPropertyValue
<T> PrismPropertyValue<T> createPropertyValue()
-
createPropertyValue
<T> PrismPropertyValue<T> createPropertyValue(T content)
-
createPropertyValue
<T> PrismPropertyValue<T> createPropertyValue(XNode rawContent)
-
createPropertyValue
<T> PrismPropertyValue<T> createPropertyValue(T value, OriginType originType, Objectable originObject)
-
createReference
PrismReference createReference(QName name)
-
createReference
PrismReference createReference(QName name, PrismReferenceDefinition definition)
-
createReferenceValue
PrismReferenceValue createReferenceValue()
-
createReferenceValue
PrismReferenceValue createReferenceValue(PrismObject<?> target)
-
createReferenceValue
PrismReferenceValue createReferenceValue(String targetOid)
-
createReferenceValue
PrismReferenceValue createReferenceValue(String oid, OriginType originType, Objectable originObject)
-
createReferenceValue
PrismReferenceValue createReferenceValue(String oid, QName targetType)
-
createContainer
PrismContainer createContainer(QName name)
-
createContainer
<C extends Containerable> PrismContainer<C> createContainer(QName name, PrismContainerDefinition<C> definition)
-
createObject
<O extends Objectable> PrismObject<O> createObject(QName name, PrismObjectDefinition<O> definition)
-
createObjectValue
<O extends Objectable> PrismObjectValue<O> createObjectValue(O objectable)
-
createContainerValue
<C extends Containerable> PrismContainerValue<C> createContainerValue(C containerable)
-
createContainerValue
<C extends Containerable> PrismContainerValue<C> createContainerValue()
-
createDummyItem
@Experimental <V extends PrismValue,D extends ItemDefinition> Item<V,D> createDummyItem(Item<V,D> itemOld, D definition, ItemPath path) throws SchemaException
Creates a dummy container with a fixed path. This container is good for storing values, e.g. in case of delta computations to get preview of the new item. But such container cannot be used to fit into any prism structure (cannot set parent).- Throws:
SchemaException
-
-