org.spicefactory.pimento.generator.model
Class ServiceModel

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

public class ServiceModel
extends Object

Represents the generator model for a single Cinnamon service. Holds all information necessary to generate ActionScript service interfaces and service proxies.

Author:
Jens Halm

Constructor Summary
ServiceModel(ServiceConfig service, GeneratorConfig config)
          Creates a new model instance.
 
Method Summary
 String getClassName()
          Returns the name of the ActionScript service proxy class.
 Set<String> getImplementationImports()
          Returns all class names for which import statements need to be generated on the ActionScript service proxy class.
 Set<String> getInterfaceImports()
          Returns all class names for which import statements need to be generated on the ActionScript service interface.
 String getInterfaceName()
          Returns the name of the ActionScript service interface.
 String getName()
          Returns the name of this service.
 List<OperationModel> getOperations()
          Returns the list of operations for this service.
 String getPackage()
          Returns the ActionScript package name for this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceModel

public ServiceModel(ServiceConfig service,
                    GeneratorConfig config)
Creates a new model instance.

Parameters:
service - the service configuration for this model
config - the generator configuration
Method Detail

getName

public String getName()
Returns the name of this service.

Returns:
the name of this service.

getPackage

public String getPackage()
Returns the ActionScript package name for this service.

Returns:
the ActionScript package name for this service

getInterfaceImports

public Set<String> getInterfaceImports()
Returns all class names for which import statements need to be generated on the ActionScript service interface.

Returns:
all class names for which import statements need to be generated on the ActionScript service interface

getImplementationImports

public Set<String> getImplementationImports()
Returns all class names for which import statements need to be generated on the ActionScript service proxy class.

Returns:
all class names for which import statements need to be generated on the ActionScript service proxy class

getInterfaceName

public String getInterfaceName()
Returns the name of the ActionScript service interface. The returned name is not fully qualified.

Returns:
the name of the ActionScript service interface

getClassName

public String getClassName()
Returns the name of the ActionScript service proxy class. The returned name is not fully qualified.

Returns:
the name of the ActionScript service proxy class

getOperations

public List<OperationModel> getOperations()
Returns the list of operations for this service.

Returns:
the list of operations for this service