org.mmbase.bridge.implementation
Class BasicField

java.lang.Object
  |
  +--org.mmbase.bridge.implementation.BasicField
All Implemented Interfaces:
Field

public class BasicField
extends java.lang.Object
implements Field

Author:
Pierre van Rooden

Fields inherited from interface org.mmbase.bridge.Field
STATE_PERSISTENT, STATE_SYSTEM, STATE_UNKNOWN, STATE_VIRTUAL, TYPE_BYTE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INTEGER, TYPE_LONG, TYPE_STRING, TYPE_UNKNOWN
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares two fields, and returns true if they are equal.
 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.
 int hashCode()
          Returns the object's hashCode.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNodeManager

public NodeManager getNodeManager()
Description copied from interface: Field
Returns the node manager this field belongs to.
Specified by:
getNodeManager in interface Field
Following copied from interface: org.mmbase.bridge.Field
Returns:
the node manager this field belongs to

getName

public java.lang.String getName()
Description copied from interface: Field
Returns the name of this field.
Specified by:
getName in interface Field
Following copied from interface: org.mmbase.bridge.Field
Returns:
the name of this field

getGUIType

public java.lang.String getGUIType()
Description copied from interface: Field
Returns the GUI name for the data type this field contains.
Specified by:
getGUIType in interface Field
Following copied from interface: org.mmbase.bridge.Field
Returns:
the GUI name for the data type this field contains

getGUIName

public java.lang.String getGUIName()
Description copied from interface: Field
Returns the GUI name for this field.
Specified by:
getGUIName in interface Field
Following copied from interface: org.mmbase.bridge.Field
Returns:
the GUI name for this field

getType

public int getType()
Description copied from interface: Field
Returns the identifier for the data type this field contains.
Specified by:
getType in interface Field
Following copied from interface: org.mmbase.bridge.Field
Returns:
an int wich identifies the type of data this field contains

getState

public int getState()
Description copied from interface: Field
Returns this field's state identifier.
Specified by:
getState in interface Field
Following copied from interface: org.mmbase.bridge.Field
Returns:
an int wich identifies the state of this field

getMaxLength

public int getMaxLength()
Description copied from interface: Field
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.
Specified by:
getMaxLength in interface Field
Following copied from interface: org.mmbase.bridge.Field
Returns:
the maximum length of data this field can contain

equals

public boolean equals(java.lang.Object o)
Compares two fields, and returns true if they are equal.
Overrides:
equals in class java.lang.Object
Parameters:
o - the object to compare it with

hashCode

public int hashCode()
Returns the object's hashCode. This effectively returns the objectnode's number
Overrides:
hashCode in class java.lang.Object


MMBase 2001