Class FromXMLList

All Implemented Interfaces:
DefineAdder

public class FromXMLList extends DefineAdderBean
Adds a list of Named-Items define in a XML file in the current directory.
Author:
Owen Feehan
  • Constructor Details

    • FromXMLList

      public FromXMLList()
  • Method Details

    • addTo

      public void addTo(Define define) throws DefineAddException
      Description copied from interface: DefineAdder
      Adds items to define.

      What items are added varies by implementation.

      Parameters:
      define - where to add items to
      Throws:
      DefineAddException - if the items cannot be added successfully.
    • getName

      public String getName()
      The name of the file in the current working directory WITHOUT THE .xml EXTENSION
    • setName

      public void setName(String name)
      The name of the file in the current working directory WITHOUT THE .xml EXTENSION
    • isPrefix

      public boolean isPrefix()
      If true, a prefix is prepended to the name of each added bean. The prefix is: the name followed by a full-stop.
    • setPrefix

      public void setPrefix(boolean prefix)
      If true, a prefix is prepended to the name of each added bean. The prefix is: the name followed by a full-stop.