Modifier and Type | Field and Description |
---|---|
OclNode.BuiltInType |
builtInType |
String |
name |
ClassInfo |
umlClass |
Constructor and Description |
---|
DataType(ClassInfo ci)
Initialize a DataType from a given UML class represented by a
ClassInfo object.
|
DataType(OclNode.BuiltInType bit)
Initialize a DataType from an explicit BultInType enum value.
|
DataType(String name)
Initialize a DataType from its name alone.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public String name
public OclNode.BuiltInType builtInType
public ClassInfo umlClass
public 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 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 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 typepublic boolean isBuiltIn()
public boolean isSubTypeOf(OclNode.DataType type)
type
- Type to be analyzed as indicatedpublic OclNode.DataType commonSuperType(OclNode.DataType type)
type
- Type to be analyzed as indicatedCopyright © 2017. All rights reserved.