org.compass.core.converter.mapping.xsem
Class XmlConverterUtils

java.lang.Object
  extended by org.compass.core.converter.mapping.xsem.XmlConverterUtils

public abstract class XmlConverterUtils
extends Object

A set of utilities for xml conversion.

Author:
kimchy

Constructor Summary
XmlConverterUtils()
           
 
Method Summary
static XmlObject[] select(XmlObject xmlObject, XPathEnabledMapping xpathMapping)
          Executes the given xpath expression (using XPathEnabledMapping and returns a list of xml objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlConverterUtils

public XmlConverterUtils()
Method Detail

select

public static XmlObject[] select(XmlObject xmlObject,
                                 XPathEnabledMapping xpathMapping)
                          throws ConversionException
Executes the given xpath expression (using XPathEnabledMapping and returns a list of xml objects.

Handles compilation of xpath expression if possible, and storing the compiled xpath expressions in the XPathEnabledMapping.

Parameters:
xmlObject - The xml object to execute the xpath expression against.
xpathMapping - The xpath mapping definiton
Returns:
The list of xml objects matching the xpath expression
Throws:
ConversionException


Copyright (c) 2004-2009 The Compass Project.