public abstract class AbstractType extends java.lang.Object implements DomainType
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
protected DomainStandardLibrary |
standardLibrary |
| Constructor and Description |
|---|
AbstractType(DomainStandardLibrary standardLibrary,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconformsTo, getTypeId, isEqualTo, lookupImplementation@NonNull protected final DomainStandardLibrary standardLibrary
@NonNull protected final java.lang.String name
public AbstractType(@NonNull
DomainStandardLibrary standardLibrary,
@NonNull
java.lang.String name)
@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)
DomainTypecreateInstance in interface DomainTypevalue - string initial value@NonNull public abstract DomainType getCommonType(@NonNull IdResolver idResolver, @NonNull DomainType type)
DomainTypegetCommonType in interface DomainType@NonNull public DomainInheritance getInheritance(@NonNull DomainStandardLibrary standardLibrary)
DomainTypegetInheritance 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()
DomainTypegetMetaTypeName in interface DomainTypepublic final java.lang.String getName()
DomainTypegetName in interface DomainTypegetName in interface Nameable@NonNull public DomainType getNormalizedType(@NonNull DomainStandardLibrary standardLibrary)
DomainTypegetNormalizedType 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()
DomainTypegetPackage in interface DomainTypepublic final DomainStandardLibrary getStandardLibrary()
@NonNull public DomainTypeParameters getTypeParameters()
DomainTypegetTypeParameters in interface DomainTypepublic boolean isEqualToUnspecializedType(@NonNull
DomainStandardLibrary standardLibrary,
@NonNull
DomainType type)
isEqualToUnspecializedType in interface DomainTypepublic boolean isInvalid()
DomainTypeisInvalid in interface DomainTypepublic boolean isOrdered()
DomainTypeisOrdered in interface DomainTypepublic boolean isUnique()
DomainTypeisUnique in interface DomainTypepublic 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.
public int oclHashCode()
oclHashCode in interface OCLValuepublic DomainType specializeIn(@NonNull DomainCallExp expr, DomainType selfType)
specializeIn in interface DomainType