nl.beesting.beangenerator.config
Class BeanGeneratorConfig

java.lang.Object
  extended by nl.beesting.beangenerator.config.BeanGeneratorConfig

public class BeanGeneratorConfig
extends java.lang.Object

BeanGeneratorConfig Created 25-okt-2004


Constructor Summary
BeanGeneratorConfig()
           
 
Method Summary
 ClassDescriptor getClassDefinitionByClass(java.lang.Class<?> clazz)
          Returns the class definition configuration for given class
 ClassDescriptor getClassDefinitionByMethod(java.lang.String name)
           
 ClassDescriptor getClassDefinitionConfigById(java.lang.String id)
          Returns the class definition for given configuration id
 java.util.List<ClassDescriptor> getClassDefinitions()
          Returns a list of all classdefinitions
 InstanceGeneratorDescriptor getDefaultGenerator(java.lang.Class<?> clazz)
           
 java.util.Map<java.lang.Class<?>,InstanceGeneratorDescriptor> getDefaultGenerators()
           
 InstanceGeneratorDescriptor getGeneratorConfigById(java.lang.String id)
          Returns the generator configuration for the given generator clas
 InstanceGeneratorDescriptor[] getGeneratorConfigsByGenerateForClass(java.lang.Class<?> clazz)
           
 ClassDescriptor getPossibleClassDefinitionConfigById(java.lang.String name)
          Returns the possible class definition for the provided name.
 boolean hasClassDefinition(java.lang.Class<?> clazz)
           
 boolean hasDefaultGenerator(java.lang.Class<?> clazz)
           
 boolean isGeneratorId(java.lang.String id)
           
 boolean isValidGeneratorId(java.lang.String generatorId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanGeneratorConfig

public BeanGeneratorConfig()
Method Detail

getGeneratorConfigById

public InstanceGeneratorDescriptor getGeneratorConfigById(java.lang.String id)
Returns the generator configuration for the given generator clas

Parameters:
id -
Returns:

getGeneratorConfigsByGenerateForClass

public InstanceGeneratorDescriptor[] getGeneratorConfigsByGenerateForClass(java.lang.Class<?> clazz)

getClassDefinitionConfigById

public ClassDescriptor getClassDefinitionConfigById(java.lang.String id)
Returns the class definition for given configuration id

Parameters:
id - the id for the configuration
Returns:
the found classdefinition or null if it was not found

getPossibleClassDefinitionConfigById

public ClassDescriptor getPossibleClassDefinitionConfigById(java.lang.String name)
Returns the possible class definition for the provided name.

Parameters:
name - of the definition to be found
Returns:
the 'closesd' match

getClassDefinitionByMethod

public ClassDescriptor getClassDefinitionByMethod(java.lang.String name)

getClassDefinitionByClass

public ClassDescriptor getClassDefinitionByClass(java.lang.Class<?> clazz)
Returns the class definition configuration for given class

Parameters:
clazz - the class to find a definition for
Returns:
the found classdefinition or null if it was not found

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isGeneratorId

public boolean isGeneratorId(java.lang.String id)
Parameters:
id -
Returns:

getDefaultGenerators

public java.util.Map<java.lang.Class<?>,InstanceGeneratorDescriptor> getDefaultGenerators()
Returns:
Returns the defaultGenerators.

getDefaultGenerator

public InstanceGeneratorDescriptor getDefaultGenerator(java.lang.Class<?> clazz)
Returns:
Returns the defaultGenerators.

hasDefaultGenerator

public boolean hasDefaultGenerator(java.lang.Class<?> clazz)
Parameters:
clazz -
Returns:

hasClassDefinition

public boolean hasClassDefinition(java.lang.Class<?> clazz)
Parameters:
clazz -
Returns:

getClassDefinitions

public java.util.List<ClassDescriptor> getClassDefinitions()
Returns a list of all classdefinitions

Returns:
list of classdefinitions

isValidGeneratorId

public boolean isValidGeneratorId(java.lang.String generatorId)
Parameters:
generatorId -
Returns:


Copyright 2008. All Rights Reserved.