org.eclipse.ocl.examples.library.ecore
Class EcoreExecutorProperty

java.lang.Object
  extended by org.eclipse.ocl.examples.library.executor.AbstractExecutorProperty
      extended by org.eclipse.ocl.examples.library.executor.ExecutorProperty
          extended by org.eclipse.ocl.examples.library.ecore.EcoreExecutorProperty
All Implemented Interfaces:
DomainElement, DomainFeature, DomainNamedElement, DomainProperty, DomainTypedElement, Nameable, LibraryFeature, LibraryProperty

public class EcoreExecutorProperty
extends ExecutorProperty
implements LibraryProperty


Field Summary
protected  org.eclipse.emf.ecore.EStructuralFeature eFeature
           
 
Fields inherited from class org.eclipse.ocl.examples.library.executor.ExecutorProperty
implementation
 
Fields inherited from class org.eclipse.ocl.examples.library.executor.AbstractExecutorProperty
executorType, name, opposite, propertyIndex
 
Constructor Summary
EcoreExecutorProperty(org.eclipse.emf.ecore.EStructuralFeature eFeature, DomainInheritance executorType, int propertyIndex)
           
 
Method Summary
 java.lang.Object evaluate(DomainEvaluator evaluator, TypeId returnTypeId, java.lang.Object sourceValue)
           
 org.eclipse.emf.ecore.EStructuralFeature getEFeature()
           
 LibraryProperty getImplementation()
          Return the implementation of this feature.
 void initValue(java.lang.Object objectValue, java.lang.Object propertyValue)
          Initialize the value of this property within objectValue to propertyValue.
 
Methods inherited from class org.eclipse.ocl.examples.library.executor.AbstractExecutorProperty
getDefaultExpression, getInheritance, getName, getOpposite, getOwningType, getType, getTypeId, isStatic, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eFeature

@NonNull
protected final org.eclipse.emf.ecore.EStructuralFeature eFeature
Constructor Detail

EcoreExecutorProperty

public EcoreExecutorProperty(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                             @NonNull
                             DomainInheritance executorType,
                             int propertyIndex)
Method Detail

evaluate

@Nullable
public java.lang.Object evaluate(@NonNull
                                          DomainEvaluator evaluator,
                                          @NonNull
                                          TypeId returnTypeId,
                                          @Nullable
                                          java.lang.Object sourceValue)
Specified by:
evaluate in interface LibraryProperty

getEFeature

@NonNull
public org.eclipse.emf.ecore.EStructuralFeature getEFeature()

getImplementation

@NonNull
public LibraryProperty getImplementation()
Description copied from interface: DomainFeature
Return the implementation of this feature.

Specified by:
getImplementation in interface DomainFeature
Overrides:
getImplementation in class ExecutorProperty

initValue

public void initValue(@NonNull
                      java.lang.Object objectValue,
                      @Nullable
                      java.lang.Object propertyValue)
Description copied from interface: DomainProperty
Initialize the value of this property within objectValue to propertyValue.

This method is not thread-safe and should only be invoked to complete construction of objectvalue before making it visible to other threads.

Specified by:
initValue in interface DomainProperty
Overrides:
initValue in class AbstractExecutorProperty