|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscriptella.configuration.XmlConfigurableBase
scriptella.configuration.DialectBasedContentEl
public class DialectBasedContentEl
Represents dialect based content used inside query/script/onerror elements.
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 Summary | |
|---|---|
DialectBasedContentEl()
|
|
DialectBasedContentEl(XmlElement element)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class scriptella.configuration.XmlConfigurableBase |
|---|
assertRequiredFieldPresent, assertRequiredFieldPresent, findGetter, findSetter, getLocation, load, loadClass, setLocation, setLocation, setPatternProperty, setPatternProperty, setProperty, setProperty, setRequiredProperty, setRequiredProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DialectBasedContentEl()
public DialectBasedContentEl(XmlElement element)
| Method Detail |
|---|
public void configure(XmlElement element)
XmlConfigurable
element - XML element.public ContentEl getContent(DialectIdentifier id)
id - dialect identifier. null if any dialect.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||