|
||||||||||
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.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(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. |
abstract DomainType |
getCommonType(DomainStandardLibrary standardLibrary,
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.lang.Iterable<? extends DomainOperation> |
getLocalOperations()
|
java.lang.Iterable<? extends DomainProperty> |
getLocalProperties()
|
java.lang.Iterable<? 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 decoratuions for specializations). |
DomainType |
getNormalizedType(DomainStandardLibrary standardLibrary)
Return the unique executable form of this type within standardLibrary. |
DomainPackage |
getPackage()
Return the package containing this type. |
DomainStandardLibrary |
getStandardLibrary()
|
boolean |
isEqualToUnspecializedType(DomainStandardLibrary standardLibrary,
DomainType type)
|
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. |
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, isEqualTo, lookupImplementation |
Field Detail |
---|
protected final DomainStandardLibrary standardLibrary
protected final java.lang.String name
Constructor Detail |
---|
public AbstractType(DomainStandardLibrary standardLibrary, java.lang.String name)
Method Detail |
---|
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 abstract DomainType getCommonType(DomainStandardLibrary standardLibrary, DomainType type)
DomainType
getCommonType
in interface DomainType
public DomainInheritance getInheritance(DomainStandardLibrary standardLibrary)
DomainType
getInheritance
in interface DomainType
public java.lang.Iterable<? extends DomainOperation> getLocalOperations()
getLocalOperations
in interface DomainType
public java.lang.Iterable<? extends DomainProperty> getLocalProperties()
getLocalProperties
in interface DomainType
public java.lang.Iterable<? extends DomainType> getLocalSuperTypes()
getLocalSuperTypes
in interface DomainType
public java.lang.String getMetaTypeName()
DomainType
getMetaTypeName
in interface DomainType
public final java.lang.String getName()
DomainType
getName
in interface DomainType
public DomainType getNormalizedType(DomainStandardLibrary standardLibrary)
DomainType
getNormalizedType
in interface DomainType
public DomainPackage getPackage()
DomainType
getPackage
in interface DomainType
public final DomainStandardLibrary getStandardLibrary()
public boolean isEqualToUnspecializedType(DomainStandardLibrary standardLibrary, DomainType type)
isEqualToUnspecializedType
in interface DomainType
public boolean isOrdered()
DomainType
isOrdered
in interface DomainType
public boolean isUnique()
DomainType
isUnique
in interface DomainType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |