ambit2.core.data.experiment
Class TemplateField

Package class diagram package TemplateField
java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by ambit2.base.data.AmbitBean
          extended by ambit2.core.data.experiment.TemplateField
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, java.io.Serializable

public class TemplateField
extends ambit2.base.data.AmbitBean

A StudyTemplate field.

See Also:
Serialized Form

Field Summary
protected  int id
           
protected  boolean isResult
           
protected  java.lang.String name
           
protected  boolean numeric
           
protected  java.lang.String units
           
 
Constructor Summary
TemplateField()
           
TemplateField(java.lang.String name)
           
TemplateField(java.lang.String name, int id)
           
TemplateField(java.lang.String name, java.lang.String units, boolean numeric, boolean isResult)
          Creates a templte field
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getId()
           
 java.lang.String getMode()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 java.lang.String getUnits()
           
 boolean isNumeric()
           
 boolean isResult()
           
 boolean save(java.io.OutputStream out)
           
 boolean save(java.io.Writer writer)
           
 void setId(int id)
           
 void setName(java.lang.String name)
           
 void setNumeric(boolean numeric)
           
 void setResult(boolean isResult)
           
 void setUnits(java.lang.String units)
           
 
Methods inherited from class ambit2.base.data.AmbitBean
clone
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

units

protected java.lang.String units

numeric

protected boolean numeric

isResult

protected boolean isResult

name

protected java.lang.String name

id

protected int id
Constructor Detail

TemplateField

public TemplateField()

TemplateField

public TemplateField(java.lang.String name)
Parameters:
name -

TemplateField

public TemplateField(java.lang.String name,
                     java.lang.String units,
                     boolean numeric,
                     boolean isResult)
Creates a templte field

Parameters:
name -
units -
numeric -
isResult -

TemplateField

public TemplateField(java.lang.String name,
                     int id)
Parameters:
name -
id -
Method Detail

getUnits

public java.lang.String getUnits()

setUnits

public void setUnits(java.lang.String units)

isNumeric

public boolean isNumeric()

setNumeric

public void setNumeric(boolean numeric)

getType

public java.lang.String getType()

getMode

public java.lang.String getMode()

isResult

public boolean isResult()

setResult

public void setResult(boolean isResult)

save

public boolean save(java.io.OutputStream out)
             throws ambit2.base.exceptions.AmbitIOException
Throws:
ambit2.base.exceptions.AmbitIOException

save

public boolean save(java.io.Writer writer)
             throws ambit2.base.exceptions.AmbitIOException
Throws:
ambit2.base.exceptions.AmbitIOException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

setName

public void setName(java.lang.String name)

getId

public int getId()

setId

public void setId(int id)

getName

public java.lang.String getName()