Class PrismForJAXBUtil
java.lang.Object
com.evolveum.midpoint.prism.impl.xjc.PrismForJAXBUtil
- Author:
- lazyman, semancik
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
accept
(Object object, JaxbVisitor visitor) static PrismContainer<?>
createContainer
(PrismContainerValue parentValue, QName name) static <IV extends PrismValue,
ID extends ItemDefinition<?>, I extends Item<IV, ID>>
IcreateItem
(PrismContainerValue parentValue, QName name, Class<I> type) static PrismProperty<?>
createProperty
(PrismContainerValue parentValue, QName name) static PrismReference
createReference
(PrismContainerValue parentValue, QName name) static <T> List<T>
getAny
(PrismContainerValue value, Class<T> clazz) static <T extends PrismContainer<?>>
TgetContainer
(PrismContainerValue parentValue, QName name) static <T extends Containerable>
PrismContainerValue<T>getFieldContainerValue
(PrismContainerValue<?> parent, QName fieldName) static <T extends Containerable>
TgetFieldSingleContainerable
(PrismContainerValue<?> parent, QName fieldName, Class<T> fieldClass) static SearchFilterType
getFilter
(PrismReferenceValue referenceValue) static <T> T
getPropertyValue
(PrismContainerValue container, QName name, Class<T> clazz) static <T> List<T>
getPropertyValues
(PrismContainerValue<?> container, QName name, Class<T> clazz) static PrismReference
getReference
(PrismContainerValue parent, QName fieldName) static MapXNode
static Objectable
static PolyStringType
static PrismReferenceValue
getReferenceValue
(PrismContainerValue<?> parent, QName name) static <T extends Objectable>
PrismReferenceValueobjectableAsReferenceValue
(T objectable, PrismReference reference) static <T extends Containerable>
booleansetFieldContainerValue
(PrismContainerValue<?> parent, ItemName fieldName, PrismContainerValue<T> fieldContainerValue) static <T> void
setPropertyValue
(PrismContainerValue<?> container, ItemName name, T value) static void
setReferenceFilterClauseXNode
(PrismReferenceValue rval, SearchFilterType filterType) static void
setReferenceTargetName
(PrismReferenceValue rval, PolyStringType name) static void
setReferenceValueAsObject
(PrismContainerValue parentValue, QName referenceQName, PrismObject targetObject) This method must merge new value with potential existing value of the reference.static void
setReferenceValueAsRef
(PrismContainerValue<?> parentValue, QName referenceName, PrismReferenceValue value) This method must merge new value with potential existing value of the reference.static PrismObject
setupContainerValue
(PrismObject prismObject, PrismContainerValue containerValue)
-
Method Details
-
getPropertyValue
-
getPropertyValues
public static <T> List<T> getPropertyValues(PrismContainerValue<?> container, QName name, Class<T> clazz) throws PrismContainerValue.RemovedItemDefinitionException -
setPropertyValue
-
getFieldContainerValue
public static <T extends Containerable> PrismContainerValue<T> getFieldContainerValue(PrismContainerValue<?> parent, QName fieldName) -
getFieldSingleContainerable
public static <T extends Containerable> T getFieldSingleContainerable(PrismContainerValue<?> parent, QName fieldName, Class<T> fieldClass) -
getContainer
public static <T extends PrismContainer<?>> T getContainer(PrismContainerValue parentValue, QName name) throws PrismContainerValue.RemovedItemDefinitionException -
createContainer
-
createReference
-
createProperty
-
createItem
public static <IV extends PrismValue,ID extends ItemDefinition<?>, I createItemI extends Item<IV, ID>> (PrismContainerValue parentValue, QName name, Class<I> type) -
setFieldContainerValue
public static <T extends Containerable> boolean setFieldContainerValue(PrismContainerValue<?> parent, ItemName fieldName, PrismContainerValue<T> fieldContainerValue) -
getReferenceValue
-
setReferenceValueAsRef
public static void setReferenceValueAsRef(PrismContainerValue<?> parentValue, QName referenceName, PrismReferenceValue value) This method must merge new value with potential existing value of the reference. E.g. it is possible to call setResource(..) and then setResourceRef(..) with the same OID. In that case the result should be one reference that has both OID/type/filter and object. Assumes single-value reference -
setReferenceValueAsObject
public static void setReferenceValueAsObject(PrismContainerValue parentValue, QName referenceQName, PrismObject targetObject) This method must merge new value with potential existing value of the reference. E.g. it is possible to call setResource(..) and then setResourceRef(..) with the same OID. In that case the result should be one reference that has both OID/type/filter and object. Assumes single-value reference -
objectableAsReferenceValue
public static <T extends Objectable> PrismReferenceValue objectableAsReferenceValue(T objectable, PrismReference reference) -
getAny
-
setupContainerValue
public static PrismObject setupContainerValue(PrismObject prismObject, PrismContainerValue containerValue) -
getReference
public static PrismReference getReference(PrismContainerValue parent, QName fieldName) throws PrismContainerValue.RemovedItemDefinitionException -
getReferenceObjectable
-
setReferenceFilterClauseXNode
public static void setReferenceFilterClauseXNode(PrismReferenceValue rval, SearchFilterType filterType) -
getReferenceFilterClauseXNode
-
getReferenceTargetName
-
setReferenceTargetName
-
accept
-
getFilter
-