oracle.ifs.server.renderers
Class SimpleXmlRenderer
java.lang.Object
|
+--oracle.ifs.server.renderers.XmlRenderer
|
+--oracle.ifs.server.renderers.SimpleXmlRenderer
- All Implemented Interfaces:
- Renderer
- 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
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_FALSE_PERMISSIONS
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
The hashtable key for specifying whether attributes with null values
should have tags in the XML document or whether they should be omitted. |
Method Summary |
protected oracle.xml.parser.v2.XMLDocument |
createTree(S_LibraryObject slo,
java.util.Hashtable options)
Creates a DOM tree representing the S_LibraryObject passed in. |
RENDER_NULL_ATTRIBUTES
public static final java.lang.String RENDER_NULL_ATTRIBUTES
- 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
- 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.
LOCALIZE_NUMBERS
public static final java.lang.String LOCALIZE_NUMBERS
- 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.
SimpleXmlRenderer
public SimpleXmlRenderer(S_LibrarySession session)
throws IfsException
- Constructs a SimpleXMLRenderer
- Parameters:
session
- The S_LibrarySession constructing this
SimpleXMLRenderer- Throws:
IfsException
- if the operation fails
createTree
protected oracle.xml.parser.v2.XMLDocument createTree(S_LibraryObject slo,
java.util.Hashtable options)
throws IfsException
- 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.
- Overrides:
createTree
in class XmlRenderer
- Parameters:
slo
- the object to be renderedoptions
- the options table- see method description- Returns:
- the XMLDocument to render
- Throws:
IfsException
- thrown if an error occured during this
operation