|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.XMLDataSet
public class XMLDataSet
The XMLDataSet
object is a runtime data source that determines the set of data
that is displayed by a report. You must access the XML data and convert it to a java.io.InputStream
and then read from the stream object into the byte array.
Once the data set has been created, you can set the data source with the
DatabaseController
object’s
setDataSource
method.
The DatabaseController
object's replaceConnection
method can then be used to replace one data set with another.
The data structure and the data in this object will persist with the report if the
setEnableSaveDataWithReport
is set to true
.
The report cannot reconnect to the original data source, since the XMLDataSet
object and other objects
that are used to construct it only exist at run-time. To reconnect to the original data source, you must create these objects
and call the DatabaseController
object’s
setDataSource
method again.
Supported schemas are those that are supported by the current XML data driver, which allows access to the XML data as a local file, a URL, or a web service.
Use the IXMLDataSet
interface to manipulate this object.
Constructor Summary | |
---|---|
XMLDataSet()
|
|
XMLDataSet(IByteArray xmlData,
IByteArray xmlSchema)
|
Method Summary | |
---|---|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only. |
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
IByteArray |
getXMLData()
Gets the XML data that is used as the source of the data set. |
IByteArray |
getXMLSchema()
Gets the XML Schema for the XML data that is used as the source of the data set. |
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
For internal use only. |
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
setXMLData(IByteArray xmlData)
Sets the XML data that is used as the source of the data set. |
void |
setXMLSchema(IByteArray xmlSchema)
Sets the XML Schema for the XML data that is used as the source of the data set. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLDataSet()
public XMLDataSet(IByteArray xmlData, IByteArray xmlSchema)
Method Detail |
---|
public void setXMLData(IByteArray xmlData)
IXMLDataSet
Sets the XML data that is used as the source of the data set.
setXMLData
in interface IXMLDataSet
xmlData
- the IByteArray
object that specifies the XML data that is used as the source of the data setpublic IByteArray getXMLData()
IXMLDataSet
Gets the XML data that is used as the source of the data set.
getXMLData
in interface IXMLDataSet
IByteArray
object that specifies the XML data that is used as the source of the data set.public void setXMLSchema(IByteArray xmlSchema)
IXMLDataSet
Sets the XML Schema for the XML data that is used as the source of the data set.
setXMLSchema
in interface IXMLDataSet
xmlSchema
- the IByteArray
object that specifies the XML schema that is used as the source of the data setpublic IByteArray getXMLSchema()
IXMLDataSet
Gets the XML Schema for the XML data that is used as the source of the data set.
getXMLSchema
in interface IXMLDataSet
IByteArray
object that specifies the XML Schema for the XML data that is used as the source of the data set.public java.lang.Object createMember(java.lang.String eleName, org.xml.sax.Attributes attrs, XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
For internal use only.
public void endElement(java.lang.String eleName, java.util.Map objState)
For internal use only.
public void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
For internal use only.
public void save(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void saveContents(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
For internal use only.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |