org.spicefactory.pimento.generator.model
Class ConfigurationModel

java.lang.Object
  extended by org.spicefactory.pimento.generator.model.ConfigurationModel

public class ConfigurationModel
extends Object

Represents the generator model for a full Cinnamon configuration. Holds all information necessary to generate ActionScript service interfaces and service proxies as well as Parsley XML configuration files containing Cinnamon service configurations.

Author:
Jens Halm

Constructor Summary
ConfigurationModel(List<ServiceModel> services, GeneratorConfig config)
          Creates a new model instance.
 
Method Summary
 List<ServiceModel> getServices()
          Returns the list of service models for this configuration
 String getServiceUrl()
          Returns the service URL for this configuration.
 int getTimeout()
          Returns the timeout in milliseconds for all service operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationModel

public ConfigurationModel(List<ServiceModel> services,
                          GeneratorConfig config)
Creates a new model instance.

Parameters:
services - the list of service models for this configuration
config - the generator configuration
Method Detail

getServiceUrl

public String getServiceUrl()
Returns the service URL for this configuration.

Returns:
the service URL for this configuration

getTimeout

public int getTimeout()
Returns the timeout in milliseconds for all service operations.

Returns:
the timeout in milliseconds for all service operations

getServices

public List<ServiceModel> getServices()
Returns the list of service models for this configuration

Returns:
the list of service models for this configuration