org.milyn.delivery.sax
Class SAXUtil

java.lang.Object
  extended by org.milyn.delivery.sax.SAXUtil

public abstract class SAXUtil
extends Object

SAX utility methods.

Author:
tom.fennelly@gmail.com

Constructor Summary
SAXUtil()
           
 
Method Summary
static String getAttribute(String attributeName, Attributes attributes)
          Get the value of the named attribute.
static String getAttribute(String attributeName, Attributes attributes, String defaultVal)
          Get the value of the named attribute.
static int getDepth(SAXElement element)
           
static String getXPath(SAXElement element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXUtil

public SAXUtil()
Method Detail

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.