org.mmbase.core.util
Class Fields

Package class diagram package Fields
java.lang.Object
  extended by org.mmbase.bridge.Fields
      extended by org.mmbase.core.util.Fields

public class Fields
extends Fields

Eĥoŝanĝo, ĉiuĵaŭde.

Since:
MMBase-1.8
Version:
$Id: Fields.java 45315 2011-02-18 20:23:11Z michiel $

Field Summary
 
Fields inherited from class org.mmbase.bridge.Fields
STATE_MAXVALUE, STATE_MINVALUE, TYPE_MAXVALUE, TYPE_MINVALUE
 
Constructor Summary
Fields()
           
 
Method Summary
static CoreField createField(String name, int type, int state, DataType dataType)
          Defaulting version of createField(String, int int, int, DataType) (no list item type, because it is nearly always irrelevant).
static CoreField createField(String name, int type, int listItemType, int state, DataType dataType)
          Returns an instance of a CoreField based on the type and state.
static CoreField createSystemField(String name, int type)
          Returns an instance of a CoreField based on the type, with state 'SYSTEM', and a basic datatype assigned.
 
Methods inherited from class org.mmbase.bridge.Fields
classToType, createField, createField, createSystemField, getFieldTypes, getState, getStateDescription, getType, getTypeDescription, sort, typeToClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fields

public Fields()
Method Detail

createSystemField

public static CoreField createSystemField(String name,
                                          int type)
Returns an instance of a CoreField based on the type, with state 'SYSTEM', and a basic datatype assigned.

Parameters:
name - The name of the field
type - the MMBase basic field type, one of the Field TYPE constants. Specifying Field.TYPE_LIST, may give unpredictable results.

createField

public static CoreField createField(String name,
                                    int type,
                                    int state,
                                    DataType dataType)
Defaulting version of createField(String, int int, int, DataType) (no list item type, because it is nearly always irrelevant).

Since:
MMBase-1.9

createField

public static CoreField createField(String name,
                                    int type,
                                    int listItemType,
                                    int state,
                                    DataType dataType)
Returns an instance of a CoreField based on the type and state.

Parameters:
name - The name of the field
type - the MMBase basic field type, one of the Field TYPE constants.
listItemType - the MMBase type for items of a list (if type is Field.TYPE_LIST).
state - the MMBase field state, one of the Field STATE constants.
dataType - the unfinished dataType to use for validating the field data. If null, a default datatype is assigned


MMBase2 Core 2.0-SNAPSHOT - 2013-11-29T11:08