fr.gouv.culture.sdx.documentbase
Class DefaultIDGenerator

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.DefaultIDGenerator
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 DefaultIDGenerator
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
DefaultIDGenerator()
           
 
Method Summary
 java.lang.String generate(java.lang.String prefix, java.lang.String suffix)
          Generates an idea appending the given strings
 
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

DefaultIDGenerator

public DefaultIDGenerator()
Method Detail

generate

public java.lang.String generate(java.lang.String prefix,
                                 java.lang.String suffix)
Generates an idea appending the given strings

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.