
public class MetadataUtil extends Object
| Constructor and Description |
|---|
MetadataUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAttributeValue(Element element,
String name)
Returns the attribute value for the given attribute name.
|
static Node |
getNextParentNodeWithAttr(Node parent,
String attrName)
Returns the next parent node which has the specific attribute name defined.
|
static boolean |
hasChildOf(Element parentElement,
XsdElementEnum child)
Checks the existence of a w3c child element.
|
static boolean |
hasChildsOf(Element parentElement,
XsdElementEnum child)
Checks the existence of a w3c child element.
|
static boolean |
hasParentOf(Element parentElement,
XsdElementEnum parentEnum)
Checks for the first parent node occurrence of the a w3c parentEnum element.
|
void |
log(Metadata metadata)
Logs out metadata information.
|
public static String getAttributeValue(Element element, String name)
element - the w3c dom element.name - the attribute namepublic static Node getNextParentNodeWithAttr(Node parent, String attrName)
parent - the w3c node from which the search will start.attrName - the attribute name which is searched for.public static boolean hasChildOf(Element parentElement, XsdElementEnum child)
parentElement - the element from which the search starts.child - the XsdElementEnum specifying the child element.public static boolean hasChildsOf(Element parentElement, XsdElementEnum child)
parentElement - the element from which the search starts.child - the XsdElementEnum specifying the child element.public static boolean hasParentOf(Element parentElement, XsdElementEnum parentEnum)
parentElement - the element from which the search starts.parentEnum - the XsdElementEnum specifying the parent element.public void log(Metadata metadata)
metadata - Copyright © 2025 JBoss by Red Hat. All rights reserved.