|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.bridge.Fields
public class Fields
| Field Summary | |
|---|---|
static int |
STATE_MAXVALUE
|
static int |
STATE_MINVALUE
|
static int |
TYPE_MAXVALUE
|
static int |
TYPE_MINVALUE
|
| Constructor Summary | |
|---|---|
Fields()
|
|
| Method Summary | |
|---|---|
static int |
classToType(Class classType)
Determines the MMBase type of a specified class. |
static Field |
createField(Cloud cloud,
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 Field |
createField(Cloud cloud,
String name,
int type,
int listItemType,
int state,
DataType dataType)
|
static Field |
createSystemField(Cloud cloud,
String name,
int type)
|
static Map<String,Field> |
getFieldTypes(SearchQuery query,
NodeManager nm)
|
static int |
getState(String state)
Provide an id for the specified mmbase state description. |
static String |
getStateDescription(int state)
Provide a description for the specified state. |
static int |
getType(String type)
Provide an id for the specified mmbase type description |
static String |
getTypeDescription(int type)
Provide a description for the specified type. |
static void |
sort(List<? extends Field> fields,
int order)
|
static Class |
typeToClass(int type)
Determines the class for a specified MMBase base type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STATE_MINVALUE
public static final int STATE_MAXVALUE
public static final int TYPE_MINVALUE
public static final int TYPE_MAXVALUE
| Constructor Detail |
|---|
public Fields()
| Method Detail |
|---|
public static String getTypeDescription(int type)
type - the type to get the description of
public static String getStateDescription(int state)
state - the state to get the description of
public static int getState(String state)
state - the state description to get the id of
public static int getType(String type)
type - the type description to get the id of
public static int classToType(Class classType)
Field.TYPE_UNKNOWN.
classType -
public static Class typeToClass(int type)
Field.TYPE_UNKNOWN), the method returns null.
type -
public static void sort(List<? extends Field> fields,
int order)
public static Map<String,Field> getFieldTypes(SearchQuery query,
NodeManager nm)
public static Field createSystemField(Cloud cloud,
String name,
int type)
public static Field createField(Cloud cloud,
String name,
int type,
int state,
DataType dataType)
#createField(String, int int, int, DataType) (no list item type,
because it is nearly always irrelevant).
public static Field createField(Cloud cloud,
String name,
int type,
int listItemType,
int state,
DataType dataType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||