public class SimpleXmlRenderer extends XmlRenderer
SimpleXmlRenderer also uses the options hashtable for configuration.
Modifier and Type | Field and Description |
---|---|
static 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 String |
RENDER_ALL_ATTRIBUTES
The hashtable key for specifying whether to render all the attributes
of a classobject w/out invoking custom rendering
|
static 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 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.
|
static String |
SUPPRESS_ASSOCIATED_SCHEMAOBJECT_ATTRIBUTE
Option used to supress additional attributes when Schema categories
are being rendered.
|
static String |
SUPPRESS_DATES |
static String |
SUPPRESS_IDS |
static String |
SUPPRESS_XML_ATTRIBUTES
Option used to suppress additional XML attribute information
such as refType and ClassName tags
|
CHAR_ENCODING, m_Localizer
Constructor and Description |
---|
SimpleXmlRenderer(S_LibrarySession session)
Constructs a SimpleXMLRenderer
|
Modifier and Type | Method and Description |
---|---|
protected Document |
createTree(S_LibraryObject slo,
Hashtable options)
Creates a DOM tree representing the S_LibraryObject passed in.
|
renderAsReader, renderAsStream, renderAsString
public static final String RENDER_NULL_ATTRIBUTES
public static final String RENDER_FALSE_PERMISSIONS
public static final String RENDER_ALL_ATTRIBUTES
public static final String LOCALIZE_NUMBERS
public static final String SUPPRESS_IDS
public static final String SUPPRESS_DATES
public static final String SUPPRESS_XML_ATTRIBUTES
public static final String SUPPRESS_ASSOCIATED_SCHEMAOBJECT_ATTRIBUTE
public SimpleXmlRenderer(S_LibrarySession session) throws IfsException
session
- The S_LibrarySession constructing this
SimpleXMLRendererIfsException
- if the operation failsprotected Document createTree(S_LibraryObject slo, Hashtable options) throws IfsException
The options available are:
createTree
in class XmlRenderer
slo
- the object to be renderedoptions
- the options table- see method descriptionIfsException
- thrown if an error occured during this
operationCopyright © 2023. All rights reserved.