Package com.evolveum.midpoint.prism.impl
Class ItemFactoryImpl
java.lang.Object
com.evolveum.midpoint.prism.impl.ItemFactoryImpl
- All Implemented Interfaces:
ItemFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateContainer
(QName name) <C extends Containerable>
PrismContainer<C>createContainer
(QName name, PrismContainerDefinition<C> definition) <C extends Containerable>
PrismContainerValue<C><C extends Containerable>
PrismContainerValue<C>createContainerValue
(C containerable) <V extends PrismValue,
D extends ItemDefinition<?>>
Item<V,D> createDummyItem
(Item<V, D> itemOld, D definition, ItemPath path) Creates a dummy container with a fixed path.<O extends Objectable>
PrismObject<O>createObject
(QName name, PrismObjectDefinition<O> definition) <O extends Objectable>
PrismObjectValue<O>createObjectValue
(O objectable) <T> PrismProperty<T>
createProperty
(QName itemName) <T> PrismProperty<T>
createProperty
(QName itemName, PrismPropertyDefinition<T> definition) <T> PrismPropertyValue<T>
<T> PrismPropertyValue<T>
createPropertyValue
(XNode rawValue) <T> PrismPropertyValue<T>
createPropertyValue
(T realValue) <T> PrismPropertyValue<T>
createPropertyValue
(T value, OriginType originType, Objectable originObject) createReference
(QName name) createReference
(QName name, PrismReferenceDefinition definition) createReferenceValue
(PrismObject<?> target) createReferenceValue
(String targetOid) createReferenceValue
(String oid, OriginType originType, Objectable originObject) createReferenceValue
(String oid, QName targetType) createValue
(Object realValue)
-
Constructor Details
-
ItemFactoryImpl
-
-
Method Details
-
createProperty
- Specified by:
createProperty
in interfaceItemFactory
-
createProperty
- Specified by:
createProperty
in interfaceItemFactory
-
createPropertyValue
- Specified by:
createPropertyValue
in interfaceItemFactory
-
createPropertyValue
- Specified by:
createPropertyValue
in interfaceItemFactory
-
createPropertyValue
- Specified by:
createPropertyValue
in interfaceItemFactory
-
createPropertyValue
public <T> PrismPropertyValue<T> createPropertyValue(T value, OriginType originType, Objectable originObject) - Specified by:
createPropertyValue
in interfaceItemFactory
-
createReference
- Specified by:
createReference
in interfaceItemFactory
-
createReference
- Specified by:
createReference
in interfaceItemFactory
-
createReferenceValue
- Specified by:
createReferenceValue
in interfaceItemFactory
-
createReferenceValue
- Specified by:
createReferenceValue
in interfaceItemFactory
-
createReferenceValue
- Specified by:
createReferenceValue
in interfaceItemFactory
-
createReferenceValue
public PrismReferenceValue createReferenceValue(String oid, OriginType originType, Objectable originObject) - Specified by:
createReferenceValue
in interfaceItemFactory
-
createReferenceValue
- Specified by:
createReferenceValue
in interfaceItemFactory
-
createValue
- Specified by:
createValue
in interfaceItemFactory
-
createContainer
- 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
- Specified by:
createObjectValue
in interfaceItemFactory
-
createContainerValue
- Specified by:
createContainerValue
in interfaceItemFactory
-
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 SchemaExceptionDescription 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
-