org.eclipse.ocl.examples.domain.types
Class AbstractTuplePart

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.types.AbstractTuplePart
All Implemented Interfaces:
DomainElement, DomainNamedElement, DomainTypedElement, Nameable

public class AbstractTuplePart
extends java.lang.Object
implements DomainTypedElement


Field Summary
protected  java.lang.String name
           
protected  DomainType type
           
 
Constructor Summary
AbstractTuplePart(DomainType type, java.lang.String name)
           
 
Method Summary
 java.lang.String getName()
           
 DomainType getType()
           
 TypeId getTypeId()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected final DomainType type

name

protected final java.lang.String name
Constructor Detail

AbstractTuplePart

public AbstractTuplePart(DomainType type,
                         java.lang.String name)
Method Detail

getName

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

getType

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

getTypeId

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

toString

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