|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.examples.domain.types.AbstractType
public abstract class AbstractType
| Field Summary | |
|---|---|
protected java.lang.String |
name
|
protected DomainStandardLibrary |
standardLibrary
|
| Constructor Summary | |
|---|---|
AbstractType(DomainStandardLibrary standardLibrary,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
ObjectValue |
createInstance()
Return a new instance of this type from valueFactory. |
Value |
createInstance(java.lang.String value)
Return a new instance of this data type from valueFactory. |
abstract DomainType |
getCommonType(IdResolver idResolver,
DomainType type)
Return the most derived type com mon to this type and thatType within standardLibrary. |
DomainInheritance |
getInheritance(DomainStandardLibrary standardLibrary)
Return the inheritance description for this type within standardLibrary. |
java.util.List<? extends DomainOperation> |
getLocalOperations()
|
java.util.List<? extends DomainProperty> |
getLocalProperties()
|
java.util.List<? extends DomainType> |
getLocalSuperTypes()
|
java.lang.String |
getMetaTypeName()
Return the name of the meta-type of this type. |
java.lang.String |
getName()
Return the name of this type (without any decorations for specializations). |
DomainType |
getNormalizedType(DomainStandardLibrary standardLibrary)
Return the unique executable form of this type within standardLibrary. |
java.util.List<? extends DomainProperty> |
getOwnedAttribute()
|
java.util.List<? extends DomainConstraint> |
getOwnedInvariant()
|
java.util.List<? extends DomainOperation> |
getOwnedOperation()
|
java.util.List<? extends DomainConstraint> |
getOwnedRule()
|
DomainPackage |
getPackage()
Return the package containing this type. |
DomainStandardLibrary |
getStandardLibrary()
|
DomainTypeParameters |
getTypeParameters()
Return the ordered list of type parameters of this type. |
boolean |
isEqualToUnspecializedType(DomainStandardLibrary standardLibrary,
DomainType type)
|
boolean |
isInvalid()
Return true if this is an invalid type (with an associated error message). |
boolean |
isOrdered()
Return true if this type is a Collection type and has ordered elements. |
boolean |
isUnique()
Return true if this type is a Collection type and has unique elements. |
boolean |
oclEquals(OCLValue thatValue)
Return true if this is an equivalent OCL value to thatValue. |
int |
oclHashCode()
|
DomainType |
specializeIn(DomainCallExp expr,
DomainType selfType)
|
| 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.elements.DomainType |
|---|
conformsTo, getTypeId, isEqualTo, lookupImplementation |
| Field Detail |
|---|
@NonNull protected final DomainStandardLibrary standardLibrary
@NonNull protected final java.lang.String name
| Constructor Detail |
|---|
public AbstractType(@NonNull
DomainStandardLibrary standardLibrary,
@NonNull
java.lang.String name)
| Method Detail |
|---|
@NonNull public ObjectValue createInstance()
DomainTypeDomainProperty#initValue(DomainStandardLibrary, ObjectValue, Value) provided no side-effect free
OCL functionality is permitted to use the ObjectValue until initialisation has completed.
createInstance in interface DomainType
@NonNull
public Value createInstance(@NonNull
java.lang.String value)
DomainType
createInstance in interface DomainTypevalue - string initial value
@NonNull
public abstract DomainType getCommonType(@NonNull
IdResolver idResolver,
@NonNull
DomainType type)
DomainType
getCommonType in interface DomainType
@NonNull
public DomainInheritance getInheritance(@NonNull
DomainStandardLibrary standardLibrary)
DomainType
getInheritance in interface DomainType@NonNull public java.util.List<? extends DomainOperation> getLocalOperations()
getLocalOperations in interface DomainType@NonNull public java.util.List<? extends DomainProperty> getLocalProperties()
getLocalProperties in interface DomainType@NonNull public java.util.List<? extends DomainType> getLocalSuperTypes()
getLocalSuperTypes in interface DomainType@NonNull public java.lang.String getMetaTypeName()
DomainType
getMetaTypeName in interface DomainTypepublic final java.lang.String getName()
DomainType
getName in interface DomainTypegetName in interface Nameable
@NonNull
public DomainType getNormalizedType(@NonNull
DomainStandardLibrary standardLibrary)
DomainType
getNormalizedType in interface DomainType@NonNull public java.util.List<? extends DomainProperty> getOwnedAttribute()
getOwnedAttribute in interface DomainType@NonNull public java.util.List<? extends DomainConstraint> getOwnedInvariant()
getOwnedInvariant in interface DomainType@NonNull public java.util.List<? extends DomainOperation> getOwnedOperation()
getOwnedOperation in interface DomainType@NonNull public java.util.List<? extends DomainConstraint> getOwnedRule()
getOwnedRule in interface DomainNamespacepublic DomainPackage getPackage()
DomainType
getPackage in interface DomainTypepublic final DomainStandardLibrary getStandardLibrary()
@NonNull public DomainTypeParameters getTypeParameters()
DomainType
getTypeParameters in interface DomainType
public boolean isEqualToUnspecializedType(@NonNull
DomainStandardLibrary standardLibrary,
@NonNull
DomainType type)
isEqualToUnspecializedType in interface DomainTypepublic boolean isInvalid()
DomainType
isInvalid in interface DomainTypepublic boolean isOrdered()
DomainType
isOrdered in interface DomainTypepublic boolean isUnique()
DomainType
isUnique in interface DomainType
public boolean oclEquals(@NonNull
OCLValue thatValue)
OCLValueNote that the caller must check that the argument is an OCLValue and should also check for the shortcut case that this == thatValue. Implementations are therefore wasting time if they re-implement the shortcut.
oclEquals in interface OCLValuepublic int oclHashCode()
oclHashCode in interface OCLValue
public DomainType specializeIn(@NonNull
DomainCallExp expr,
DomainType selfType)
specializeIn in interface DomainType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||