Package com.evolveum.midpoint.util
Class JAXBUtil
java.lang.Object
com.evolveum.midpoint.util.JAXBUtil
- Author:
- lazyman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
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
listChildElements
(Object parentElement)
-
Constructor Details
-
JAXBUtil
public JAXBUtil()
-
-
Method Details
-
getSchemaNamespace
-
getTypeLocalName
-
getTypeQName
-
isElement
-
getElementQName
-
getElementLocalName
-
getTextContentDump
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
-
getDocument
- Parameters:
element
-- Returns:
-
findElement
Looks for an element with specified name. Considers both DOM and JAXB elements. Assumes single element instance in the list.- Parameters:
elements
-elementName
-
-
listChildElements
- Parameters:
parentElement
-- Returns:
-
findClassForType
-
compareElementList
-