org.eclipse.ocl.examples.library.executor
Class AbstractExecutorProperty

java.lang.Object
  extended by org.eclipse.ocl.examples.library.executor.AbstractExecutorProperty
All Implemented Interfaces:
DomainElement, DomainFeature, DomainNamedElement, DomainProperty, DomainTypedElement, Nameable
Direct Known Subclasses:
ExecutorProperty

public abstract class AbstractExecutorProperty
extends java.lang.Object
implements DomainProperty


Field Summary
protected  DomainInheritance executorType
           
protected  java.lang.String name
           
protected  ExecutorProperty opposite
           
protected  int propertyIndex
           
 
Constructor Summary
AbstractExecutorProperty(java.lang.String name, DomainInheritance executorType, int propertyIndex)
           
 
Method Summary
 DomainExpression getDefaultExpression()
           
 DomainInheritance getInheritance(DomainStandardLibrary standardLibrary)
          Return the Inheritance dispatch table for the owning type, or null for an orphan property owned by an Annotation.
 java.lang.String getName()
           
 DomainProperty getOpposite()
          Return the opposite Property if there is one, else null.
 DomainType getOwningType()
          Return the owner this feature.
 DomainType getType()
           
 TypeId getTypeId()
           
 void initValue(java.lang.Object objectValue, java.lang.Object propertyValue)
          Initialize the value of this property within objectValue to propertyValue.
 boolean isStatic()
          Return true if this is a static operation.
 java.lang.String toString()
           
 
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.elements.DomainFeature
getImplementation
 

Field Detail

name

@NonNull
protected final java.lang.String name

executorType

@NonNull
protected final DomainInheritance executorType

propertyIndex

protected final int propertyIndex

opposite

protected ExecutorProperty opposite
Constructor Detail

AbstractExecutorProperty

public AbstractExecutorProperty(@NonNull
                                java.lang.String name,
                                @NonNull
                                DomainInheritance executorType,
                                int propertyIndex)
Method Detail

getDefaultExpression

public DomainExpression getDefaultExpression()
Specified by:
getDefaultExpression in interface DomainProperty

getInheritance

@NonNull
public DomainInheritance getInheritance(@NonNull
                                                DomainStandardLibrary standardLibrary)
Description copied from interface: DomainProperty
Return the Inheritance dispatch table for the owning type, or null for an orphan property owned by an Annotation.

Specified by:
getInheritance in interface DomainProperty

getName

@NonNull
public java.lang.String getName()
Specified by:
getName in interface Nameable

getOpposite

@NonNull
public DomainProperty getOpposite()
Description copied from interface: DomainProperty
Return the opposite Property if there is one, else null.

Specified by:
getOpposite in interface DomainProperty

getOwningType

public DomainType getOwningType()
Description copied from interface: DomainFeature
Return the owner this feature.

Specified by:
getOwningType in interface DomainFeature

getType

@NonNull
public DomainType getType()
Specified by:
getType in interface DomainTypedElement

getTypeId

@NonNull
public TypeId getTypeId()
Specified by:
getTypeId in interface DomainTypedElement

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

isStatic

public boolean isStatic()
Description copied from interface: DomainFeature
Return true if this is a static operation.

Specified by:
isStatic in interface DomainFeature

toString

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