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

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.EcoreLibraryProperty
All Implemented Interfaces:
LibraryFeature, LibraryProperty

public class EcoreLibraryProperty
extends AbstractProperty

An EcoreLibraryProperty provides the LibraryProperty to implement a PropertyCallExp using an EStructuralFeature.


Field Summary
protected  org.eclipse.emf.ecore.EStructuralFeature eFeature
           
 
Constructor Summary
EcoreLibraryProperty(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 
Method Summary
 Value evaluate(DomainEvaluator evaluator, DomainType returnType, Value sourceValue, DomainProperty property)
           
 org.eclipse.emf.ecore.EStructuralFeature getEFeature()
           
 java.lang.String toString()
           
 
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, 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

EcoreLibraryProperty

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

evaluate

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

getEFeature

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object