com.apelon.dts.client.plugins
Class PromptForCodeAndId

java.lang.Object
  extended by com.apelon.dts.client.common.CodeAndIDGenerator
      extended by com.apelon.dts.client.plugins.PromptForCodeAndId

public class PromptForCodeAndId
extends CodeAndIDGenerator

Concept/term code and ID generator that prompts the user to enter values.

Copyright: Copyright (c) 2003

Company: Apelon, Inc.

Version:
DTS 3.0.0
Author:
Apelon, Inc.

Field Summary
 
Fields inherited from class com.apelon.dts.client.common.CodeAndIDGenerator
CODE_AND_ID_GENERATOR_FILE_PATH, CODE_AND_ID_GENERATOR_PACKAGE_PATH, RELATIVE_CODE_AND_ID_GENERATOR_FILE_PATH
 
Constructor Summary
PromptForCodeAndId(ServerConnection sc)
          Constructs CodeAndIDGenerator.
 
Method Summary
 String getCode(DTSObject conceptOrTerm)
          Implement to create a code for a new concept or term.
 String getDescription()
          Implement to describe how a code and ID is assigned to a concept by this class.
 int getId(DTSObject conceptOrTerm)
          Implement to create an ID for a new concept or term.
 
Methods inherited from class com.apelon.dts.client.common.CodeAndIDGenerator
getCodeAndIDGeneratorFilePath, getDefaultImplClass, getServerConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromptForCodeAndId

public PromptForCodeAndId(ServerConnection sc)
Constructs CodeAndIDGenerator.

Parameters:
sc - ServerConnection which may be used to instantiate any of the DTS query classes
Method Detail

getCode

public String getCode(DTSObject conceptOrTerm)
Implement to create a code for a new concept or term. Code must be 32 characters or less, and must be unique in regard to other existing codes.

Specified by:
getCode in class CodeAndIDGenerator
Parameters:
conceptOrTerm - new concept or term, will be updated with entered code
Returns:
code for new concept or term

getId

public int getId(DTSObject conceptOrTerm)
Implement to create an ID for a new concept or term. ID must be a long and must be unique in regards to other existing IDs.

Specified by:
getId in class CodeAndIDGenerator
Parameters:
conceptOrTerm - new concept or term, will be updated with entered ID
Returns:
ID for new concept or term

getDescription

public String getDescription()
Implement to describe how a code and ID is assigned to a concept by this class.

Specified by:
getDescription in class CodeAndIDGenerator
Returns:
description of code and ID generator


Copyright © 2011. All Rights Reserved.