Class AppData

java.lang.Object
org.apache.fulcrum.intake.model.AppData
All Implemented Interfaces:
Serializable

public class AppData extends Object implements Serializable
A class for holding application data structures.
Version:
$Id$
Author:
John McNally, Henning P. Schmiedehausen, Thomas Vandahl
See Also:
  • Constructor Details

    • AppData

      public AppData()
  • Method Details

    • getGroups

      public List<Group> getGroups()
      Return a collection of input sections (<group>). The names of the groups returned here are only unique to this AppData object and not qualified with the groupPrefix. This method is used in the IntakeService to register all the groups with and without prefix in the service.
      Returns:
      the list of groups
    • setGroups

      public void setGroups(List<Group> groups)
      Set the collection of groups
      Parameters:
      groups - the groups to set
    • getGroup

      public Group getGroup(String groupName) throws IntakeException
      Get a XmlGroup with the given name. It finds both qualified and unqualified names in this package.
      Parameters:
      groupName - a String value
      Returns:
      a Group value
      Throws:
      IntakeException - indicates that the groupName was null
    • getBasePackage

      public String getBasePackage()
      Get the base package String that will be appended to any mapToObjects
      Returns:
      value of basePackage.
    • setBasePackage

      public void setBasePackage(String v)
      Set the base package String that will be appended to any mapToObjects
      Parameters:
      v - Value to assign to basePackage.
    • getGroupPrefix

      public String getGroupPrefix()
      Get the prefix String that will be used to qualify intake groups when using multiple XML files
      Returns:
      value of groupPrefix
    • setGroupPrefix

      public void setGroupPrefix(String groupPrefix)
      Set the prefix String that will be used to qualify intake groups when using multiple XML files
      Parameters:
      groupPrefix - Value to assign to basePackage.
    • toString

      public String toString()
      Creates a string representation of this AppData. The representation is given in xml format.
      Overrides:
      toString in class Object