com.evolveum.midpoint.schema.util
Class ObjectTypeUtil

java.lang.Object
  extended by com.evolveum.midpoint.schema.util.ObjectTypeUtil

public class ObjectTypeUtil
extends java.lang.Object

Methods that would belong to the ObjectType class but cannot go there because of JAXB.

There are also useful methods that would belong to other classes. But we don't want to create new class for every method ... if this goes beyond a reasonable degree, please refactor accordingly.

Author:
Radovan Semancik

Constructor Summary
ObjectTypeUtil()
           
 
Method Summary
static void assertConcreteType(java.lang.Class<? extends Objectable> type)
           
static ObjectModificationType createModificationReplaceProperty(java.lang.String oid, javax.xml.namespace.QName propertyName, java.lang.Object propertyValue)
          Deprecated. 
static ObjectModificationType createModificationReplaceProperty(java.lang.String oid, XPathHolder xpath, javax.xml.namespace.QName propertyName, java.lang.Object propertyValue)
          Deprecated. 
static ObjectReferenceType createObjectRef(ObjectType objectType)
           
static
<T extends ObjectType>
ObjectReferenceType
createObjectRef(PrismObject<T> object)
           
static ObjectReferenceType createObjectRef(java.lang.String oid, ObjectTypes type)
           
static ItemDeltaType createPropertyModificationType(ModificationTypeType changeType, XPathHolder xpathType, java.lang.Object element)
          Deprecated. 
static ItemDeltaType createPropertyModificationType(ModificationTypeType changeType, XPathHolder xpath, PrismProperty property)
          Deprecated. 
static ItemDeltaType createPropertyModificationType(ModificationTypeType changeType, XPathHolder xpath, javax.xml.namespace.QName propertyName, java.util.Collection<java.lang.Object> values)
          Deprecated. 
static ItemDeltaType createPropertyModificationType(ModificationTypeType changeType, XPathHolder xpath, javax.xml.namespace.QName propertyName, java.lang.Object value)
          Deprecated. 
static XPathHolder createXPathHolder(javax.xml.namespace.QName property)
           
static java.lang.String dump(ObjectType object)
           
static java.util.List<java.lang.String> extractOids(java.util.List<? extends ObjectType> objects, java.util.List<? extends ObjectReferenceType> refs)
           
static ObjectReferenceType findRef(java.lang.String oid, java.util.List<ObjectReferenceType> refs)
           
static org.w3c.dom.Element findXsdElement(PrismContainer<XmlSchemaType> xmlSchemaContainer)
           
static org.w3c.dom.Element findXsdElement(PrismContainerValue<XmlSchemaType> xmlSchemaContainerValue)
           
static org.w3c.dom.Element findXsdElement(XmlSchemaType xmlSchemaType)
          Returns the <xsd:schema> element from the XmlSchemaType.
static javax.xml.namespace.QName getElementName(ItemDeltaType propertyModification)
           
static java.lang.String getShortTypeName(java.lang.Class<? extends ObjectType> type)
           
static java.lang.String getShortTypeName(ObjectType object)
           
static boolean isEmpty(ObjectModificationType objectModification)
           
static boolean isModificationOf(ItemDeltaType modification, javax.xml.namespace.QName elementName)
           
static boolean isModificationOf(ItemDeltaType modification, javax.xml.namespace.QName elementName, XPathHolder path)
           
static void setXsdSchemaDefinition(PrismProperty<org.w3c.dom.Element> definitionProperty, org.w3c.dom.Element xsdElement)
           
static java.lang.String toShortString(AssignmentType assignment)
           
static java.lang.Object toShortString(ObjectReferenceType objectRef)
           
static java.lang.String toShortString(ObjectType object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectTypeUtil

public ObjectTypeUtil()
Method Detail

extractOids

public static java.util.List<java.lang.String> extractOids(java.util.List<? extends ObjectType> objects,
                                                           java.util.List<? extends ObjectReferenceType> refs)

findRef

public static ObjectReferenceType findRef(java.lang.String oid,
                                          java.util.List<ObjectReferenceType> refs)

createPropertyModificationType

@Deprecated
public static ItemDeltaType createPropertyModificationType(ModificationTypeType changeType,
                                                                      XPathHolder xpathType,
                                                                      java.lang.Object element)
Deprecated. 


createPropertyModificationType

@Deprecated
public static ItemDeltaType createPropertyModificationType(ModificationTypeType changeType,
                                                                      XPathHolder xpath,
                                                                      javax.xml.namespace.QName propertyName,
                                                                      java.lang.Object value)
Deprecated. 


createPropertyModificationType

@Deprecated
public static ItemDeltaType createPropertyModificationType(ModificationTypeType changeType,
                                                                      XPathHolder xpath,
                                                                      PrismProperty property)
Deprecated. 


createPropertyModificationType

@Deprecated
public static ItemDeltaType createPropertyModificationType(ModificationTypeType changeType,
                                                                      XPathHolder xpath,
                                                                      javax.xml.namespace.QName propertyName,
                                                                      java.util.Collection<java.lang.Object> values)
Deprecated. 


createModificationReplaceProperty

@Deprecated
public static ObjectModificationType createModificationReplaceProperty(java.lang.String oid,
                                                                                  javax.xml.namespace.QName propertyName,
                                                                                  java.lang.Object propertyValue)
Deprecated. 


createModificationReplaceProperty

@Deprecated
public static ObjectModificationType createModificationReplaceProperty(java.lang.String oid,
                                                                                  XPathHolder xpath,
                                                                                  javax.xml.namespace.QName propertyName,
                                                                                  java.lang.Object propertyValue)
Deprecated. 


toShortString

public static java.lang.String toShortString(ObjectType object)

toShortString

public static java.lang.String toShortString(AssignmentType assignment)

dump

public static java.lang.String dump(ObjectType object)

toShortString

public static java.lang.Object toShortString(ObjectReferenceType objectRef)

getShortTypeName

public static java.lang.String getShortTypeName(ObjectType object)

getShortTypeName

public static java.lang.String getShortTypeName(java.lang.Class<? extends ObjectType> type)

createObjectRef

public static ObjectReferenceType createObjectRef(ObjectType objectType)

createObjectRef

public static <T extends ObjectType> ObjectReferenceType createObjectRef(PrismObject<T> object)

createObjectRef

public static ObjectReferenceType createObjectRef(java.lang.String oid,
                                                  ObjectTypes type)

findXsdElement

public static org.w3c.dom.Element findXsdElement(XmlSchemaType xmlSchemaType)
Returns the <xsd:schema> element from the XmlSchemaType.


findXsdElement

public static org.w3c.dom.Element findXsdElement(PrismContainer<XmlSchemaType> xmlSchemaContainer)

findXsdElement

public static org.w3c.dom.Element findXsdElement(PrismContainerValue<XmlSchemaType> xmlSchemaContainerValue)

setXsdSchemaDefinition

public static void setXsdSchemaDefinition(PrismProperty<org.w3c.dom.Element> definitionProperty,
                                          org.w3c.dom.Element xsdElement)

createXPathHolder

public static XPathHolder createXPathHolder(javax.xml.namespace.QName property)

isModificationOf

public static boolean isModificationOf(ItemDeltaType modification,
                                       javax.xml.namespace.QName elementName)

isModificationOf

public static boolean isModificationOf(ItemDeltaType modification,
                                       javax.xml.namespace.QName elementName,
                                       XPathHolder path)

getElementName

public static javax.xml.namespace.QName getElementName(ItemDeltaType propertyModification)

isEmpty

public static boolean isEmpty(ObjectModificationType objectModification)

assertConcreteType

public static void assertConcreteType(java.lang.Class<? extends Objectable> type)


Copyright © 2012 evolveum. All Rights Reserved.