fr.gouv.culture.sdx.documentbase
Class SimpleIDGenerator

java.lang.Object
  extended by fr.gouv.culture.sdx.utils.AbstractSdxObject
      extended by fr.gouv.culture.sdx.documentbase.AbstractIDGenerator
          extended by fr.gouv.culture.sdx.documentbase.SimpleIDGenerator
All Implemented Interfaces:
IDGenerator, Describable, Encodable, Identifiable, Localizable, SdxObject, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.excalibur.xml.sax.XMLizable

public class SimpleIDGenerator
extends AbstractIDGenerator


Nested Class Summary
 
Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.documentbase.IDGenerator
IDGenerator.ConfigurationNode
 
Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.utils.SdxObject
SdxObject.ConfigurationNode
 
Field Summary
 
Fields inherited from class fr.gouv.culture.sdx.documentbase.AbstractIDGenerator
_database, ATTRIBUTE_ID_PREFIX, ATTRIBUTE_ID_SUFFIX, idPrefix, idSuffix
 
Fields inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
 
Fields inherited from interface fr.gouv.culture.sdx.documentbase.IDGenerator
CLASS_NAME_SUFFIX, PACKAGE_QUALNAME
 
Fields inherited from interface fr.gouv.culture.sdx.utils.Encodable
DEFAULT_ENCODING
 
Constructor Summary
SimpleIDGenerator()
           
 
Method Summary
 java.lang.String generate(java.lang.String prefix, java.lang.String suffix)
          Generates an idea appending the given strings to an incremented long class field beginning from zero.
 
Methods inherited from class fr.gouv.culture.sdx.documentbase.AbstractIDGenerator
configure, generate, getClassNameSuffix, getPrefix, getSuffix, initToSax, initVolatileObjectsToSax, isIdUnique, setDatabase, setIdFieldName, setIndex, setPrefix, setSuffix
 
Methods inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject
configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Constructor Detail

SimpleIDGenerator

public SimpleIDGenerator()
Method Detail

generate

public java.lang.String generate(java.lang.String prefix,
                                 java.lang.String suffix)
Generates an idea appending the given strings to an incremented long class field beginning from zero.

Parameters:
prefix - The prefix for the generated id
suffix - The suffix for the generated id


Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.