Class XmlDefinitionsSet

java.lang.Object
org.apache.struts.tiles.xmlDefinition.XmlDefinitionsSet

public class XmlDefinitionsSet extends Object
A set of definitions read from XML definitions file.
  • Field Details Link icon

  • Constructor Details Link icon

    • XmlDefinitionsSet Link icon

      public XmlDefinitionsSet()
      Constructor.
  • Method Details Link icon

    • putDefinition Link icon

      public void putDefinition(XmlDefinition definition)
      Put definition in set.
      Parameters:
      definition - Definition to add.
    • getDefinition Link icon

      public XmlDefinition getDefinition(String name)
      Get requested definition.
      Parameters:
      name - Definition name.
    • getDefinitions Link icon

      public Map<String,XmlDefinition> getDefinitions()
      Get definitions map.
    • resolveInheritances Link icon

      public void resolveInheritances() throws NoSuchDefinitionException
      Resolve extended instances.
      Throws:
      NoSuchDefinitionException
    • extend Link icon

      public void extend(XmlDefinitionsSet child)
      Add definitions from specified child definitions set. For each definition in child, look if it already exists in this set. If not, add it, if yes, overload parent's definition with child definition.
      Parameters:
      child - Definition used to overload this object.
    • toString Link icon

      public String toString()
      Get String representation.
      Overrides:
      toString in class Object