org.apache.turbine.services.intake.xmlmodel
Class AppData

java.lang.Object
  |
  +--org.apache.turbine.services.intake.xmlmodel.AppData
All Implemented Interfaces:
java.io.Serializable

public class AppData
extends java.lang.Object
implements java.io.Serializable

A class for holding application data structures.

Version:
$Id: AppData.java,v 1.2 2001/10/09 14:14:30 henning Exp $
Author:
Serialized Form

Field Summary
private  java.lang.String basePackage
           
private  java.util.List inputs
           
 
Constructor Summary
AppData()
          Default Constructor
 
Method Summary
 XmlGroup addGroup(org.xml.sax.Attributes attrib)
          An utility method to add a new input group from an xml attribute.
 void addGroup(XmlGroup input)
          Add an input group to the vector and sets the AppData property to this AppData
 java.lang.String getBasePackage()
          Get the base package String that will be appended to any mapToObjects
 XmlGroup getGroup(java.lang.String groupName)
          Get a XmlGroup with the given name.
 java.util.List getGroups()
          Return a collection of input sections ()
 void loadFromXML(org.xml.sax.Attributes attrib)
          Imports the top level element from an XML specification
 void setBasePackage(java.lang.String v)
          Get the base package String that will be appended to any mapToObjects
 java.lang.String toString()
          Creats a string representation of this AppData.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

inputs

private java.util.List inputs

basePackage

private java.lang.String basePackage
Constructor Detail

AppData

public AppData()
Default Constructor
Method Detail

loadFromXML

public void loadFromXML(org.xml.sax.Attributes attrib)
Imports the top level element from an XML specification

getGroups

public java.util.List getGroups()
Return a collection of input sections ()

getGroup

public XmlGroup getGroup(java.lang.String groupName)
Get a XmlGroup with the given name.
Parameters:
groupName - a String value
Returns:
a XmlGroup value

addGroup

public XmlGroup addGroup(org.xml.sax.Attributes attrib)
An utility method to add a new input group from an xml attribute.

addGroup

public void addGroup(XmlGroup input)
Add an input group to the vector and sets the AppData property to this AppData

getBasePackage

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

setBasePackage

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

toString

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


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.