|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
com.hammurapi.config.impl.NamedObjectDefinitionImpl
public class NamedObjectDefinitionImpl
An implementation of the model object 'Named Object Definition'.
The following features are implemented:
RolesDescriptionConfig ScriptIdSourceEnabledServiceSupported Execution EnvironmentsHome PageNameRuntimePropertyProfileClass PathConstructorValueType
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl |
| Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter> |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
org.eclipse.emf.ecore.InternalEObject.EStore |
| Field Summary | |
|---|---|
protected org.eclipse.emf.common.util.EList<Path> |
classPath
The cached value of the ' Class Path' containment reference list. |
protected static String |
CONFIG_SCRIPT_EDEFAULT
The default value of the ' Config Script' attribute. |
protected String |
configScript
The cached value of the ' Config Script' attribute. |
protected Constructor |
constructor
The cached value of the ' Constructor' containment reference. |
protected String |
description
The cached value of the ' Description' attribute. |
protected static String |
DESCRIPTION_EDEFAULT
The default value of the ' Description' attribute. |
protected boolean |
enabled
The cached value of the ' Enabled' attribute. |
protected static boolean |
ENABLED_EDEFAULT
The default value of the ' Enabled' attribute. |
protected static String |
HOME_PAGE_EDEFAULT
The default value of the ' Home Page' attribute. |
protected String |
homePage
The cached value of the ' Home Page' attribute. |
protected String |
id
The cached value of the ' Id' attribute. |
protected static String |
ID_EDEFAULT
The default value of the ' Id' attribute. |
protected String |
name
The cached value of the ' Name' attribute. |
protected static String |
NAME_EDEFAULT
The default value of the ' Name' attribute. |
protected org.eclipse.emf.common.util.EList<Profile> |
profile
The cached value of the ' Profile' containment reference list. |
protected org.eclipse.emf.common.util.EList<Named> |
property
The cached value of the ' Property' containment reference list. |
protected org.eclipse.emf.common.util.EList<Role> |
roles
The cached value of the ' Roles' containment reference list. |
protected boolean |
runtime
The cached value of the ' Runtime' attribute. |
protected static boolean |
RUNTIME_EDEFAULT
The default value of the ' Runtime' attribute. |
protected org.eclipse.emf.common.util.EList<String> |
service
The cached value of the ' Service' attribute list. |
protected org.eclipse.emf.common.util.EList<Source> |
source
The cached value of the ' Source' containment reference list. |
protected org.eclipse.emf.common.util.EList<String> |
supportedExecutionEnvironments
The cached value of the ' Supported Execution Environments' attribute list. |
protected String |
type
The cached value of the ' Type' attribute. |
protected static String |
TYPE_EDEFAULT
The default value of the ' Type' attribute. |
protected String |
value
The cached value of the ' Value' attribute. |
protected static String |
VALUE_EDEFAULT
The default value of the ' Value' attribute. |
| Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
|---|
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
| Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
EOPPOSITE_FEATURE_BASE |
| Constructor Summary | |
|---|---|
protected |
NamedObjectDefinitionImpl()
|
| Method Summary | |
|---|---|
org.eclipse.emf.common.notify.NotificationChain |
basicSetConstructor(Constructor newConstructor,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
void |
compile(org.eclipse.emf.common.util.EList<String> profilePath,
TokenExpander.TokenSource tokens,
ClassLoader classLoader,
File dir,
String targetPackage,
String targetClass)
|
FactoryClosure<Object> |
create(FactoryConfig factoryConfig)
|
static Object |
create(Object target,
String propertyName)
Looks for createXXX method and invokes it to create instance. |
int |
eBaseStructuralFeatureID(int derivedFeatureID,
Class<?> baseClass)
|
int |
eDerivedStructuralFeatureID(int baseFeatureID,
Class<?> baseClass)
|
Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
Object newValue)
|
protected org.eclipse.emf.ecore.EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
org.eclipse.emf.common.util.EList<Path> |
getClassPath()
|
String |
getConfigScript()
|
Constructor |
getConstructor()
|
String |
getDescription()
|
String |
getHomePage()
|
String |
getId()
|
String |
getName()
|
org.eclipse.emf.common.util.EList<Profile> |
getProfile()
|
org.eclipse.emf.common.util.EList<Named> |
getProperty()
|
org.eclipse.emf.common.util.EList<Role> |
getRoles()
|
org.eclipse.emf.common.util.EList<String> |
getService()
|
org.eclipse.emf.common.util.EList<Source> |
getSource()
|
org.eclipse.emf.common.util.EList<String> |
getSupportedExecutionEnvironments()
|
String |
getType()
|
String |
getValue()
|
void |
inject(InjectionConfig injectionConfig)
|
static void |
inject(String propertyName,
FactoryClosure<?> factoryResult,
Object target)
Injects single value into object using addXXX or setXXX methods. |
void |
injectProperties(InjectionConfig injectionConfig)
|
boolean |
isEnabled()
|
boolean |
isRuntime()
|
void |
setConfigScript(String newConfigScript)
|
void |
setConstructor(Constructor newConstructor)
|
void |
setDescription(String newDescription)
|
void |
setEnabled(boolean newEnabled)
|
void |
setHomePage(String newHomePage)
|
void |
setId(String newId)
|
void |
setName(String newName)
|
void |
setRuntime(boolean newRuntime)
|
void |
setType(String newType)
|
void |
setValue(String newValue)
|
String |
toString()
|
| Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
|---|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
| Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
| Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
eNotificationRequired |
| Field Detail |
|---|
protected org.eclipse.emf.common.util.EList<Role> roles
Roles' containment reference list.
getRoles()protected static final String DESCRIPTION_EDEFAULT
Description' attribute.
getDescription()protected String description
Description' attribute.
getDescription()protected static final String CONFIG_SCRIPT_EDEFAULT
Config Script' attribute.
getConfigScript()protected String configScript
Config Script' attribute.
getConfigScript()protected static final String ID_EDEFAULT
Id' attribute.
getId()protected String id
Id' attribute.
getId()protected org.eclipse.emf.common.util.EList<Source> source
Source' containment reference list.
getSource()protected static final boolean ENABLED_EDEFAULT
Enabled' attribute.
isEnabled(),
Constant Field Valuesprotected boolean enabled
Enabled' attribute.
isEnabled()protected org.eclipse.emf.common.util.EList<String> service
Service' attribute list.
getService()protected org.eclipse.emf.common.util.EList<String> supportedExecutionEnvironments
Supported Execution Environments' attribute list.
getSupportedExecutionEnvironments()protected static final String HOME_PAGE_EDEFAULT
Home Page' attribute.
getHomePage()protected String homePage
Home Page' attribute.
getHomePage()protected static final String NAME_EDEFAULT
Name' attribute.
getName()protected String name
Name' attribute.
getName()protected static final boolean RUNTIME_EDEFAULT
Runtime' attribute.
isRuntime(),
Constant Field Valuesprotected boolean runtime
Runtime' attribute.
isRuntime()protected org.eclipse.emf.common.util.EList<Named> property
Property' containment reference list.
getProperty()protected org.eclipse.emf.common.util.EList<Profile> profile
Profile' containment reference list.
getProfile()protected org.eclipse.emf.common.util.EList<Path> classPath
Class Path' containment reference list.
getClassPath()protected Constructor constructor
Constructor' containment reference.
getConstructor()protected static final String VALUE_EDEFAULT
Value' attribute.
getValue()protected String value
Value' attribute.
getValue()protected static final String TYPE_EDEFAULT
Type' attribute.
getType()protected String type
Type' attribute.
getType()| Constructor Detail |
|---|
protected NamedObjectDefinitionImpl()
| Method Detail |
|---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass in class org.eclipse.emf.ecore.impl.EObjectImplpublic org.eclipse.emf.common.util.EList<Role> getRoles()
getRoles in interface CommonObjectpublic String getDescription()
getDescription in interface FactoryFactory.setDescription(String),
ConfigPackage.getFactory_Description()public void setDescription(String newDescription)
setDescription in interface FactorynewDescription - the new value of the 'Description' attribute.Factory.getDescription()public String getConfigScript()
getConfigScript in interface FactoryFactory.setConfigScript(String),
ConfigPackage.getFactory_ConfigScript()public void setConfigScript(String newConfigScript)
setConfigScript in interface FactorynewConfigScript - the new value of the 'Config Script' attribute.Factory.getConfigScript()public String getId()
getId in interface FactoryFactory.setId(String),
ConfigPackage.getFactory_Id()public void setId(String newId)
setId in interface FactorynewId - the new value of the 'Id' attribute.Factory.getId()public org.eclipse.emf.common.util.EList<Source> getSource()
getSource in interface FactoryConfigPackage.getFactory_Source()public boolean isEnabled()
isEnabled in interface FactoryFactory.setEnabled(boolean),
ConfigPackage.getFactory_Enabled()public void setEnabled(boolean newEnabled)
setEnabled in interface FactorynewEnabled - the new value of the 'Enabled' attribute.Factory.isEnabled()public org.eclipse.emf.common.util.EList<String> getService()
getService in interface FactoryConfigPackage.getFactory_Service()public org.eclipse.emf.common.util.EList<String> getSupportedExecutionEnvironments()
getSupportedExecutionEnvironments in interface FactoryConfigPackage.getFactory_SupportedExecutionEnvironments()public String getHomePage()
getHomePage in interface FactoryFactory.setHomePage(String),
ConfigPackage.getFactory_HomePage()public void setHomePage(String newHomePage)
setHomePage in interface FactorynewHomePage - the new value of the 'Home Page' attribute.Factory.getHomePage()public String getName()
getName in interface NamedNamed.setName(String),
ConfigPackage.getNamed_Name()public void setName(String newName)
setName in interface NamednewName - the new value of the 'Name' attribute.Named.getName()public org.eclipse.emf.common.util.EList<Named> getProperty()
getProperty in interface PropertySourceConfigPackage.getPropertySource_Property()public org.eclipse.emf.common.util.EList<Profile> getProfile()
getProfile in interface PropertySourceConfigPackage.getPropertySource_Profile(),
Profile.getOwner()public org.eclipse.emf.common.util.EList<Path> getClassPath()
getClassPath in interface PropertySourceConfigPackage.getPropertySource_ClassPath()public Constructor getConstructor()
getConstructor in interface ObjectDefinitionObjectDefinition.setConstructor(Constructor),
ConfigPackage.getObjectDefinition_Constructor()
public org.eclipse.emf.common.notify.NotificationChain basicSetConstructor(Constructor newConstructor,
org.eclipse.emf.common.notify.NotificationChain msgs)
public void setConstructor(Constructor newConstructor)
setConstructor in interface ObjectDefinitionnewConstructor - the new value of the 'Constructor' containment reference.ObjectDefinition.getConstructor()public String getValue()
getValue in interface ObjectDefinitionObjectDefinition.setValue(String),
ConfigPackage.getObjectDefinition_Value()public void setValue(String newValue)
setValue in interface ObjectDefinitionnewValue - the new value of the 'Value' attribute.ObjectDefinition.getValue()public String getType()
getType in interface ObjectDefinitionObjectDefinition.setType(String),
ConfigPackage.getObjectDefinition_Type()public void setType(String newType)
setType in interface ObjectDefinitionnewType - the new value of the 'Type' attribute.ObjectDefinition.getType()public boolean isRuntime()
isRuntime in interface NamedNamed.setRuntime(boolean),
ConfigPackage.getNamed_Runtime()public void setRuntime(boolean newRuntime)
setRuntime in interface NamednewRuntime - the new value of the 'Runtime' attribute.Named.isRuntime()
public FactoryClosure<Object> create(FactoryConfig factoryConfig)
throws ConfigurationException
create in interface FactoryfactoryConfig - Factory configuration.
ConfigurationException
public void compile(org.eclipse.emf.common.util.EList<String> profilePath,
TokenExpander.TokenSource tokens,
ClassLoader classLoader,
File dir,
String targetPackage,
String targetClass)
throws ConfigurationException
compile in interface FactoryprofilePath - Profile path for compilation.tokens - Expansion tokens.classLoader - Class loader from which classes being used in the configuration script will be loaded for introspection during compilation. This class loader will be used as parent classloader for classloaders defined in the configuration file.dir - Directory where to store generated files.targetPackage - Target package for generated files.targetClass - Target class name for generated file.
ConfigurationException
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eSet(int featureID,
Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public int eBaseStructuralFeatureID(int derivedFeatureID,
Class<?> baseClass)
eBaseStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObjecteBaseStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public int eDerivedStructuralFeatureID(int baseFeatureID,
Class<?> baseClass)
eDerivedStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObjecteDerivedStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic String toString()
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public static void inject(String propertyName,
FactoryClosure<?> factoryResult,
Object target)
throws ConfigurationException
propertyName - Property name.value - Value to be injected.target - Injection target.
ConfigurationException
public static Object create(Object target,
String propertyName)
throws ConfigurationException
ConfigurationException
public void inject(InjectionConfig injectionConfig)
throws ConfigurationException
inject in interface NamedConfigurationException
public void injectProperties(InjectionConfig injectionConfig)
throws ConfigurationException
injectProperties in interface PropertySourceConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||