Class XMLRenderingOptions
java.lang.Object
com.espertech.esper.common.client.render.XMLRenderingOptions
XML rendering options.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the event property renderer to use.boolean
Indicator whether simple properties are rendered as attributes, this setting is false by default thereby simple properties are rendered as elements.boolean
Indicator whether to prevent looping, by default set to true.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.setPreventLooping
(boolean preventLooping) Indicator whether to prevent looping, by default set to true.void
setRenderer
(EventPropertyRenderer renderer) Sets the event property renderer to use.
-
Constructor Details
-
XMLRenderingOptions
public XMLRenderingOptions()Ctor.
-
-
Method Details
-
isPreventLooping
public boolean isPreventLooping()Indicator whether to prevent looping, by default set to true. Set to false to allow looping in the case where nested properties may refer to themselves, for example.The algorithm to control looping considers the combination of event type and property name for each level of nested property.
- Returns:
- indicator whether the rendering algorithm prevents looping behavior
-
isDefaultAsAttribute
public boolean isDefaultAsAttribute()Indicator whether simple properties are rendered as attributes, this setting is false by default thereby simple properties are rendered as elements.- Returns:
- true for simple properties rendered as attributes
-
setPreventLooping
Indicator whether to prevent looping, by default set to true. Set to false to allow looping in the case where nested properties may refer to themselves, for example.The algorithm to control looping considers the combination of event type and property name for each level of nested property.
- Parameters:
preventLooping
- indicator whether the rendering algorithm prevents looping behavior- Returns:
- options object
-
setDefaultAsAttribute
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.- Parameters:
defaultAsAttribute
- true for simple properties rendered as attributes- Returns:
- options object
-
getRenderer
Returns the event property renderer to use.- Returns:
- event property renderer
-
setRenderer
Sets the event property renderer to use.- Parameters:
renderer
- event property renderer
-