Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


oracle.jbo
Interface XMLInterface

All Known Subinterfaces:
Entity, Row, RowSet, ViewObject, ViewObjectDynAttr, WSRowSet
All Known Implementing Classes:
CmrAccessorEntRowSet, CmrAccessorViewImpl, CmrAccessorViewRowSet, DCCriteriaBaseVOImpl, DCCriteriaItemRowImpl, DCCriteriaItemVOImpl, DCCriteriaOperatorRowImpl, DCCriteriaOperatorVOImpl, DCCriteriaRowImpl, DCCriteriaRowRowImpl, DCCriteriaRowVOImpl, DCCriteriaValueRowImpl, DCCriteriaValueVOImpl, DCCriteriaVOImpl, DCDataRow, DCDataVO, DSEntityImpl, DSViewObjectImpl, EntityCacheOverRowSet, EntityFacadeImpl, EntityImpl, EntityOverRow, EntityRowSetImpl, FinderViewImpl, PlaceholderVOImpl, RowIdEntityObjectImpl, RowIdViewObjRowImpl, RowImpl, RowImpl, RowImpl, TransPostEntityRow, ViewCriteria.NestedViewCriteriaRow, ViewCriteriaRow, ViewCriteriaRowImpl, ViewObjectImpl, ViewObjectOnRowSets, ViewRowImpl, ViewRowSetImpl, ViewUsageImpl, WSRowSetImpl, WSViewObjectImpl

public interface XMLInterface

Field Summary
static int XML_IGNORE_DEPTH_COUNT
           
static long XML_OPT_ALL_ROWS
          Bit flag to indicate that all rows will be rendered in XML in the writeXML() method.
static long XML_OPT_ASSOC_CONSISTENT
          Bit flag to indicate that attribute accessors that return a RowSet should set the AssociationConsistent flag on, so that new (unposted) rows for the RowSet are also included in the output.
static long XML_OPT_CHANGES_ONLY
          For internal framework use only.
static long XML_OPT_LIMIT_RANGE
          Bit flag to indicate that rows in the current range will be rendered in XML in the writeXML() method.
static int XML_PASSIVATION_USE
          For internal framework use only.

 

Method Summary
 void readXML(Element elem, int depthCount)
           
 void readXML(Element elem, int depthCount, XSLStylesheet xslt)
           
 Node writeXML(int depthCount, long options)
          Renders data in a canonical XML-format.
 Node writeXML(int depthCount, long options, XSLStylesheet xslt)
           
 Node writeXML(long options, java.util.HashMap voAttrMap)
          Renders data in a canonical XML-format.
 Node writeXML(long options, java.util.HashMap voAttrMap, XSLStylesheet xslt)
           

 

Field Detail

XML_OPT_ALL_ROWS

static final long XML_OPT_ALL_ROWS
Bit flag to indicate that all rows will be rendered in XML in the writeXML() method.
See Also:
Constant Field Values

XML_OPT_LIMIT_RANGE

static final long XML_OPT_LIMIT_RANGE
Bit flag to indicate that rows in the current range will be rendered in XML in the writeXML() method. This flag does not work with forward only VOs.
See Also:
Constant Field Values

XML_OPT_ASSOC_CONSISTENT

static final long XML_OPT_ASSOC_CONSISTENT
Bit flag to indicate that attribute accessors that return a RowSet should set the AssociationConsistent flag on, so that new (unposted) rows for the RowSet are also included in the output. When this flag is set, the RowSet used for rendering XML is not set to forward only mode.
See Also:
Constant Field Values

XML_PASSIVATION_USE

static final int XML_PASSIVATION_USE
For internal framework use only.
See Also:
Constant Field Values

XML_OPT_CHANGES_ONLY

static final long XML_OPT_CHANGES_ONLY
For internal framework use only.
See Also:
Constant Field Values

XML_IGNORE_DEPTH_COUNT

static final int XML_IGNORE_DEPTH_COUNT
See Also:
Constant Field Values

Method Detail

writeXML

Node writeXML(int depthCount,
              long options)
Renders data in a canonical XML-format. The classes ViewObjectImpl and ViewRowImpl implement this method to render data in XML.

Use this method whenever data is required in XML format, either to present a UI (after converting XML data into some HTTP format using a stylesheet) or to pass the data as payload for messages via JMS.

The depthcount parameter represents to what level the rendering should recurse. A depthcount of zero (0) means do not traverse any View Links while rendering. One (1) means traverse the View Links on this object but no View Links thereafter, and so on.

The options parameter represents a set of bit flags that will control the writeXML behavior. The following bit flags have been defined:

Parameters:
depthCount - represents to what level the rendering should recurse.
options - a set of bit flags that will control the writeXML behavior.

writeXML

Node writeXML(int depthCount,
              long options,
              XSLStylesheet xslt)

readXML

void readXML(Element elem,
             int depthCount)

readXML

void readXML(Element elem,
             int depthCount,
             XSLStylesheet xslt)

writeXML

Node writeXML(long options,
              java.util.HashMap voAttrMap)
Renders data in a canonical XML-format. The classes ViewObjectImpl and ViewRowImpl implement this method to render data in XML.

Use this method whenever data is required in XML format, either to present a UI (after converting XML data into some HTTP format using a stylesheet) or to pass the data as payload for messages via JMS.

The options parameter represents a set of bit flags that will control the writeXML behavior. The following bit flags have been defined:

The voAttrMap parameter represents in a hashmap, the mapping between a given ViewObject's definition type and the corresponding Attributes/accessors to render. A null entry in the hashmap means, render all attributes and accessors of that viewobject type.

Parameters:
options - a set of bit flags that will control the writeXML
voAttrMap - HashMap containing Definition names of ViewObjects and an array of AttributeDef to render for a ViewObject of that definition type.

writeXML

Node writeXML(long options,
              java.util.HashMap voAttrMap,
              XSLStylesheet xslt)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


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