org.mmbase.bridge
Interface Field

All Known Implementing Classes:
BasicField

public interface Field

This interface represents a node's field type information object.

Author:
Pierre van Rooden, Jaco de Groot

Field Summary
static int STATE_PERSISTENT
           
static int STATE_SYSTEM
           
static int STATE_UNKNOWN
           
static int STATE_VIRTUAL
           
static int TYPE_BYTE
           
static int TYPE_DOUBLE
           
static int TYPE_FLOAT
           
static int TYPE_INTEGER
           
static int TYPE_LONG
           
static int TYPE_STRING
           
static int TYPE_UNKNOWN
           
 
Method Summary
 java.lang.String getGUIName()
          Returns the GUI name for this field.
 java.lang.String getGUIType()
          Returns the GUI name for the data type this field contains.
 int getMaxLength()
          Returns the maximum length of data this field can contain.
 java.lang.String getName()
          Returns the name of this field.
 NodeManager getNodeManager()
          Returns the node manager this field belongs to.
 int getState()
          Returns this field's state identifier.
 int getType()
          Returns the identifier for the data type this field contains.
 

Field Detail

STATE_VIRTUAL

public static final int STATE_VIRTUAL

STATE_PERSISTENT

public static final int STATE_PERSISTENT

STATE_SYSTEM

public static final int STATE_SYSTEM

STATE_UNKNOWN

public static final int STATE_UNKNOWN

TYPE_STRING

public static final int TYPE_STRING

TYPE_INTEGER

public static final int TYPE_INTEGER

TYPE_BYTE

public static final int TYPE_BYTE

TYPE_FLOAT

public static final int TYPE_FLOAT

TYPE_DOUBLE

public static final int TYPE_DOUBLE

TYPE_LONG

public static final int TYPE_LONG

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
Method Detail

getNodeManager

public NodeManager getNodeManager()
Returns the node manager this field belongs to.
Returns:
the node manager this field belongs to

getName

public java.lang.String getName()
Returns the name of this field.
Returns:
the name of this field

getGUIType

public java.lang.String getGUIType()
Returns the GUI name for the data type this field contains.
Returns:
the GUI name for the data type this field contains

getGUIName

public java.lang.String getGUIName()
Returns the GUI name for this field.
Returns:
the GUI name for this field

getType

public int getType()
Returns the identifier for the data type this field contains.
Returns:
an int wich identifies the type of data this field contains

getState

public int getState()
Returns this field's state identifier.
Returns:
an int wich identifies the state of this field

getMaxLength

public int getMaxLength()
Returns the maximum length of data this field can contain. For example if a field contains characters the size indicates the maximum number of characters it can contain. If the field is a numeric field (such as an integer), the result is -1.
Returns:
the maximum length of data this field can contain


MMBase 2001