cst.common.businessLayer
Class TextFieldModel
java.lang.Object
cst.common.businessLayer.AbstractFieldModel
cst.common.businessLayer.TextFieldModel
- All Implemented Interfaces:
- java.lang.Cloneable
public class TextFieldModel
- extends AbstractFieldModel
- implements java.lang.Cloneable
A field which holds a String value. TextFieldModel
s are used
to represent two kinds of concepts in the architecture:
-
the primary key field that is used by instances of
TrialSubjectModel
and
TrialActivityModel
. Examples of this
field would be a national insurance number or a serial number assigned to
subjects by the project carrying out the study.
-
the filter attributes of
TrialSubjectModel
. The
attributes are used by the Logging Tool to present users with filtering options
that may help identify sub-populations of interest. Examples of filter attributes
could be location, ethnicity, post code, age group, gender.
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)
Method Summary |
java.lang.Object |
clone()
performs a deep copy of the field. |
java.lang.String |
getValue()
|
void |
print(java.io.PrintStream out)
|
void |
setValue(java.lang.String value)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextFieldModel
public TextFieldModel()
getValue
public java.lang.String getValue()
- Returns:
- the value
setValue
public void setValue(java.lang.String value)
- Parameters:
value
- the value to set
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