org.milyn.delivery.sax
Class SAXUtil
java.lang.Object
org.milyn.delivery.sax.SAXUtil
public abstract class SAXUtil
- extends Object
SAX utility methods.
- Author:
- tom.fennelly@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXUtil
public SAXUtil()
getAttribute
public static String getAttribute(String attributeName,
Attributes attributes)
- Get the value of the named attribute.
- Parameters:
attributeName - The attribute name.attributes - The attribute list.
- Returns:
- The attribute value, or an empty string if not available (as with DOM).
getAttribute
public static String getAttribute(String attributeName,
Attributes attributes,
String defaultVal)
- Get the value of the named attribute.
- Parameters:
attributeName - The attribute name.attributes - The attribute list.defaultVal - The default value, if the attribute is not set.
- Returns:
- The attribute value, or an empty string if not available (as with DOM).
getXPath
public static String getXPath(SAXElement element)
getDepth
public static int getDepth(SAXElement element)
Copyright © 2008. All Rights Reserved.