uk.ac.ebi.adfconverter.tools.converter.IdentifierGenerater
Class MAGEIdentifierGenerator

java.lang.Object
  extended byuk.ac.ebi.adfconverter.tools.converter.IdentifierGenerater.MAGEIdentifierGenerator

public class MAGEIdentifierGenerator
extends java.lang.Object

This class handles MAGE identifier generation. The generator uses rules provided in the configuration file A rule can be provided per MAGE Object type By default, the rule is : identifier = userUrl:userNamespace/objectType:arrayNumber.objectTypeInitial-objectnumber

Version:
1
Author:
Pierre MARGUERITE

Constructor Summary
MAGEIdentifierGenerator()
          Default Contructor for generator use Inits as well the MGED ontology Checker by providing an Database MAGE Identifier
MAGEIdentifierGenerator(java.util.Properties identifierProperties)
          Constructor Inits generator with rules Inits as well the MGED ontology Checker by providing an Database MAGE Identifier
 
Method Summary
 java.lang.String generateIdentifier(java.lang.String objectType)
          Generates a new identifier for a given objectType following the rules given in the configuration file.
 java.lang.String generateIdentifier(java.lang.String objectType, java.util.Hashtable variables)
          Generates a new identifier for a given objectType following the rules given in the configuration file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MAGEIdentifierGenerator

public MAGEIdentifierGenerator()
                        throws java.lang.Exception
Default Contructor for generator use Inits as well the MGED ontology Checker by providing an Database MAGE Identifier

Throws:
java.lang.Exception - if the MGED Ontology is incorrectly initialised.

MAGEIdentifierGenerator

public MAGEIdentifierGenerator(java.util.Properties identifierProperties)
                        throws java.lang.Exception
Constructor Inits generator with rules Inits as well the MGED ontology Checker by providing an Database MAGE Identifier

Parameters:
identifierProperties - lists of generation rules
Throws:
java.lang.Exception - if the MGED Ontology is incorrectly initialised
Method Detail

generateIdentifier

public java.lang.String generateIdentifier(java.lang.String objectType)
Generates a new identifier for a given objectType following the rules given in the configuration file.

Parameters:
objectType - the type of the object, for which an identifier is generated
Returns:
a new identifier as String. Null, if the ObjectType object is null

generateIdentifier

public java.lang.String generateIdentifier(java.lang.String objectType,
                                           java.util.Hashtable variables)
Generates a new identifier for a given objectType following the rules given in the configuration file.

Parameters:
objectType - the type of the object, for which an identifier is generated
variables - additional parameters for the creation of the identifier
Returns:
a new identifier as String. Null, if the ObjectType object is null


European Bioinformatics InstituteMicroarray Informatics Team