|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.interactive_instruments.ShapeChange.Ocl.OclNode.DataType
public static class OclNode.DataType
All OclNodes own a DataType, which is either built-in, or from the UML model in the context, or both.
Field Summary | |
---|---|
OclNode.BuiltInType |
builtInType
|
String |
name
|
ClassInfo |
umlClass
|
Constructor Summary | |
---|---|
OclNode.DataType(ClassInfo ci)
Initialize a DataType from a given UML class represented by a ClassInfo object. |
|
OclNode.DataType(OclNode.BuiltInType bit)
Initialize a DataType from an explicit BultInType enum value. |
|
OclNode.DataType(String name)
Initialize a DataType from its name alone. |
Method Summary | |
---|---|
OclNode.DataType |
commonSuperType(OclNode.DataType type)
Determine common supertype of this type and the one given. |
boolean |
isBuiltIn()
Find out if this DataType object represents an OCL built-in one, maybe pure or mapped from 19103. |
boolean |
isSubTypeOf(OclNode.DataType type)
Determine whether this type is a subtype of the given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String name
public OclNode.BuiltInType builtInType
public ClassInfo umlClass
Constructor Detail |
---|
public OclNode.DataType(ClassInfo ci)
Initialize a DataType from a given UML class represented by a ClassInfo object.
The Ctor automatically finds out, if the class is one of those which are mapped to OCL built-in types or any derivatives thereof.
ci
- ClassInfo objectpublic OclNode.DataType(OclNode.BuiltInType bit)
Initialize a DataType from an explicit BultInType enum value. This method always represents a pure OCL type.
bit
- BuiltInType enum valuepublic OclNode.DataType(String name)
Initialize a DataType from its name alone. This may create a pure OCL type (if it belongs to the set of OCL Types), or may represent one of the well-known 19103 types mapped to OCL, or may represent some UML class from which we only know the name.
name
- String Name of the typeMethod Detail |
---|
public boolean isBuiltIn()
public boolean isSubTypeOf(OclNode.DataType type)
type
- Type to be analyzed as indicated
public OclNode.DataType commonSuperType(OclNode.DataType type)
type
- Type to be analyzed as indicated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |