You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jonathan Jackson <Jo...@Dartmouth.EDU> on 2001/06/19 15:40:40 UTC
[PATCH] getFieldNames added to intake class Group
Index: Group.java
===================================================================
RCS file: /home/cvspublic/jakarta-turbine/src/java/org/apache/turbine/services/intake/model/Group.java,v
retrieving revision 1.12.4.1
diff -u -r1.12.4.1 Group.java
--- Group.java 2001/05/07 03:05:29 1.12.4.1
+++ Group.java 2001/06/19 13:30:44
@@ -235,6 +235,19 @@
return this;
}
+
+
+ /**
+ * Gets a list of the names of the fields stored in this object.
+ *
+ * @return A String array containing the list of names.
+ */
+ public String[] getFieldNames(){
+ String nameList[] = new String[fieldsArray.length];
+ for(int i = 0; i < nameList.length; i++)
+ nameList[i] = fieldsArray[i].name;
+ return nameList;
+ }
/**
Re: [PATCH] getFieldNames added to intake class Group
Posted by John McNally <jm...@collab.net>.
patch applied. thank you, please in the future supply patches that
follow the style guide.
http://jakarta.apache.org/turbine/code-standards.html
john mcnally
Jonathan Jackson wrote:
>
> Name: patch-groups.txt
> patch-groups.txt Type: Plain Text (text/plain)
> Encoding: quoted-printable
>
> ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org