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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.library.AbstractFeature
      extended by org.eclipse.ocl.examples.domain.library.AbstractProperty
          extended by org.eclipse.ocl.examples.library.ecore.EcoreLibraryOppositeProperty
All Implemented Interfaces:
LibraryFeature, LibraryProperty

public class EcoreLibraryOppositeProperty
extends AbstractProperty

An EcoreLibraryOppositeProperty provides the LibraryProperty to implement a PropertyCallExp using the inverse navigation of an EStructuralFeature.


Field Summary
protected  org.eclipse.emf.ecore.EStructuralFeature eFeature
           
 
Constructor Summary
EcoreLibraryOppositeProperty(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 
Method Summary
 Value evaluate(DomainEvaluator evaluator, DomainType returnType, Value sourceValue, DomainProperty property)
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.library.AbstractFeature
getLibraryValidator, getValidator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.domain.library.LibraryFeature
getValidator
 

Field Detail

eFeature

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

EcoreLibraryOppositeProperty

public EcoreLibraryOppositeProperty(org.eclipse.emf.ecore.EStructuralFeature eFeature)
Method Detail

evaluate

public Value evaluate(DomainEvaluator evaluator,
                      DomainType returnType,
                      Value sourceValue,
                      DomainProperty property)
               throws InvalidValueException
Throws:
InvalidValueException