public class ObjectTypeUtil extends Object
Constructor and Description |
---|
ObjectTypeUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
assertConcreteType(Class<? extends com.evolveum.midpoint.prism.Objectable> type) |
static Collection<com.evolveum.midpoint.prism.delta.ObjectDelta<? extends ObjectType>> |
cast(Collection<com.evolveum.midpoint.prism.delta.ObjectDelta<?>> deltas) |
static <T extends ObjectType> |
createAssignmentTo(ObjectReferenceType ref) |
static <T extends ObjectType> |
createAssignmentTo(com.evolveum.midpoint.prism.PrismObject<T> object) |
static ObjectReferenceType |
createObjectRef(ObjectType objectType) |
static <T extends ObjectType> |
createObjectRef(com.evolveum.midpoint.prism.PrismObject<T> object) |
static <T extends ObjectType> |
createObjectRef(com.evolveum.midpoint.prism.PrismObject<T> object,
boolean nameAsDescription) |
static ObjectReferenceType |
createObjectRef(com.evolveum.midpoint.prism.PrismReferenceValue prv) |
static <T extends ObjectType> |
createObjectRef(com.evolveum.midpoint.prism.PrismReferenceValue refVal,
boolean nameAsDescription) |
static ObjectReferenceType |
createObjectRef(String oid,
ObjectTypes type) |
static ObjectReferenceType |
createObjectRef(String oid,
com.evolveum.prism.xml.ns._public.types_3.PolyStringType name,
ObjectTypes type) |
static com.evolveum.midpoint.prism.parser.XPathHolder |
createXPathHolder(QName property) |
static String |
dump(ObjectType object) |
static ObjectReferenceType |
findRef(String oid,
List<ObjectReferenceType> refs) |
static Element |
findXsdElement(com.evolveum.midpoint.prism.PrismContainer<XmlSchemaType> xmlSchemaContainer) |
static Element |
findXsdElement(com.evolveum.midpoint.prism.PrismContainerValue<XmlSchemaType> xmlSchemaContainerValue) |
static Element |
findXsdElement(XmlSchemaType xmlSchemaType)
Returns the <xsd:schema> element from the XmlSchemaType.
|
static List<ObjectReferenceType> |
getAsObjectReferenceTypeList(com.evolveum.midpoint.prism.PrismReference prismReference) |
static <T> Collection<T> |
getExtensionPropertyValues(ObjectType objectType,
QName propertyQname) |
static <T> Collection<T> |
getExtensionPropertyValuesNotNull(ObjectType objectType,
QName propertyQname)
Never returns null.
|
static Collection<com.evolveum.midpoint.prism.Referencable> |
getExtensionReferenceValues(ObjectType objectType,
QName propertyQname) |
static com.evolveum.midpoint.prism.Objectable |
getObjectFromReference(ObjectReferenceType ref) |
static com.evolveum.midpoint.prism.PrismObject |
getParentObject(com.evolveum.midpoint.prism.Containerable containerable) |
static com.evolveum.midpoint.prism.PrismObject<?> |
getPrismObjectFromReference(ObjectReferenceType ref) |
static String |
getShortTypeName(Class<? extends ObjectType> type) |
static String |
getShortTypeName(ObjectType object) |
static boolean |
isModificationOf(com.evolveum.prism.xml.ns._public.types_3.ItemDeltaType modification,
QName elementName) |
static boolean |
isModificationOf(com.evolveum.prism.xml.ns._public.types_3.ItemDeltaType modification,
QName elementName,
com.evolveum.prism.xml.ns._public.types_3.ItemPathType path) |
static List<com.evolveum.midpoint.prism.PrismReferenceValue> |
objectReferenceListToPrismReferenceValues(Collection<ObjectReferenceType> refList) |
static List<String> |
referenceValueListToOidList(Collection<com.evolveum.midpoint.prism.PrismReferenceValue> referenceValues) |
static void |
setXsdSchemaDefinition(com.evolveum.midpoint.prism.PrismProperty<com.evolveum.prism.xml.ns._public.types_3.SchemaDefinitionType> definitionProperty,
Element xsdElement) |
static List<com.evolveum.midpoint.prism.delta.ObjectDelta<? extends ObjectType>> |
toDeltaList(com.evolveum.midpoint.prism.delta.ObjectDelta<?> delta) |
static String |
toShortString(AssignmentType assignment) |
static Object |
toShortString(ObjectReferenceType objectRef) |
static Object |
toShortString(ObjectReferenceType objectRef,
boolean withName) |
static String |
toShortString(ObjectType object) |
static String |
toShortString(com.evolveum.midpoint.prism.PrismObject<? extends ObjectType> object) |
public static <T> Collection<T> getExtensionPropertyValuesNotNull(ObjectType objectType, QName propertyQname)
public static <T> Collection<T> getExtensionPropertyValues(ObjectType objectType, QName propertyQname)
public static Collection<com.evolveum.midpoint.prism.Referencable> getExtensionReferenceValues(ObjectType objectType, QName propertyQname)
public static ObjectReferenceType findRef(String oid, List<ObjectReferenceType> refs)
public static String toShortString(com.evolveum.midpoint.prism.PrismObject<? extends ObjectType> object)
public static String toShortString(ObjectType object)
public static String toShortString(AssignmentType assignment)
public static String dump(ObjectType object)
public static Object toShortString(ObjectReferenceType objectRef)
public static Object toShortString(ObjectReferenceType objectRef, boolean withName)
public static String getShortTypeName(ObjectType object)
public static String getShortTypeName(Class<? extends ObjectType> type)
@NotNull public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull ObjectReferenceType ref)
@NotNull public static <T extends ObjectType> AssignmentType createAssignmentTo(@NotNull com.evolveum.midpoint.prism.PrismObject<T> object)
public static ObjectReferenceType createObjectRef(com.evolveum.midpoint.prism.PrismReferenceValue prv)
public static ObjectReferenceType createObjectRef(ObjectType objectType)
public static <T extends ObjectType> ObjectReferenceType createObjectRef(com.evolveum.midpoint.prism.PrismObject<T> object)
public static <T extends ObjectType> ObjectReferenceType createObjectRef(com.evolveum.midpoint.prism.PrismObject<T> object, boolean nameAsDescription)
public static <T extends ObjectType> ObjectReferenceType createObjectRef(com.evolveum.midpoint.prism.PrismReferenceValue refVal, boolean nameAsDescription)
public static ObjectReferenceType createObjectRef(String oid, ObjectTypes type)
public static ObjectReferenceType createObjectRef(String oid, com.evolveum.prism.xml.ns._public.types_3.PolyStringType name, ObjectTypes type)
public static Element findXsdElement(XmlSchemaType xmlSchemaType)
public static Element findXsdElement(com.evolveum.midpoint.prism.PrismContainer<XmlSchemaType> xmlSchemaContainer)
public static Element findXsdElement(com.evolveum.midpoint.prism.PrismContainerValue<XmlSchemaType> xmlSchemaContainerValue)
public static void setXsdSchemaDefinition(com.evolveum.midpoint.prism.PrismProperty<com.evolveum.prism.xml.ns._public.types_3.SchemaDefinitionType> definitionProperty, Element xsdElement)
public static com.evolveum.midpoint.prism.parser.XPathHolder createXPathHolder(QName property)
public static boolean isModificationOf(com.evolveum.prism.xml.ns._public.types_3.ItemDeltaType modification, QName elementName)
public static boolean isModificationOf(com.evolveum.prism.xml.ns._public.types_3.ItemDeltaType modification, QName elementName, com.evolveum.prism.xml.ns._public.types_3.ItemPathType path)
public static void assertConcreteType(Class<? extends com.evolveum.midpoint.prism.Objectable> type)
public static com.evolveum.midpoint.prism.PrismObject getParentObject(com.evolveum.midpoint.prism.Containerable containerable)
public static List<com.evolveum.midpoint.prism.PrismReferenceValue> objectReferenceListToPrismReferenceValues(Collection<ObjectReferenceType> refList) throws SchemaException
SchemaException
public static List<ObjectReferenceType> getAsObjectReferenceTypeList(com.evolveum.midpoint.prism.PrismReference prismReference) throws SchemaException
SchemaException
public static List<String> referenceValueListToOidList(Collection<com.evolveum.midpoint.prism.PrismReferenceValue> referenceValues)
public static com.evolveum.midpoint.prism.Objectable getObjectFromReference(ObjectReferenceType ref)
public static com.evolveum.midpoint.prism.PrismObject<?> getPrismObjectFromReference(ObjectReferenceType ref)
public static List<com.evolveum.midpoint.prism.delta.ObjectDelta<? extends ObjectType>> toDeltaList(com.evolveum.midpoint.prism.delta.ObjectDelta<?> delta)
public static Collection<com.evolveum.midpoint.prism.delta.ObjectDelta<? extends ObjectType>> cast(Collection<com.evolveum.midpoint.prism.delta.ObjectDelta<?>> deltas)
Copyright © 2016 Evolveum. All rights reserved.