Class PrismForJAXBUtil
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.xjc.PrismForJAXBUtil
-
public final class PrismForJAXBUtil extends Object
- Author:
- lazyman, semancik
-
-
Method Summary
-
-
-
Method Detail
-
getPropertyValue
public static <T> T getPropertyValue(PrismContainerValue container, QName name, Class<T> clazz)
-
getPropertyValues
public static <T> List<T> getPropertyValues(PrismContainerValue<?> container, QName name, Class<T> clazz)
-
setPropertyValue
public static <T> void setPropertyValue(PrismContainerValue<?> container, ItemName name, T value)
-
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)
-
createContainer
public static PrismContainer<?> createContainer(PrismContainerValue parentValue, QName name)
-
createReference
public static PrismReference createReference(PrismContainerValue parentValue, QName name)
-
createProperty
public static PrismProperty<?> createProperty(PrismContainerValue parentValue, QName name)
-
createItem
public static <IV extends PrismValue,ID extends ItemDefinition,I extends Item<IV,ID>> I createItem(PrismContainerValue parentValue, QName name, Class<I> type)
-
setFieldContainerValue
public static <T extends Containerable> boolean setFieldContainerValue(PrismContainerValue<?> parent, ItemName fieldName, PrismContainerValue<T> fieldContainerValue)
-
getReferenceValue
public static PrismReferenceValue getReferenceValue(PrismContainerValue<?> parent, QName name)
-
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
public static <T> List<T> getAny(PrismContainerValue value, Class<T> clazz)
-
setupContainerValue
public static PrismObject setupContainerValue(PrismObject prismObject, PrismContainerValue containerValue)
-
getReference
public static PrismReference getReference(PrismContainerValue parent, QName fieldName)
-
getReferenceObjectable
public static Objectable getReferenceObjectable(PrismReferenceValue rval)
-
setReferenceFilterClauseXNode
public static void setReferenceFilterClauseXNode(PrismReferenceValue rval, SearchFilterType filterType)
-
getReferenceFilterClauseXNode
public static MapXNode getReferenceFilterClauseXNode(PrismReferenceValue rval)
-
getReferenceTargetName
public static PolyStringType getReferenceTargetName(PrismReferenceValue rval)
-
setReferenceTargetName
public static void setReferenceTargetName(PrismReferenceValue rval, PolyStringType name)
-
accept
public static void accept(Object object, JaxbVisitor visitor)
-
getFilter
public static SearchFilterType getFilter(PrismReferenceValue referenceValue)
-
-