API

com.ibm.xml.xapi
Class XItemSource

java.lang.Object
  extended by com.ibm.xml.xapi.XItemSource
All Implemented Interfaces:
Source

public class XItemSource
extends Object
implements Source

An implementation of Source for XItemView objects. This allows results from a previous expression, query or transformation to be used where a Source object is required (such as by implementations of XSourceResolver) without first serializing to a DOM or a stream. Note that an XItemSource can only be used at execution time for providing input documents and not at prepare time for imports and includes.

See Also:
XSourceResolver

Constructor Summary
XItemSource(XItemView item)
          Create a new XItemSource for the given item.
 
Method Summary
 XItemView getItem()
          Get the XItemView associated with this source.
 String getSystemId()
          Get the system id associated with this source.
 void setItem(XItemView item)
          Set the XItemView.
 void setSystemId(String systemId)
          Set the system id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XItemSource

public XItemSource(XItemView item)
Create a new XItemSource for the given item.

Parameters:
item - The item.
Method Detail

getItem

public XItemView getItem()
Get the XItemView associated with this source.

Returns:
The XItemView associated with this source.

setItem

public void setItem(XItemView item)
Set the XItemView.

Parameters:
item - The XItemView to set.

getSystemId

public String getSystemId()
Get the system id associated with this source.

Specified by:
getSystemId in interface Source
Returns:
The system id string.

setSystemId

public void setSystemId(String systemId)
Set the system id.

Specified by:
setSystemId in interface Source
Parameters:
systemId - The system id to set.

IBM Copyright 2004-2008