Package scriptella.configuration
Class DialectBasedContentEl
java.lang.Object
scriptella.configuration.XmlConfigurableBase
scriptella.configuration.DialectBasedContentEl
- All Implemented Interfaces:
XmlConfigurable
Represents dialect based content used inside query/script/onerror elements.
The returned text for Dialect1 is: AAA111BBB
When the DOM is traversed the internal representation model is built. This model contains enough info to speed up selection based on a requested dialect identifier. The following example demonstrates the algorithm using pseudo markup:
AAA[Dialect1 111]BBB[Dialect2 222]The returned text for default Dialect is: AAABBB
The returned text for Dialect1 is: AAA111BBB
- Version:
- 1.0
- Author:
- Fyodor Kupolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(XmlElement element) Configures the class using specified XML element.This method returns content for specified dialect id or null - if script doesn't support this dialect.Methods inherited from class scriptella.configuration.XmlConfigurableBase
assertRequiredFieldPresent, assertRequiredFieldPresent, findGetter, findSetter, getLocation, load, loadClass, setLocation, setLocation, setPatternProperty, setPatternProperty, setProperty, setProperty, setRequiredProperty, setRequiredProperty
-
Constructor Details
-
DialectBasedContentEl
public DialectBasedContentEl() -
DialectBasedContentEl
-
-
Method Details
-
configure
Description copied from interface:XmlConfigurableConfigures the class using specified XML element.- Parameters:
element- XML element.
-
getContent
This method returns content for specified dialect id or null - if script doesn't support this dialect.- Parameters:
id- dialect identifier. null if any dialect.- Returns:
- content for specified dialect id or null - if script doesn't support this dialect.
-