project35.soa.id
Class StubbedIDGeneratorService

java.lang.Object
  extended by project35.soa.StubbedService
      extended by project35.soa.id.StubbedIDGeneratorService
All Implemented Interfaces:
java.io.Serializable, IDGeneratorService, ServiceClass

public class StubbedIDGeneratorService
extends StubbedService
implements IDGeneratorService


Copyright (c) 2008 Kevin Garwood for Project35. This code is 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

Field Summary
 
Fields inherited from class project35.soa.StubbedService
collator, project35UIFactory
 
Constructor Summary
StubbedIDGeneratorService()
           
 
Method Summary
 void excludeKey(java.lang.String key)
          excludes a key as a possible value to generate.
 java.lang.String generateKey(Project35FormContext project35FormContext)
          Interface: ID Generator Service
 
Methods inherited from class project35.soa.StubbedService
getInitialisationParameters, getStubbedServiceDescription, getStubbedServiceName, initialiseService, setProject35UIFactory, showStubbedServiceDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface project35.soa.ServiceClass
getInitialisationParameters, initialiseService
 

Constructor Detail

StubbedIDGeneratorService

public StubbedIDGeneratorService()
Method Detail

generateKey

public java.lang.String generateKey(Project35FormContext project35FormContext)
Interface: ID Generator Service

Specified by:
generateKey in interface IDGeneratorService
Parameters:
project35FormContext - collection of environment variables that can be used to access different parts of the Project35 application. Information in these variables may help determine the best identifier to return.

excludeKey

public void excludeKey(java.lang.String key)
Description copied from interface: IDGeneratorService
excludes a key as a possible value to generate. This is used when Project35 reads a file that contains identifiers. This method ensures that the service won't return a value that already appears somewhere in the data set.

Specified by:
excludeKey in interface IDGeneratorService
Parameters:
key - an identifier value that can't be generated by the ID Generator service