com.pingidentity.sts.clientapi.utils
Class XPathEngine

java.lang.Object
  extended by com.pingidentity.sts.clientapi.utils.XPathEngine

public class XPathEngine
extends java.lang.Object


Constructor Summary
XPathEngine()
           
 
Method Summary
static org.w3c.dom.Element firstElement(org.w3c.dom.Element attribute)
           
static java.util.Calendar getCalendar(org.w3c.dom.Element root, java.lang.String xpathExpr, boolean isRequired, java.lang.String friendlyName)
           
static java.util.Calendar getCalendar(org.w3c.dom.Element root, java.lang.String xpathExpr, java.lang.String friendlyName)
           
static org.w3c.dom.Element getElement(org.w3c.dom.Element root, java.lang.String xpathExpr, boolean isRequired, java.lang.String friendlyName)
           
static org.w3c.dom.Element getFirstElement(org.w3c.dom.Element tokenElement)
           
static org.w3c.dom.Element getFirstElement(org.w3c.dom.Element element, java.lang.String elementName)
          This method retrieves Element with specified name from the element tree todo namespaces
static org.w3c.dom.Element getFirstWstElement(org.w3c.dom.Element element, java.lang.String elementName)
          This method retrieves WST Element with specified name from the element tree
static java.util.List<org.w3c.dom.Element> getNodes(org.w3c.dom.Element root, java.lang.String xpathExpr, java.lang.String friendlyName)
           
static java.lang.String getString(org.w3c.dom.Element root, java.lang.String xpathExpr, boolean isRequired, java.lang.String friendlyName)
           
static org.w3c.dom.Element getSubElement(org.w3c.dom.Element element, java.lang.String namespace, java.lang.String localName)
          This method retrieves the first child Element with specified name and namespace from the element tree
static java.lang.String getSubelementText(org.w3c.dom.Element element, java.lang.String subelement)
           
static java.lang.String textContent(org.w3c.dom.Element value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathEngine

public XPathEngine()
Method Detail

getString

public static java.lang.String getString(org.w3c.dom.Element root,
                                         java.lang.String xpathExpr,
                                         boolean isRequired,
                                         java.lang.String friendlyName)
                                  throws SecurityTokenException
Throws:
SecurityTokenException

getElement

public static org.w3c.dom.Element getElement(org.w3c.dom.Element root,
                                             java.lang.String xpathExpr,
                                             boolean isRequired,
                                             java.lang.String friendlyName)
                                      throws STSClientException
Throws:
STSClientException

getCalendar

public static java.util.Calendar getCalendar(org.w3c.dom.Element root,
                                             java.lang.String xpathExpr,
                                             java.lang.String friendlyName)
                                      throws SecurityTokenException
Throws:
SecurityTokenException

getCalendar

public static java.util.Calendar getCalendar(org.w3c.dom.Element root,
                                             java.lang.String xpathExpr,
                                             boolean isRequired,
                                             java.lang.String friendlyName)
                                      throws SecurityTokenException
Throws:
SecurityTokenException

getNodes

public static java.util.List<org.w3c.dom.Element> getNodes(org.w3c.dom.Element root,
                                                           java.lang.String xpathExpr,
                                                           java.lang.String friendlyName)
                                                    throws SecurityTokenException
Throws:
SecurityTokenException

textContent

public static java.lang.String textContent(org.w3c.dom.Element value)

firstElement

public static org.w3c.dom.Element firstElement(org.w3c.dom.Element attribute)

getFirstWstElement

public static org.w3c.dom.Element getFirstWstElement(org.w3c.dom.Element element,
                                                     java.lang.String elementName)
This method retrieves WST Element with specified name from the element tree

Parameters:
element - - org.w3c tree structure
elementName - - to retrieve
Returns:
element

getFirstElement

public static org.w3c.dom.Element getFirstElement(org.w3c.dom.Element element,
                                                  java.lang.String elementName)
This method retrieves Element with specified name from the element tree todo namespaces

Parameters:
element - - org.w3c tree structure
elementName - - to retrieve
Returns:
element

getSubElement

public static org.w3c.dom.Element getSubElement(org.w3c.dom.Element element,
                                                java.lang.String namespace,
                                                java.lang.String localName)
This method retrieves the first child Element with specified name and namespace from the element tree

Parameters:
element - - org.w3c tree structure
namespace - the namespace
localName - - to retrieve
Returns:
element

getSubelementText

public static java.lang.String getSubelementText(org.w3c.dom.Element element,
                                                 java.lang.String subelement)

getFirstElement

public static org.w3c.dom.Element getFirstElement(org.w3c.dom.Element tokenElement)


Copyright © 2006-2009 Ping Identity Corporation. All Rights Reserved.