Click or drag to resize

ObjectType Class

A representation of a GrGen object type, i.e. class of internal non-node/edge values.
Inheritance Hierarchy
SystemObject
  de.unika.ipd.grGen.libGrGrGenType
    de.unika.ipd.grGen.libGrInheritanceType
      de.unika.ipd.grGen.libGrBaseObjectType
        de.unika.ipd.grGen.libGrObjectType

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 8.1
Syntax
C#
public abstract class ObjectType : BaseObjectType

The ObjectType type exposes the following members.

Constructors
  NameDescription
Protected methodObjectType
Constructs an ObjectType (non-graph-element internal class) instance with the given type ID.
Top
Properties
  NameDescription
Public propertyAnnotations
The annotations of the class type
(Overrides BaseObjectTypeAnnotations.)
Public propertyAttributeTypes
Enumerates all attribute types of this type.
(Inherited from InheritanceType.)
Public propertyBaseObjectClassName (Overrides BaseObjectTypeBaseObjectClassName.)
Public propertyBaseObjectInterfaceName (Overrides BaseObjectTypeBaseObjectInterfaceName.)
Public propertyDirectSubTypes
Array containing all direct sub types of this type.
Public propertyDirectSuperTypes
Array containing all direct super types of this type.
Public propertyFunctionMethods
Enumerates all function methods of this type.
(Inherited from InheritanceType.)
Public propertyHasSubTypes
True, if this type has any sub types.
(Inherited from InheritanceType.)
Public propertyHasSuperTypes
True, if this type has any super types, i.e. if it is not the root type.
(Inherited from InheritanceType.)
Public propertyIsAbstract
True, if this type is an abstract element type.
(Inherited from InheritanceType.)
Public propertyIsConst
True, if this type is a const element type.
(Inherited from InheritanceType.)
Public propertyName
The name of the type.
(Inherited from GrGenType.)
Public propertyNumAttributes
The number of attributes of this type.
(Inherited from InheritanceType.)
Public propertyNumFunctionMethods
The number of function methods of this type.
(Inherited from InheritanceType.)
Public propertyNumProcedureMethods
The number of procedure methods of this type.
(Inherited from InheritanceType.)
Public propertyObjectClassName
This ObjectType describes classes whose real .NET class type is named as returned (fully qualified). It might be null in case this type IsAbstract.
Public propertyObjectInterfaceName
This ObjectType describes classes whose real .NET interface type is named as returned (fully qualified).
Public propertyPackage
null if this is a global type, otherwise the package the type is contained in.
(Inherited from GrGenType.)
Public propertyPackagePrefixedName
The name of the type in case of a global type, the name of the type prefixed by the name of the package otherwise.
(Inherited from GrGenType.)
Public propertyProcedureMethods
Enumerates all procedure methods of this type.
(Inherited from InheritanceType.)
Public propertySubOrSameTypes
Array containing this type first and following all sub types
Public propertySubTypes
Enumerates over all real subtypes of this type Warning: You should not use this property, but SubOrSameTypes starting from index 1, because Enumerators in .NET are quite slow!
(Inherited from InheritanceType.)
Public propertySuperOrSameTypes
Array containing this type first and following all super types
Public propertySuperTypes
Enumerates over all real supertypes of this type Warning: You should not use this property, but SuperOrSameTypes starting from index 1, because Enumerators in .NET are quite slow!
(Inherited from InheritanceType.)
Top
Methods
  NameDescription
Public methodCreateBaseObject
Creates an object according to this type.
(Overrides BaseObjectTypeCreateBaseObject.)
Public methodCreateObject(IGraph, Int64)
Creates an object according to this type. Requires the graph to fetch the unique id / the name, in case the unique id is given (!= -1) it is taken, or an exception is thrown in case the id is already in use or id fetching has passed its value. In case of !ObjectUniquenessIsEnsured, -1 is expected.
Public methodCreateObject(IGraph, String)
Creates an object according to this type. Requires the graph to fetch the unique id / the name, in case the name is given and valid it is taken, or an exception is thrown in case the name/id is already in use or id fetching has passed its value. The name is expected in format "%" + uniqueId (if null, a name is fetched). In case of !ObjectUniquenessIsEnsured, null is expected.
Public methodGetAttributeType
Returns an AttributeType object for the given attribute name. If this type does not have an attribute with this name, null is returned.
(Inherited from InheritanceType.)
Public methodGetFunctionMethod
Returns a function definition object for the given function method name. If this type does not have a function method with this name, null is returned.
(Inherited from InheritanceType.)
Public methodGetProcedureMethod
Returns a procedure definition object for the given procedure method name. If this type does not have a procedure method with this name, null is returned.
(Inherited from InheritanceType.)
Public methodStatic memberGetUniqueIdFromName
Public methodIsA(Int32)
Tells whether this type is the same or a subtype of the given type
(Overrides BaseObjectTypeIsA(Int32).)
Public methodIsA(GrGenType)
Checks, whether this type is compatible to the given type, i.e. this type is the same type as the given type or it is a sub type of the given type.
(Inherited from GrGenType.)
Public methodIsMyType
Tells whether the given type is the same or a subtype of this type
(Overrides BaseObjectTypeIsMyType(Int32).)
Public methodToString
Returns the name of the type.
(Inherited from GrGenType.)
Top
Fields
  NameDescription
Public fielddirectSubGrGenTypes
Array containing all direct sub types of this type.
(Inherited from InheritanceType.)
Public fielddirectSubTypes
Array containing all direct sub types of this type.
Public fielddirectSuperGrGenTypes
Array containing all direct super types of this type.
(Inherited from InheritanceType.)
Public fielddirectSuperTypes
Array containing all direct super types of this type.
Public fieldsubOrSameGrGenTypes
Array containing this type first and following all sub types.
(Inherited from InheritanceType.)
Public fieldsubOrSameTypes
Array containing this type first and following all sub types
Public fieldsuperOrSameGrGenTypes
Array containing this type first and following all super types.
(Inherited from InheritanceType.)
Public fieldsuperOrSameTypes
Array containing this type first and following all super types
Public fieldTypeID
An identification number of the type, unique among all other types of the same kind (node/edge) in the owning type model.
(Inherited from GrGenType.)
Top
See Also