Oracle Content Management SDK

oracle.ifs.server.renderers
Class SimpleXmlRenderer

java.lang.Object
  |
  +--oracle.ifs.server.renderers.XmlRenderer
        |
        +--oracle.ifs.server.renderers.SimpleXmlRenderer
All Implemented Interfaces:
Renderer

Deprecated. iFS 9.0.3 see release notes for more information

public class SimpleXmlRenderer
extends XmlRenderer

The SimpleXMLRenderer provides a convenient mapping between LibraryObjects and XML. For a full description of the mapping see XmlRenderer Spec .

SimpleXmlRenderer also uses the options hashtable for configuration.


Field Summary
static java.lang.String LOCALIZE_NUMBERS
          Deprecated. The hashtable key for specifying whether number attributes (including id references to other LibaryObjects) should be localized or should be presented in the default format.
static java.lang.String RENDER_ALL_ATTRIBUTES
          Deprecated. The hashtable key for specifying whether to render all the attributes of a classobject w/out invoking custom rendering
static java.lang.String RENDER_FALSE_PERMISSIONS
          Deprecated. The hashtable key for specifying whether the false permission bits on an acl should be renderered, or just the true bits.
static java.lang.String RENDER_NULL_ATTRIBUTES
          Deprecated. The hashtable key for specifying whether attributes with null values should have tags in the XML document or whether they should be omitted.
 
Fields inherited from class oracle.ifs.server.renderers.XmlRenderer
CHAR_ENCODING
 
Constructor Summary
SimpleXmlRenderer(S_LibrarySession session)
          Deprecated. Constructs a SimpleXMLRenderer
 
Method Summary
protected  oracle.xml.parser.v2.XMLDocument createTree(S_LibraryObject slo, java.util.Hashtable options)
          Deprecated. Creates a DOM tree representing the S_LibraryObject passed in.
 
Methods inherited from class oracle.ifs.server.renderers.XmlRenderer
renderAsReader, renderAsStream, renderAsString
 

Field Detail


RENDER_NULL_ATTRIBUTES

public static final java.lang.String RENDER_NULL_ATTRIBUTES
Deprecated. 
The hashtable key for specifying whether attributes with null values should have tags in the XML document or whether they should be omitted. The default is to omit null attributes.

RENDER_FALSE_PERMISSIONS

public static final java.lang.String RENDER_FALSE_PERMISSIONS
Deprecated. 
The hashtable key for specifying whether the false permission bits on an acl should be renderered, or just the true bits. By default, this renderer only includes the true permission bits.

RENDER_ALL_ATTRIBUTES

public static final java.lang.String RENDER_ALL_ATTRIBUTES
Deprecated. 
The hashtable key for specifying whether to render all the attributes of a classobject w/out invoking custom rendering

LOCALIZE_NUMBERS

public static final java.lang.String LOCALIZE_NUMBERS
Deprecated. 
The hashtable key for specifying whether number attributes (including id references to other LibaryObjects) should be localized or should be presented in the default format. The default is for no localization.
Constructor Detail

SimpleXmlRenderer

public SimpleXmlRenderer(S_LibrarySession session)
                  throws IfsException
Deprecated. 
Constructs a SimpleXMLRenderer
Parameters:
session - The S_LibrarySession constructing this SimpleXMLRenderer
Throws:
IfsException - if the operation fails
Method Detail

createTree

protected oracle.xml.parser.v2.XMLDocument createTree(S_LibraryObject slo,
                                                      java.util.Hashtable options)
                                               throws IfsException
Deprecated. 
Creates a DOM tree representing the S_LibraryObject passed in.

The options available are:

CHARACTER_SET
(from XMLRenderer) Sets the character encoding for this document
RENDER_NULL_ATTRIBUTES
Boolean which if true causes attributes with null values to be rendered as empty tags.
LOCALIZE_NUMBERS
Boolean which if true causes numerical attributes to be formatted using the session Locale's NumberFormat class.
RENDER_ALL_ATTRIBUTES
Boolean which if true causes the effective attributes of the class to be rendered
Overrides:
createTree in class XmlRenderer
Parameters:
slo - the object to be rendered
options - the options table- see method description
Returns:
the XMLDocument to render
Throws:
IfsException - thrown if an error occured during this operation

Oracle Content Management SDK

(c) 2002 Copyright Oracle Corporation. All rights reserved.