Class PrismForJAXBUtil
java.lang.Object
com.evolveum.midpoint.prism.impl.xjc.PrismForJAXBUtil
- Author:
- lazyman, semancik
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaccept(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 PrismReferencecreateReference(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 SearchFilterTypegetFilter(PrismReferenceValue referenceValue) static <T> TgetPropertyValue(PrismContainerValue container, QName name, Class<T> clazz) static <T> List<T>getPropertyValues(PrismContainerValue<?> container, QName name, Class<T> clazz) static PrismReferencegetReference(PrismContainerValue parent, QName fieldName) static MapXNodestatic Objectablestatic PolyStringTypestatic PrismReferenceValuegetReferenceValue(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> voidsetPropertyValue(PrismContainerValue<?> container, ItemName name, T value) static voidsetReferenceFilterClauseXNode(PrismReferenceValue rval, SearchFilterType filterType) static voidsetReferenceTargetName(PrismReferenceValue rval, PolyStringType name) static voidsetReferenceValueAsObject(PrismContainerValue parentValue, QName referenceQName, PrismObject targetObject) This method must merge new value with potential existing value of the reference.static voidsetReferenceValueAsRef(PrismContainerValue<?> parentValue, QName referenceName, PrismReferenceValue value) This method must merge new value with potential existing value of the reference.static PrismObjectsetupContainerValue(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
-