org.org.usurper.setup
Interface IUsurperGeneratorSetup

All Known Implementing Classes:
ImmutableUsurperGeneratorSetup, UsurperGeneratorSetup

public interface IUsurperGeneratorSetup

This is the interface for the setup of the behavior of the UsurperGenerator.

Author:
pagregoire

Method Summary
 java.util.Map<ITargetDefinition,IHandler> getAllHandlers()
          Gets all handlers.
 ArrayHandler getArrayHandler()
          Gets the array handler.
 ICountCallback getCountCallback()
          Gets the count callback.
 EnumHandler getEnumHandler()
          Gets the enum handler.
 OnMissingHandlers getOnMissingHandlers()
          Gets the on missing handlers behavior.
 AbstractPropertyTypeHandler getPropertyTypeHandler(PropertyTypeDefinition propertyTypeDefinition)
          This method retrieves the Handler for Properties of a given java type.
 java.util.Map<PropertyTypeDefinition,AbstractPropertyTypeHandler> getPropertyTypeHandlersMap()
          Gets the property type handlers map.
 PropertyWritingMechanism getPropertyWritingMechanism()
          Gets the property writing mechanism behavior.
 AbstractSpecificPropertyHandler getSpecificPropertyHandler(SpecificPropertyDefinition specificPropertyDefinition)
          This method retrieves the Handler for a given Property of a given Class.
 java.util.Map<SpecificPropertyDefinition,AbstractSpecificPropertyHandler> getSpecificPropertyHandlersMap()
          Gets the specific property handlers map.
 boolean hasPropertyTypeHandler(PropertyTypeDefinition propertyTypeDefinition)
          This method tests if a handler is registered for a given Java Type.
 boolean hasSpecificPropertyHandler(SpecificPropertyDefinition specificPropertyDefinition)
          This method tests if a handler is registered for a given Property of a given Class.
 java.lang.String toStringRepresentation()
          The implementation of this method must return a String representation of the setup.
 

Method Detail

getPropertyTypeHandlersMap

java.util.Map<PropertyTypeDefinition,AbstractPropertyTypeHandler> getPropertyTypeHandlersMap()
Gets the property type handlers map.

Returns:
the property type handlers map

getSpecificPropertyHandlersMap

java.util.Map<SpecificPropertyDefinition,AbstractSpecificPropertyHandler> getSpecificPropertyHandlersMap()
Gets the specific property handlers map.

Returns:
the specific property handlers map

getArrayHandler

ArrayHandler getArrayHandler()
Gets the array handler.

Returns:
the array handler

getEnumHandler

EnumHandler getEnumHandler()
Gets the enum handler.

Returns:
the enum handler

getOnMissingHandlers

OnMissingHandlers getOnMissingHandlers()
Gets the on missing handlers behavior.

Returns:
the on missing handlers

getPropertyWritingMechanism

PropertyWritingMechanism getPropertyWritingMechanism()
Gets the property writing mechanism behavior.

Returns:
the property writing mechanism

getCountCallback

ICountCallback getCountCallback()
Gets the count callback.

Returns:
the count callback

getAllHandlers

java.util.Map<ITargetDefinition,IHandler> getAllHandlers()
Gets all handlers.

Returns:
the all handlers

hasPropertyTypeHandler

boolean hasPropertyTypeHandler(PropertyTypeDefinition propertyTypeDefinition)
This method tests if a handler is registered for a given Java Type.

Parameters:
propertyTypeDefinition - the property type definition
Returns:
true if one is registered, false otherwise

getPropertyTypeHandler

AbstractPropertyTypeHandler getPropertyTypeHandler(PropertyTypeDefinition propertyTypeDefinition)
This method retrieves the Handler for Properties of a given java type.

Parameters:
propertyTypeDefinition - the property type definition
Returns:
the registered handler or null if none is defined.

hasSpecificPropertyHandler

boolean hasSpecificPropertyHandler(SpecificPropertyDefinition specificPropertyDefinition)
This method tests if a handler is registered for a given Property of a given Class.

Parameters:
specificPropertyDefinition - the specific property definition
Returns:
true if one is registered, false otherwise

getSpecificPropertyHandler

AbstractSpecificPropertyHandler getSpecificPropertyHandler(SpecificPropertyDefinition specificPropertyDefinition)
This method retrieves the Handler for a given Property of a given Class.

Parameters:
specificPropertyDefinition - the specific property definition
Returns:
the registered property handler or null if none is defined.

toStringRepresentation

java.lang.String toStringRepresentation()
The implementation of this method must return a String representation of the setup.

Returns:
the String representation of the setup.


Copyright © 2008. All Rights Reserved.