com.ibm.xml.xapi

Class XItemSource

  1. java.lang.Object
  2. extended bycom.ibm.xml.xapi.XItemSource
All implemented interfaces:
javax.xml.transform.Source

  1. public class XItemSource
  2. extends java.lang.Object
  3. implements javax.xml.transform.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

Constructor and Description
XItemSource(XItemView item)
Create a new XItemSource for the given item.

Method Summary

Modifier and Type Method and Description
  1. XItemView
getItem()
Get the XItemView associated with this source.
  1. java.lang.String
getSystemId()
Get the system id associated with this source.
  1. void
setItem(XItemView item)
Set the XItemView.
  1. void
setSystemId(java.lang.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

  1. public XItemSource(XItemView item)
Create a new XItemSource for the given item.
Parameters:
item - The item.

Method Detail

getItem

  1. public XItemView getItem()
Get the XItemView associated with this source.
Returns:
The XItemView associated with this source.

setItem

  1. public void setItem(XItemView item)
Set the XItemView.
Parameters:
item - The XItemView to set.

getSystemId

  1. public java.lang.String getSystemId( )
Get the system id associated with this source.
Specified by:
getSystemId in interface javax.xml.transform.Source
Returns:
The system id string.

setSystemId

  1. public void setSystemId(java.lang.String systemId)
Set the system id.
Specified by:
setSystemId in interface javax.xml.transform.Source
Parameters:
systemId - The system id to set.