net.sourceforge.java.util.jdom
Class JDOMUtils

java.lang.Object
  extended bynet.sourceforge.java.util.jdom.JDOMUtils

public class JDOMUtils
extends Object

JDOMUtils contains some reusable utility methods to ease JDOM handling, in particular parsing operations.

Author:
Sebastian Machhausen

Constructor Summary
JDOMUtils()
           
 
Method Summary
static boolean isValid(Attribute attr)
           Verifies if the specified Attribute is valid.
static boolean isValid(Element element)
           Verifies if the specified Element is valid.
static boolean isValid(Element element, String name)
           Verifies if the specified Element exists and matches the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOMUtils

public JDOMUtils()
Method Detail

isValid

public static boolean isValid(Element element,
                              String name)

Verifies if the specified Element exists and matches the specified name.

Parameters:
element - the element to verify
name - the name to verify
Returns:
true if the specified Element is valid; false if invalid

isValid

public static boolean isValid(Element element)

Verifies if the specified Element is valid.

Parameters:
element - the element to verify
Returns:
true if the specified Element is valid; false if invalid

isValid

public static boolean isValid(Attribute attr)

Verifies if the specified Attribute is valid.

Parameters:
attr - the Attribute to verify
Returns:
true if the specified Attribute is valid; false if invalid