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:
createPropertyin interfaceItemFactory
-
createProperty
public <T> PrismProperty<T> createProperty(QName itemName, PrismPropertyDefinition<T> definition)
- Specified by:
createPropertyin interfaceItemFactory
-
createPropertyValue
public <T> PrismPropertyValue<T> createPropertyValue()
- Specified by:
createPropertyValuein interfaceItemFactory
-
createPropertyValue
public <T> PrismPropertyValue<T> createPropertyValue(T realValue)
- Specified by:
createPropertyValuein interfaceItemFactory
-
createPropertyValue
public <T> PrismPropertyValue<T> createPropertyValue(XNode rawValue)
- Specified by:
createPropertyValuein interfaceItemFactory
-
createPropertyValue
public <T> PrismPropertyValue<T> createPropertyValue(T value, OriginType originType, Objectable originObject)
- Specified by:
createPropertyValuein interfaceItemFactory
-
createReference
public PrismReference createReference(QName name)
- Specified by:
createReferencein interfaceItemFactory
-
createReference
public PrismReference createReference(QName name, PrismReferenceDefinition definition)
- Specified by:
createReferencein interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue()
- Specified by:
createReferenceValuein interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue(PrismObject<?> target)
- Specified by:
createReferenceValuein interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue(String targetOid)
- Specified by:
createReferenceValuein interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue(String oid, OriginType originType, Objectable originObject)
- Specified by:
createReferenceValuein interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue(String oid, QName targetType)
- Specified by:
createReferenceValuein interfaceItemFactory
-
createValue
public PrismValue createValue(Object realValue)
- Specified by:
createValuein interfaceItemFactory
-
createContainer
public PrismContainer createContainer(QName name)
- Specified by:
createContainerin interfaceItemFactory
-
createContainer
public <C extends Containerable> PrismContainer<C> createContainer(QName name, PrismContainerDefinition<C> definition)
- Specified by:
createContainerin interfaceItemFactory
-
createObject
public <O extends Objectable> PrismObject<O> createObject(QName name, PrismObjectDefinition<O> definition)
- Specified by:
createObjectin interfaceItemFactory
-
createObjectValue
public <O extends Objectable> PrismObjectValue<O> createObjectValue(O objectable)
- Specified by:
createObjectValuein interfaceItemFactory
-
createContainerValue
public <C extends Containerable> PrismContainerValue<C> createContainerValue(C containerable)
- Specified by:
createContainerValuein interfaceItemFactory
-
createContainerValue
public <C extends Containerable> PrismContainerValue<C> createContainerValue()
- Specified by:
createContainerValuein 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:ItemFactoryCreates 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:
createDummyItemin interfaceItemFactory- Throws:
SchemaException
-
-