|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.domain.types.AbstractInheritance
public abstract class AbstractInheritance
Nested Class Summary | |
---|---|
static class |
AbstractInheritance.FragmentIterable
|
Field Summary | |
---|---|
protected DomainPackage |
evaluationPackage
|
protected int |
flags
|
protected java.lang.String |
name
|
static int |
ORDERED
|
static int |
UNIQUE
|
Constructor Summary | |
---|---|
AbstractInheritance(java.lang.String name,
DomainPackage evaluationPackage,
int flags)
|
Method Summary | |
---|---|
boolean |
conformsTo(DomainStandardLibrary standardLibrary,
DomainType type)
Return true if this type conform to thatType within standardLibrary. |
ObjectValue |
createInstance(ValueFactory valueFactory)
Return a new instance of this type from valueFactory. |
Value |
createInstance(ValueFactory valueFactory,
java.lang.String value)
Return a new instance of this data type from valueFactory. |
DomainInheritance |
getCommonInheritance(DomainInheritance thatInheritance)
|
DomainType |
getCommonType(DomainStandardLibrary standardLibrary,
DomainType type)
Return the most derived type com mon to this type and thatType within standardLibrary. |
DomainFragment |
getFragment(DomainInheritance thatInheritance)
|
DomainInheritance |
getInheritance(DomainStandardLibrary standardLibrary)
Return the inheritance description for this type within standardLibrary. |
java.lang.String |
getName()
Return the name of this type (without any decoratuions for specializations). |
DomainType |
getNormalizedType(DomainStandardLibrary standardLibrary)
Return the unique executable form of this type within standardLibrary. |
protected DomainInheritance |
getOclAnyInheritance()
|
DomainPackage |
getPackage()
Return the package containing this type. |
boolean |
isEqualTo(DomainStandardLibrary standardLibrary,
DomainType type)
Return true if this is the same type as thatType within standardLibrary. |
boolean |
isEqualToUnspecializedType(DomainStandardLibrary standardLibrary,
DomainType type)
|
boolean |
isOrdered()
Return true if this type is a Collection type and has ordered elements. |
boolean |
isSubInheritanceOf(DomainInheritance thatInheritance)
|
boolean |
isSuperInheritanceOf(DomainStandardLibrary standardLibrary,
DomainInheritance thatInheritance)
|
boolean |
isUndefined()
|
boolean |
isUnique()
Return true if this type is a Collection type and has unique elements. |
LibraryFeature |
lookupImplementation(DomainStandardLibrary standardLibrary,
DomainOperation staticOperation)
Return the dynamic (overloaded) implementation of the staticOperation applicable to the types managed by the given Standard Library. |
DomainOperation |
lookupLocalOperation(DomainStandardLibrary standardLibrary,
java.lang.String operationName,
DomainInheritance... argumentTypes)
|
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.DomainInheritance |
---|
getAllSuperFragments, getDepth, getFragment, getIndex, getIndexes, getSelfFragment, getStandardLibrary, getSuperFragments |
Methods inherited from interface org.eclipse.ocl.examples.domain.elements.DomainType |
---|
getLocalOperations, getLocalProperties, getLocalSuperTypes, getMetaTypeName |
Field Detail |
---|
public static final int ORDERED
public static final int UNIQUE
protected final java.lang.String name
protected final DomainPackage evaluationPackage
protected final int flags
Constructor Detail |
---|
public AbstractInheritance(java.lang.String name, DomainPackage evaluationPackage, int flags)
Method Detail |
---|
public boolean conformsTo(DomainStandardLibrary standardLibrary, DomainType type)
DomainType
conformsTo
in interface DomainType
public ObjectValue createInstance(ValueFactory valueFactory)
DomainType
DomainProperty.setValue(ObjectValue, Value)
provided no side-effect free
OCL functionality is permitted to use the ObjectValue until initialisation has completed.
createInstance
in interface DomainType
public Value createInstance(ValueFactory valueFactory, java.lang.String value)
DomainType
createInstance
in interface DomainType
value
- string initial valuepublic DomainInheritance getCommonInheritance(DomainInheritance thatInheritance)
getCommonInheritance
in interface DomainInheritance
public DomainType getCommonType(DomainStandardLibrary standardLibrary, DomainType type)
DomainType
getCommonType
in interface DomainType
public DomainFragment getFragment(DomainInheritance thatInheritance)
getFragment
in interface DomainInheritance
public DomainInheritance getInheritance(DomainStandardLibrary standardLibrary)
DomainType
getInheritance
in interface DomainType
public final java.lang.String getName()
DomainType
getName
in interface DomainType
public DomainType getNormalizedType(DomainStandardLibrary standardLibrary)
DomainType
getNormalizedType
in interface DomainType
protected DomainInheritance getOclAnyInheritance()
public final DomainPackage getPackage()
DomainType
getPackage
in interface DomainType
public boolean isEqualTo(DomainStandardLibrary standardLibrary, DomainType type)
DomainType
isEqualTo
in interface DomainType
public boolean isEqualToUnspecializedType(DomainStandardLibrary standardLibrary, DomainType type)
isEqualToUnspecializedType
in interface DomainType
public boolean isOrdered()
DomainType
isOrdered
in interface DomainType
public boolean isSubInheritanceOf(DomainInheritance thatInheritance)
isSubInheritanceOf
in interface DomainInheritance
public boolean isSuperInheritanceOf(DomainStandardLibrary standardLibrary, DomainInheritance thatInheritance)
isSuperInheritanceOf
in interface DomainInheritance
public boolean isUndefined()
isUndefined
in interface DomainInheritance
public boolean isUnique()
DomainType
isUnique
in interface DomainType
public LibraryFeature lookupImplementation(DomainStandardLibrary standardLibrary, DomainOperation staticOperation)
DomainType
lookupImplementation
in interface DomainType
public DomainOperation lookupLocalOperation(DomainStandardLibrary standardLibrary, java.lang.String operationName, DomainInheritance... argumentTypes)
lookupLocalOperation
in interface DomainInheritance
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |