Package com.evolveum.midpoint.util
Class JAXBUtil
- java.lang.Object
-
- com.evolveum.midpoint.util.JAXBUtil
-
public final class JAXBUtil extends Object
- Author:
- lazyman
-
-
Constructor Summary
Constructors Constructor Description JAXBUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
compareElementList(List<Object> aList, List<Object> bList, boolean considerNamespacePrefixes)
static <T> Class<T>
findClassForType(QName typeName, Package pkg)
static Object
findElement(List<Object> elements, QName elementName)
Looks for an element with specified name.static Document
getDocument(Object element)
static String
getElementLocalName(Object element)
static QName
getElementQName(Object element)
static String
getSchemaNamespace(Package pkg)
static String
getTextContentDump(Object element)
Returns short description of element content for diagnostics use (logs, dumps).static <T> String
getTypeLocalName(Class<T> type)
static <T> QName
getTypeQName(Class<T> type)
static boolean
isElement(Object element)
static List<Object>
listChildElements(Object parentElement)
-
-
-
Method Detail
-
isElement
public static boolean isElement(Object element)
-
getTextContentDump
public static String getTextContentDump(Object element)
Returns short description of element content for diagnostics use (logs, dumps). Works with DOM and JAXB elements.- Parameters:
element
- DOM or JAXB element- Returns:
- short description of element content
-
findElement
public static Object findElement(List<Object> elements, QName elementName)
Looks for an element with specified name. Considers both DOM and JAXB elements. Assumes single element instance in the list.- Parameters:
elements
-elementName
-
-
listChildElements
public static List<Object> listChildElements(Object parentElement)
- Parameters:
parentElement
-- Returns:
-
-