scriptella.configuration
Class IncludeEl

java.lang.Object
  extended by scriptella.configuration.XmlConfigurableBase
      extended by 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

Constructor Summary
IncludeEl(XmlElement element)
           
 
Method Summary
 void configure(XmlElement element)
          Configures the class using specified XML element.
 java.lang.String getCharset()
           
 FallbackEl getFallbackEl()
           
 java.lang.String getHref()
           
 java.io.Reader open()
          Opens a resource and returns a content reader.
 void setCharset(java.lang.String charset)
           
 void setFallbackEl(FallbackEl fallbackEl)
           
 void setHref(java.lang.String href)
           
 void setPropertiesSubstitutor(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scriptella.spi.Resource
toString
 

Constructor Detail

IncludeEl

public IncludeEl(XmlElement element)
Method Detail

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.