* xml A String that contains the XML to display. * modal A boolean that specifies whether the dialog box is modal. * title A String that contains text to use as the title for the * parent A Frame that is provided by Analytic Workspace Manager. * Creates a DisplayXMLDialog for displaying the contents of the xml * An inner class that creates a dialog box that displays the XML.Ĭlass DisplayXMLDialog extends JDialog implements ActionListener This example does not create new metadata objects, so return false. Public boolean refreshTree(Connection conn, String type, Object obj, AW aw, Create a dialog box and display the XML.ĭisplayXMLDialog dxd = new DisplayXMLDialog(parent, title, true, Mdp.exportFullXML(objects, renameMap, includeOwnerString) String title = "XML for " + mobj.getName() Get the XML representation of the MdmObject. MdmMetadataProvider mdp = (MdmMetadataProvider)objdp Object objdp = params.get("DATAPROVIDER") Get the MdmMetadataProvider to use in exporting the XML. Public void handle(Frame parent, Connection conn, String type, Object obj, String menu = "View XML Example Plug-in" Text to display on the right-click menu. Public String getMenu(Connection conn, String type, Object obj, AW aw, If (obj instanceof MdmBaseMeasure || obj instanceof MdmDerivedMeasure) Support MdmBaseMeasure and MdmDerivedMeasure objects. Public boolean isSupported(Connection conn, String type, Object obj, Public class ViewXMLPlugin implements AWMPlugin * representation of an Oracle OLAP measure object. * An implementation of the AWMPlugin interface that displays the XML Example 3-1 The ViewXMLPlugin Class import
0 Comments
Leave a Reply. |