Class StubbedIDGeneratorService

  extended by project35.soa.StubbedService
      extended by
All Implemented Interfaces:, 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.

Kevin Garwood (
See Also:
Serialized Form

Field Summary
Fields inherited from class project35.soa.StubbedService
collator, project35UIFactory
Constructor Summary
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


public StubbedIDGeneratorService()
Method Detail


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

Specified by:
generateKey in interface IDGeneratorService
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.


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
key - an identifier value that can't be generated by the ID Generator service