cst.common.businessLayer
Class TrialSubjectModelFactory
java.lang.Object
cst.common.businessLayer.TrialSubjectModelFactory
public class TrialSubjectModelFactory
- extends java.lang.Object
Produces instances of TrialSubjectModelFactory
.
The design anticipates that a client application may want to launch multiple
logging tool instances, each loaded with a different data model describing activities.
Therefore, the class does not use a Singleton pattern for controlling the creation
of factory instances.
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrialSubjectModelFactory
public TrialSubjectModelFactory(TrialSubjectModel templateTrialSubjectModel)
getActivityDataStorageNames
public java.util.ArrayList<java.lang.String> getActivityDataStorageNames()
getActivityStepDataStorageNames
public java.util.ArrayList<java.lang.String> getActivityStepDataStorageNames(java.lang.String activityDataStorageName)
getNumberOfActivities
public int getNumberOfActivities()
getPrimaryKeyDisplayName
public java.lang.String getPrimaryKeyDisplayName()
getPrimaryKeyDataStorageName
public java.lang.String getPrimaryKeyDataStorageName()
getActivityDisplayNames
public java.lang.String[] getActivityDisplayNames()
getActivityDisplayName
public java.lang.String getActivityDisplayName(java.lang.String activityDataStorageName)
getCoreFieldDataStorageName
public java.lang.String getCoreFieldDataStorageName(java.lang.String coreFieldDisplayName)
getActivityDataStorageName
public java.lang.String getActivityDataStorageName(java.lang.String activityDisplayName)
getActivityFieldDataStorageName
public java.lang.String getActivityFieldDataStorageName(java.lang.String activityDataStorageName,
java.lang.String activityFieldDisplayName)
isValidCoreFieldName
public boolean isValidCoreFieldName(java.lang.String coreFieldName)
isValidActivityName
public boolean isValidActivityName(java.lang.String activityDataStorageName)
isValidActivityStepName
public boolean isValidActivityStepName(java.lang.String activityDataStorageName,
java.lang.String activityStepDataStorageName)
getCommentAndActivityFieldNames
public java.lang.String[] getCommentAndActivityFieldNames(java.lang.String activityDataStorageName)
getCoreFieldDataStorageNames
public java.util.ArrayList<java.lang.String> getCoreFieldDataStorageNames()
getCoreFieldNames
public java.lang.String[] getCoreFieldNames()
createTrialSubjectModel
public TrialSubjectModel createTrialSubjectModel()
createTemplateActivityModel
public TrialActivityModel createTemplateActivityModel(java.lang.String activityDataStorageName)
createTrialSubjectModel
public TrialSubjectModel createTrialSubjectModel(java.lang.String identifier)
getNullTrialSubjectModel
public TrialSubjectModel getNullTrialSubjectModel()
isNullObject
public boolean isNullObject(TrialSubjectModel trialSubjectModel)
isNullActivity
public boolean isNullActivity(TrialActivityModel trialActivityModel)