com.businessobjects.dsws.reportengine
Class XMLView

java.lang.Object
  extended bycom.businessobjects.dsws.reportengine.View
      extended bycom.businessobjects.dsws.reportengine.XMLView
All Implemented Interfaces:
java.io.Serializable

public class XMLView
extends View
implements java.io.Serializable

XMLView is a container class for XML document output.

Example: Retrieve a document report in XML format

ViewSupport pdfViewSupport = new ViewSupport();
xmlViewSupport.setOutputFormat(OutputFormatType.XML);
xmlViewSupport.setViewType(ViewType.XML);
xmlViewSupport.setViewMode(ViewModeType.REPORT);

RetrieveXMLView retXMLView = new RetrieveXMLView();
retXMLView.setViewSupport(xmlViewSupport);

RetrieveData retBOData = new RetrieveData();
retBOData.setRetrieveView(retXMLView);

DocumentInformation docInfo = boReportEngine.getDocumentInformation(struid, null, null, null, retBOData);
XMLView myBOView = (XMLView) boDocInfo.getView();
String docContents = (String) myBOView.getContent();

See Also:
ReportEngine, BinaryView, CharacterView, XMLView, ViewSupport, ViewModeType, RetrieveData, RetrieveView, OutputFormatType, DocumentInformation, Serialized Form

Constructor Summary
XMLView()
          Instantiate a new blank XMLView object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Internal Use Only.
 java.lang.Object getContent()
          Return the document's content in XML format.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Internal Use Only.
 java.lang.String getMimeType()
          Return the document mime type.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Internal Use Only.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Internal Use Only.
 int hashCode()
          Internal Use Only.
 void setContent(java.lang.Object content)
          Internal Use Only.
 void setMimeType(java.lang.String mimeType)
          Internal Use Only.
 
Methods inherited from class com.businessobjects.dsws.reportengine.View
getChunkSize, getContentLength, getReportPart, getReportPart, getViewSupport, isLastChunk, setChunkSize, setContentLength, setLastChunk, setReportPart, setReportPart, setViewSupport
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLView

public XMLView()
Instantiate a new blank XMLView object.
An example of how to instantiate this class can be found here.

See Also:
XMLView
Method Detail

getContent

public java.lang.Object getContent()
Return the document's content in XML format.

Returns:
return the document's content in XML format.

setContent

public void setContent(java.lang.Object content)

Internal Use Only.


getMimeType

public java.lang.String getMimeType()
Return the document mime type.

For a list of possible mime types, see getMimeType.

Returns:
a string containing the document mime type.

setMimeType

public void setMimeType(java.lang.String mimeType)

Internal Use Only.


equals

public boolean equals(java.lang.Object obj)

Internal Use Only.

Overrides:
equals in class View

hashCode

public int hashCode()

Internal Use Only.

Overrides:
hashCode in class View

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()

Internal Use Only.


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)

Internal Use Only.


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)

Internal Use Only.