|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.metadata.MetadataUtil
public class MetadataUtil
Utility class serving useful methods for extracting node and element information.
Constructor Summary | |
---|---|
MetadataUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetadataUtil()
Method Detail |
---|
public static String getAttributeValue(Element element, String name)
element
- the w3c dom element.name
- the attribute name
public 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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |