public class DialectBasedContentEl extends XmlConfigurableBase
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
Constructor and Description |
---|
DialectBasedContentEl() |
DialectBasedContentEl(XmlElement element) |
Modifier and Type | Method and Description |
---|---|
void |
configure(XmlElement element)
Configures the class using specified XML element.
|
ContentEl |
getContent(DialectIdentifier id)
This method returns content for specified dialect id or null - if script doesn't support this dialect.
|
assertRequiredFieldPresent, assertRequiredFieldPresent, findGetter, findSetter, getLocation, load, loadClass, setLocation, setLocation, setPatternProperty, setPatternProperty, setProperty, setProperty, setRequiredProperty, setRequiredProperty
public DialectBasedContentEl()
public DialectBasedContentEl(XmlElement element)
public void configure(XmlElement element)
XmlConfigurable
element
- XML element.public ContentEl getContent(DialectIdentifier id)
id
- dialect identifier. null if any dialect.Copyright © Copyright 2006-2019 The Scriptella Project Team.