Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.0.0)

E17492-01

oracle.dss.rules
Interface MergeableXML

All Superinterfaces:
java.lang.Cloneable, Mergeable, java.io.Serializable
All Known Implementing Classes:
BaseViewFormat, GraphStyle, ViewFormat, ViewStyle

public interface MergeableXML
extends Mergeable

Methods required for Mergeable objects that can be saved as XML.


Method Summary
 oracle.dss.util.xml.ObjectNode getXML(boolean allProperties, boolean emptyElement)
          Retrieves XML that represents properties and their values in the form of and ObjectNode.
 boolean setXML(oracle.dss.util.xml.ObjectNode node, java.lang.String version, int reset)
          Specifies XML that represents properties and values.
 
Methods inherited from interface oracle.dss.rules.Mergeable
clone, isAnythingOverridden, merge
 

Method Detail

getXML

oracle.dss.util.xml.ObjectNode getXML(boolean allProperties,
                                      boolean emptyElement)
Retrieves XML that represents properties and their values in the form of and ObjectNode.

Parameters:
allProperties - true to store all property values in XML, false to store only values that are different from default values.
emptyElement - true if an empty element needs to be returned when none of the property values have changed from default. false if null should should be returned when none of the property values have changed from default. This argument is considered only if allProperties is false.
Returns:
XML for the properties and values.

setXML

boolean setXML(oracle.dss.util.xml.ObjectNode node,
               java.lang.String version,
               int reset)
Specifies XML that represents properties and values. This method applies the values of the properties in the XML to this MergeableXML.

Parameters:
node - ObjectNode that has the properties and their values.
version - The XML version.
reset - A constant that indicates how much to reset when XML is applied. Valid values are listed in the See Also section.
Returns:
true if XML is properly applied, false if the XML cannot be applied.
See Also:
Rule.RESET_NONE, Rule.RESET_XML_PROPERTIES, Rule.RESET_EVERYTHING

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.0.0)

E17492-01

Copyright © 1997, 2011, Oracle. All rights reserved.