com.evolveum.midpoint.prism.xjc
Class PrismForJAXBUtil

java.lang.Object
  extended by com.evolveum.midpoint.prism.xjc.PrismForJAXBUtil

public final class PrismForJAXBUtil
extends Object

Author:
lazyman

Method Summary
static
<T> List<T>
getAny(PrismContainerValue value, Class<T> clazz)
           
static
<T extends PrismContainer<?>>
T
getContainer(PrismContainer<?> parent, QName name)
           
static
<T extends PrismContainer<?>>
T
getContainer(PrismContainerValue value, QName name)
           
static
<T extends Containerable>
List<PrismContainerValue<T>>
getContainerValues(PrismContainer<T> parent, QName name, Class<T> clazz)
           
static
<T extends Containerable>
List<PrismContainerValue<T>>
getContainerValues(PrismContainerValue<T> parent, QName name, Class<T> clazz)
           
static
<T extends Containerable>
PrismContainerValue<T>
getFieldContainerValue(PrismContainer<?> parent, QName fieldName)
           
static
<T extends Containerable>
PrismContainerValue<T>
getFieldContainerValue(PrismContainerValue<?> parent, QName fieldName)
           
static
<T extends Containerable>
T
getFieldSingleContainerable(PrismContainerValue<?> parent, QName fieldName, Class<T> fieldClass)
           
static
<T> T
getPropertyValue(PrismContainer container, QName name, Class<T> clazz)
           
static
<T> T
getPropertyValue(PrismContainerValue container, QName name, Class<T> clazz)
           
static
<T> List<T>
getPropertyValues(PrismContainer container, QName name, Class<T> clazz)
           
static
<T> List<T>
getPropertyValues(PrismContainerValue container, QName name, Class<T> clazz)
           
static PrismReference getReference(PrismContainer parent, QName name)
           
static PrismReference getReference(PrismContainerValue parent, QName fieldName)
           
static PrismReferenceValue getReferenceValue(PrismContainer parent, QName name)
           
static PrismReferenceValue getReferenceValue(PrismContainerValue<?> parent, QName name)
           
static
<T extends Objectable>
PrismReferenceValue
objectableAsReferenceValue(T objectable, PrismReference reference)
           
static boolean setFieldContainerValue(PrismContainer<?> parent, QName fieldName, PrismContainerValue<?> fieldContainerValue)
           
static
<T extends Containerable>
boolean
setFieldContainerValue(PrismContainerValue<?> parent, QName fieldName, PrismContainerValue<T> fieldContainerValue)
           
static
<T> void
setPropertyValue(PrismContainer container, QName name, T value)
           
static
<T> void
setPropertyValue(PrismContainerValue<?> container, QName name, T value)
           
static void setReferenceValueAsObject(PrismContainer parent, QName referenceQName, PrismObject targetObject)
           
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(PrismContainer parent, QName name, PrismReferenceValue value)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyValues

public static <T> List<T> getPropertyValues(PrismContainer container,
                                            QName name,
                                            Class<T> clazz)

getPropertyValue

public static <T> T getPropertyValue(PrismContainerValue container,
                                     QName name,
                                     Class<T> clazz)

getPropertyValue

public static <T> T getPropertyValue(PrismContainer 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,
                                        QName name,
                                        T value)

setPropertyValue

public static <T> void setPropertyValue(PrismContainer container,
                                        QName name,
                                        T value)

getFieldContainerValue

public static <T extends Containerable> PrismContainerValue<T> getFieldContainerValue(PrismContainer<?> parent,
                                                                                      QName fieldName)

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 value,
                                                           QName name)

getContainer

public static <T extends PrismContainer<?>> T getContainer(PrismContainer<?> parent,
                                                           QName name)

setFieldContainerValue

public static <T extends Containerable> boolean setFieldContainerValue(PrismContainerValue<?> parent,
                                                                       QName fieldName,
                                                                       PrismContainerValue<T> fieldContainerValue)

setFieldContainerValue

public static boolean setFieldContainerValue(PrismContainer<?> parent,
                                             QName fieldName,
                                             PrismContainerValue<?> fieldContainerValue)

getReferenceValue

public static PrismReferenceValue getReferenceValue(PrismContainerValue<?> parent,
                                                    QName name)

getReferenceValue

public static PrismReferenceValue getReferenceValue(PrismContainer parent,
                                                    QName name)

getReference

public static PrismReference getReference(PrismContainer 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


setReferenceValueAsRef

public static void setReferenceValueAsRef(PrismContainer parent,
                                          QName name,
                                          PrismReferenceValue value)

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


setReferenceValueAsObject

public static void setReferenceValueAsObject(PrismContainer parent,
                                             QName referenceQName,
                                             PrismObject targetObject)

objectableAsReferenceValue

public static <T extends Objectable> PrismReferenceValue objectableAsReferenceValue(T objectable,
                                                                                    PrismReference reference)

getContainerValues

public static <T extends Containerable> List<PrismContainerValue<T>> getContainerValues(PrismContainerValue<T> parent,
                                                                                        QName name,
                                                                                        Class<T> clazz)

getContainerValues

public static <T extends Containerable> List<PrismContainerValue<T>> getContainerValues(PrismContainer<T> parent,
                                                                                        QName name,
                                                                                        Class<T> clazz)

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)


Copyright © 2013 evolveum. All Rights Reserved.