project35.configurationTool
Class DuplicateRecordConfigurationsValidationService
java.lang.Object
project35.configurationTool.DuplicateRecordConfigurationsValidationService
- All Implemented Interfaces:
- java.io.Serializable, ServiceClass, DocumentValidationService
public class DuplicateRecordConfigurationsValidationService
- extends java.lang.Object
- implements DocumentValidationService
this is a document validation service that is used with the configuration tool. It
ensures that there isn't more than one configuration for the same record class in 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DuplicateRecordConfigurationsValidationService
public DuplicateRecordConfigurationsValidationService()
validate
public java.util.HashMap validate(Project35FormContext project35FormContext,
RecordModel rootModel)
throws java.lang.Exception
- Description copied from interface:
DocumentValidationService
- a service that traverses the entire record tree of a document and
returns a HashMap where the keys are the instances of record models and
the values are ArrayLists containing alerts
- Specified by:
validate
in interface DocumentValidationService
- 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