You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jo...@apache.org on 2001/04/26 01:31:16 UTC

cvs commit: jakarta-turbine/src/java/org/apache/turbine/torque/engine/intake/model InputGroup.java

jon         01/04/25 16:31:16

  Modified:    src/java/org/apache/turbine/torque/engine/intake/model
                        InputGroup.java
  Log:
  this file is dead, however, we are changing the name so we might as well
  change it here before it eventually gets removed...yea...something like
  that. :-)
  
  -jon
  
  Revision  Changes    Path
  1.4       +12 -14    jakarta-turbine/src/java/org/apache/turbine/torque/engine/intake/model/InputGroup.java
  
  Index: InputGroup.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/torque/engine/intake/model/InputGroup.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- InputGroup.java	2001/03/09 11:54:22	1.3
  +++ InputGroup.java	2001/04/25 23:31:16	1.4
  @@ -66,7 +66,7 @@
    * A Class for holding data about a grouping of inputs used in an Application.
    *
    * @author <a href="mailto:jmcnally@collab.net>John McNally</a>
  - * @version $Id: InputGroup.java,v 1.3 2001/03/09 11:54:22 jmcnally Exp $
  + * @version $Id: InputGroup.java,v 1.4 2001/04/25 23:31:16 jon Exp $
    */
   public class InputGroup
   {
  @@ -74,7 +74,7 @@
       private Vector mapToObjects;
       private String defaultMapToObject;
       private AppData parent;
  -    private String classname;
  +    private String groupName;
       private String key;
   
       /**
  @@ -91,7 +91,7 @@
        */
       public void loadFromXML (Attributes attrib)
       {
  -        classname = attrib.getValue("class");
  +        groupName = attrib.getValue("name");
           key = attrib.getValue("key");
           
           String objName = attrib.getValue("mapToObject");
  @@ -103,19 +103,19 @@
       }
   
       /**
  -     * Get the class name that handles this group
  +     * Get the name that handles this group
        */
  -    public String getClassName()
  +    public String getGroupName()
       {
  -        return classname;
  +        return groupName;
       }
   
       /**
  -     * Set the class name that handles this group
  +     * Set the name that handles this group
        */
  -    public void setClassName(String newClass)
  +    public void setGroupName(String newGroup)
       {
  -        classname = newClass;
  +        groupName = newGroup;
       }
   
       /**
  @@ -262,8 +262,8 @@
        */
       public String getVariable()
       {
  -        String firstChar = getClassName().substring(0,1).toLowerCase();
  -        return firstChar + getClassName().substring(1);
  +        String firstChar = getGroupName().substring(0,1).toLowerCase();
  +        return firstChar + getGroupName().substring(1);
       }
   
   
  @@ -275,7 +275,7 @@
       {
           StringBuffer result = new StringBuffer();
   
  -        result.append ("<group class=\"").append(classname);
  +        result.append ("<group name=\"").append(groupName);
           result.append(" key=\""+key+"\"");
           result.append(">\n");
   
  @@ -291,6 +291,4 @@
   
           return result.toString();
       }
  -
  -
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org