Package scriptella.configuration
Class IncludeEl
java.lang.Object
scriptella.configuration.XmlConfigurableBase
scriptella.configuration.IncludeEl
- All Implemented Interfaces:
XmlConfigurable,Resource
Represents
include XML configuration element.- Version:
- 1.0
- Author:
- Fyodor Kupolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(XmlElement element) Configures the class using specified XML element.getHref()open()Opens a resource and returns a content reader.voidsetCharset(String charset) voidsetFallbackEl(FallbackEl fallbackEl) voidvoidsetPropertiesSubstitutor(PropertiesSubstitutor substitutor) Sets the properties substitutor to expand properties inside href attribute.Methods inherited from class scriptella.configuration.XmlConfigurableBase
assertRequiredFieldPresent, assertRequiredFieldPresent, findGetter, findSetter, getLocation, load, loadClass, setLocation, setLocation, setPatternProperty, setPatternProperty, setProperty, setProperty, setRequiredProperty, setRequiredProperty
-
Constructor Details
-
IncludeEl
-
-
Method Details
-
getHref
-
setHref
-
getCharset
-
setCharset
-
getFallbackEl
-
setFallbackEl
-
setPropertiesSubstitutor
Sets the properties substitutor to expand properties inside href attribute.- Parameters:
substitutor- properties substitutor.
-
configure
Description copied from interface:XmlConfigurableConfigures the class using specified XML element.- Specified by:
configurein interfaceXmlConfigurable- Parameters:
element- XML element.
-
open
Description copied from interface:ResourceOpens a resource and returns a content reader.The returned reader implementation should be effective enough to allow usage without extra buffering, etc.
- Specified by:
openin interfaceResource- Returns:
- resource content reader
- Throws:
IOException- if I/O error occurs.
-