public class XMLRenderingOptions extends Object
Constructor and Description |
---|
XMLRenderingOptions()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventPropertyRenderer |
getRenderer()
Returns the event property renderer to use.
|
boolean |
isDefaultAsAttribute()
Indicator whether simple properties are rendered as attributes, this setting is false by default thereby
simple properties are rendered as elements.
|
boolean |
isPreventLooping()
Indicator whether to prevent looping, by default set to true.
|
XMLRenderingOptions |
setDefaultAsAttribute(boolean defaultAsAttribute)
Indicator whether simple properties are rendered as elements (the default) or as attributes, this setting is false by default thereby
simple properties are rendered as elements.
|
XMLRenderingOptions |
setPreventLooping(boolean preventLooping)
Indicator whether to prevent looping, by default set to true.
|
void |
setRenderer(EventPropertyRenderer renderer)
Sets the event property renderer to use.
|
public boolean isPreventLooping()
The algorithm to control looping considers the combination of event type and property name for each level of nested property.
public boolean isDefaultAsAttribute()
public XMLRenderingOptions setPreventLooping(boolean preventLooping)
The algorithm to control looping considers the combination of event type and property name for each level of nested property.
preventLooping
- indicator whether the rendering algorithm prevents looping behaviorpublic XMLRenderingOptions setDefaultAsAttribute(boolean defaultAsAttribute)
defaultAsAttribute
- true for simple properties rendered as attributespublic EventPropertyRenderer getRenderer()
public void setRenderer(EventPropertyRenderer renderer)
renderer
- event property renderer