org.apache.xpath.objects

Class XObjectFactory

public class XObjectFactory extends Object

Method Summary
static XObjectcreate(Object val)
Create the right XObject based on the type of the object passed.
static XObjectcreate(Object val, XPathContext xctxt)
Create the right XObject based on the type of the object passed.

Method Detail

create

public static XObject create(Object val)
Create the right XObject based on the type of the object passed. This function can not make an XObject that exposes DOM Nodes, NodeLists, and NodeIterators to the XSLT stylesheet as node-sets.

Parameters: val The java object which this object will wrap.

Returns: the right XObject based on the type of the object passed.

create

public static XObject create(Object val, XPathContext xctxt)
Create the right XObject based on the type of the object passed. This function can make an XObject that exposes DOM Nodes, NodeLists, and NodeIterators to the XSLT stylesheet as node-sets.

Parameters: val The java object which this object will wrap. xctxt The XPath context.

Returns: the right XObject based on the type of the object passed.

Copyright B) 2006 Apache XML Project. All Rights Reserved.