org.objectweb.medor.lib
Class BasicField

java.lang.Object
  extended byBasicCloneable
      extended byorg.objectweb.medor.lib.BasicField
All Implemented Interfaces:
java.lang.Cloneable, Cloneable, java.lang.Comparable, Field, NullStatus
Direct Known Subclasses:
BasicQueryTreeField, BasicRdbField

public class BasicField
extends BasicCloneable
implements Field

See Also:
Serialized Form

Field Summary
protected  Logger logger
           
protected  java.lang.String name
           
protected  PType type
           
protected  short valueState
           
 
Fields inherited from interface org.objectweb.medor.api.Field
PNAMENAME
 
Fields inherited from interface org.objectweb.medor.api.NullStatus
NONULLS, NULLABLE, NULLABLEUNKNOWN
 
Constructor Summary
BasicField()
           
BasicField(java.lang.String name)
           
BasicField(java.lang.String name, PType type)
           
BasicField(java.lang.String name, PType type, short valueState)
           
 
Method Summary
 java.lang.Object clone(java.lang.Object clone, java.util.Map obj2clone)
           
 int compareTo(java.lang.Object o)
           
 java.lang.String getName()
          Returns the Field name
 short getNullStatus()
          What is the status of the Field regarding null values (NullStatus).
 PType getType()
          Returns the field type, as a PType
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.medor.api.Cloneable
clone
 

Field Detail

name

protected java.lang.String name

type

protected PType type

valueState

protected short valueState

logger

protected transient Logger logger
Constructor Detail

BasicField

public BasicField()

BasicField

public BasicField(java.lang.String name)

BasicField

public BasicField(java.lang.String name,
                  PType type)

BasicField

public BasicField(java.lang.String name,
                  PType type,
                  short valueState)
           throws MedorException
Method Detail

clone

public java.lang.Object clone(java.lang.Object clone,
                              java.util.Map obj2clone)
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

getName

public java.lang.String getName()
Description copied from interface: Field
Returns the Field name

Specified by:
getName in interface Field
Returns:
the Field name

getType

public PType getType()
Description copied from interface: Field
Returns the field type, as a PType

Specified by:
getType in interface Field
Returns:
the Field type

getNullStatus

public short getNullStatus()
Description copied from interface: Field
What is the status of the Field regarding null values (NullStatus).

Specified by:
getNullStatus in interface Field
Returns:
the Null status of the Field
See Also:
NullStatus

toString

public java.lang.String toString()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable