scriptella.configuration
Class IncludeEl
java.lang.Object
scriptella.configuration.XmlConfigurableBase
scriptella.configuration.IncludeEl
- All Implemented Interfaces:
- XmlConfigurable, Resource
public class IncludeEl
- extends XmlConfigurableBase
- implements Resource
Represents include XML configuration element.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
| 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 |
IncludeEl
public IncludeEl(XmlElement element)
getHref
public java.lang.String getHref()
setHref
public void setHref(java.lang.String href)
getCharset
public java.lang.String getCharset()
setCharset
public void setCharset(java.lang.String charset)
getFallbackEl
public FallbackEl getFallbackEl()
setFallbackEl
public void setFallbackEl(FallbackEl fallbackEl)
setPropertiesSubstitutor
public void setPropertiesSubstitutor(PropertiesSubstitutor substitutor)
- Sets the properties substitutor to expand properties inside href attribute.
- Parameters:
substitutor - properties substitutor.
configure
public void configure(XmlElement element)
- Description copied from interface:
XmlConfigurable
- Configures the class using specified XML element.
- Specified by:
configure in interface XmlConfigurable
- Parameters:
element - XML element.
open
public java.io.Reader open()
throws java.io.IOException
- Description copied from interface:
Resource
- Opens a resource and returns a content reader.
The returned reader implementation should be effective enough to allow usage without
extra buffering, etc.
- Specified by:
open in interface Resource
- Returns:
- resource content reader
- Throws:
java.io.IOException - if I/O error occurs.
Copyright © Copyright 2006-2009 The Scriptella Project Team.