cst.common.businessLayer
Class DateFieldModel

java.lang.Object
  extended by cst.common.businessLayer.AbstractFieldModel
      extended by cst.common.businessLayer.DateFieldModel
All Implemented Interfaces:
java.lang.Cloneable

public class DateFieldModel
extends AbstractFieldModel
implements java.lang.Cloneable

Manages the date value for an activity step for a given subject.


 Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software 
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.  
 

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
 
Fields inherited from class cst.common.businessLayer.AbstractFieldModel
dataStorageName, displayName
 
Constructor Summary
DateFieldModel()
           
 
Method Summary
 java.lang.Object clone()
          performs a deep copy of the field.
 java.util.Date getDate()
           
 int getOrderPosition()
           
 TrialActivityModel getParentTrialActivityModel()
           
 boolean isCompleted()
           
 void print(java.io.PrintStream out)
           
 void setDate(java.util.Date date)
           
 void setOrderPosition(int orderPosition)
           
 void setParentTrialActivityModel(TrialActivityModel parentTrialActivityModel)
           
 
Methods inherited from class cst.common.businessLayer.AbstractFieldModel
getDataStorageName, getDisplayName, setCloneAttributes, setDataStorageName, setDisplayName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFieldModel

public DateFieldModel()
Method Detail

getParentTrialActivityModel

public TrialActivityModel getParentTrialActivityModel()
Returns:
the parentTrialSubjectModel

setParentTrialActivityModel

public void setParentTrialActivityModel(TrialActivityModel parentTrialActivityModel)
Parameters:
parentTrialSubjectModel - the parentTrialSubjectModel to set

getOrderPosition

public int getOrderPosition()
Returns:
the orderPosition

setOrderPosition

public void setOrderPosition(int orderPosition)
Parameters:
orderPosition - the orderPosition to set

getDate

public java.util.Date getDate()
Returns:
the date

setDate

public void setDate(java.util.Date date)
Parameters:
date - the date to set

isCompleted

public boolean isCompleted()

clone

public java.lang.Object clone()
Description copied from class: AbstractFieldModel
performs a deep copy of the field.

Specified by:
clone in class AbstractFieldModel

print

public void print(java.io.PrintStream out)
Specified by:
print in class AbstractFieldModel