org.mmbase.core.util
Class Fields
java.lang.Object
org.mmbase.bridge.Fields
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 $
|
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 |
Fields
public Fields()
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 fieldtype - 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 fieldtype - 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-03-30T06:36