Update of /var/cvs/src/org/mmbase/core/util
In directory james.mmbase.org:/tmp/cvs-serv16285

Modified Files:
        Fields.java 
Log Message:
added a 'createField' method without the (nearly always irrelevant) list item 
type


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/core/util


Index: Fields.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/core/util/Fields.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- Fields.java 24 Feb 2007 21:57:51 -0000      1.11
+++ Fields.java 9 Oct 2008 13:11:13 -0000       1.12
@@ -59,6 +59,14 @@
         }
         return new org.mmbase.module.corebuilders.FieldDefs(name, type, 
listItemType, state, dataType);
     }
+    /**
+     * Defaulting version of [EMAIL PROTECTED] #createField(name, int int, 
int, DataType)} (no list item type,
+     * because it is nearly always irrelevant).
+     * @since MMBase-1.9
+     */
+    public static CoreField createField(String name, int type, int state, 
DataType dataType) {
+        return createField(name, type, Field.TYPE_UNKNOWN, state, dataType);
+    }
 
     /**
      * Provide a description for the specified type.
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to