Class 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 Details

    • IncludeEl

      public IncludeEl(XmlElement element)
  • Method Details

    • getHref

      public String getHref()
    • setHref

      public void setHref(String href)
    • getCharset

      public String getCharset()
    • setCharset

      public void setCharset(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 Reader open() throws 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:
      IOException - if I/O error occurs.