project35.configurationTool
Class DuplicateFieldConfigurationsValidationService

java.lang.Object
  extended by project35.configurationTool.DuplicateFieldConfigurationsValidationService
All Implemented Interfaces:
java.io.Serializable, ServiceClass, RecordModelValidationService

public class DuplicateFieldConfigurationsValidationService
extends java.lang.Object
implements RecordModelValidationService

this is a record model validation service plugin that is used with the configuration tool. It ensures that there isn't more than one configuration for the same record field in the same record of the target schema.


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net),
See Also:
Serialized Form

Constructor Summary
DuplicateFieldConfigurationsValidationService()
           
 
Method Summary
 Parameter[] getInitialisationParameters()
           
 void initialiseService(java.net.URL resourceDirectory, Parameter[] initialisationParameters)
           
 java.util.ArrayList validate(Project35FormContext project35FormContext, RecordModel recordModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicateFieldConfigurationsValidationService

public DuplicateFieldConfigurationsValidationService()
Method Detail

validate

public java.util.ArrayList validate(Project35FormContext project35FormContext,
                                    RecordModel recordModel)
                             throws java.lang.Exception
Specified by:
validate in interface RecordModelValidationService
Throws:
java.lang.Exception

getInitialisationParameters

public Parameter[] getInitialisationParameters()
Specified by:
getInitialisationParameters in interface ServiceClass

initialiseService

public void initialiseService(java.net.URL resourceDirectory,
                              Parameter[] initialisationParameters)
                       throws java.lang.Exception
Specified by:
initialiseService in interface ServiceClass
Throws:
java.lang.Exception