com.ibm.xml.xapi
Class XItemSource
- java.lang.Object
com.ibm.xml.xapi.XItemSource
All implemented interfaces:
javax.xml.transform.Source
- public class XItemSource
- extends java.lang.Object
- 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:
Constructor Summary
Constructor and Description |
---|
XItemSource(XItemView item)
Create a new XItemSource for the given item.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
getItem()
Get the
XItemView associated with this source.
|
|
|
getSystemId()
Get the system id associated with this source.
|
|
setItem(XItemView item)
Set the
XItemView .
|
|
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
- 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 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
- 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.