Package com.evolveum.midpoint.prism.impl
Class ItemFactoryImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.ItemFactoryImpl
-
- All Implemented Interfaces:
ItemFactory
public class ItemFactoryImpl extends Object implements ItemFactory
-
-
Constructor Summary
Constructors Constructor Description ItemFactoryImpl(PrismContextImpl prismContext)
-
Method Summary
-
-
-
Constructor Detail
-
ItemFactoryImpl
public ItemFactoryImpl(PrismContextImpl prismContext)
-
-
Method Detail
-
createProperty
public <T> PrismProperty<T> createProperty(QName itemName)
- Specified by:
createProperty
in interfaceItemFactory
-
createProperty
public <T> PrismProperty<T> createProperty(QName itemName, PrismPropertyDefinition<T> definition)
- Specified by:
createProperty
in interfaceItemFactory
-
createPropertyValue
public <T> PrismPropertyValue<T> createPropertyValue()
- Specified by:
createPropertyValue
in interfaceItemFactory
-
createPropertyValue
public <T> PrismPropertyValue<T> createPropertyValue(T realValue)
- Specified by:
createPropertyValue
in interfaceItemFactory
-
createPropertyValue
public <T> PrismPropertyValue<T> createPropertyValue(XNode rawValue)
- Specified by:
createPropertyValue
in interfaceItemFactory
-
createPropertyValue
public <T> PrismPropertyValue<T> createPropertyValue(T value, OriginType originType, Objectable originObject)
- Specified by:
createPropertyValue
in interfaceItemFactory
-
createReference
public PrismReference createReference(QName name)
- Specified by:
createReference
in interfaceItemFactory
-
createReference
public PrismReference createReference(QName name, PrismReferenceDefinition definition)
- Specified by:
createReference
in interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue()
- Specified by:
createReferenceValue
in interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue(PrismObject<?> target)
- Specified by:
createReferenceValue
in interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue(String targetOid)
- Specified by:
createReferenceValue
in interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue(String oid, OriginType originType, Objectable originObject)
- Specified by:
createReferenceValue
in interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue(String oid, QName targetType)
- Specified by:
createReferenceValue
in interfaceItemFactory
-
createValue
public PrismValue createValue(Object realValue)
- Specified by:
createValue
in interfaceItemFactory
-
createContainer
public PrismContainer createContainer(QName name)
- Specified by:
createContainer
in interfaceItemFactory
-
createContainer
public <C extends Containerable> PrismContainer<C> createContainer(QName name, PrismContainerDefinition<C> definition)
- Specified by:
createContainer
in interfaceItemFactory
-
createObject
public <O extends Objectable> PrismObject<O> createObject(QName name, PrismObjectDefinition<O> definition)
- Specified by:
createObject
in interfaceItemFactory
-
createObjectValue
public <O extends Objectable> PrismObjectValue<O> createObjectValue(O objectable)
- Specified by:
createObjectValue
in interfaceItemFactory
-
createContainerValue
public <C extends Containerable> PrismContainerValue<C> createContainerValue(C containerable)
- Specified by:
createContainerValue
in interfaceItemFactory
-
createContainerValue
public <C extends Containerable> PrismContainerValue<C> createContainerValue()
- Specified by:
createContainerValue
in interfaceItemFactory
-
createDummyItem
public <V extends PrismValue,D extends ItemDefinition<?>> Item<V,D> createDummyItem(Item<V,D> itemOld, D definition, ItemPath path) throws SchemaException
Description copied from interface:ItemFactory
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).- Specified by:
createDummyItem
in interfaceItemFactory
- Throws:
SchemaException
-
-