com.hammurapi.config
Interface Named

All Superinterfaces:
CommonObject, org.eclipse.emf.ecore.EObject, Factory, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
MethodCall, NamedCollection, NamedMap, NamedObjectDefinition, NamedReference, NamedScript
All Known Implementing Classes:
MethodCallImpl, NamedCollectionImpl, NamedMapImpl, NamedObjectDefinitionImpl, NamedReferenceImpl, NamedScriptImpl

public interface Named
extends Factory

A representation of the model object 'Named'. Something with a name. Named objects are injected into objects being configured in the following ways: a) Using set methods with a single argument. E.g. named object with name age can be injected into an object being configured using setAge(...) method. b) Using add methods. Add methods can be used for injection of multi-value configuration parameters. c) Using create methods. In this case named object must not have type definition and must not define a constructor. It is responsibility of the object being configured to create an instance, and then the configuration framework's responsibility is to inject configuration into that instance.

The following features are supported:

See Also:
ConfigPackage.getNamed()

Method Summary
 String getName()
          Returns the value of the 'Name' attribute.
 void inject(InjectionConfig injectionConfig)
           
 boolean isRuntime()
          Returns the value of the 'Runtime' attribute.
 void setName(String value)
          Sets the value of the 'Name' attribute.
 void setRuntime(boolean value)
          Sets the value of the 'Runtime' attribute.
 
Methods inherited from interface com.hammurapi.config.Factory
compile, create, getConfigScript, getDescription, getHomePage, getId, getService, getSource, getSupportedExecutionEnvironments, isEnabled, setConfigScript, setDescription, setEnabled, setHomePage, setId
 
Methods inherited from interface com.hammurapi.party.CommonObject
getRoles
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getName

String getName()
Returns the value of the 'Name' attribute. Object name.

Returns:
the value of the 'Name' attribute.
See Also:
setName(String), ConfigPackage.getNamed_Name()

setName

void setName(String value)
Sets the value of the 'Name' attribute.

Parameters:
value - the new value of the 'Name' attribute.
See Also:
getName()

isRuntime

boolean isRuntime()
Returns the value of the 'Runtime' attribute. The default value is "true". If true (default), then this named object gets injected into owner object at runtime. Otherwise, it is used only at model transformation time and is not injected at runtime.

Returns:
the value of the 'Runtime' attribute.
See Also:
setRuntime(boolean), ConfigPackage.getNamed_Runtime()

setRuntime

void setRuntime(boolean value)
Sets the value of the 'Runtime' attribute.

Parameters:
value - the new value of the 'Runtime' attribute.
See Also:
isRuntime()

inject

void inject(InjectionConfig injectionConfig)
            throws ConfigurationException
Parameters:
injectionConfig -
Throws:
ConfigurationException