DOFTypeisDefined Method OpenDOF Object Access Library
Return whether of not the type is fully defined.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public virtual bool isDefined()

Return Value

Type: Boolean
true
if the type is fully defined,
false
otherwise.
Remarks

Return whether of not the type is fully defined.

Types must be immutable once they are fully defined. In order to create certain self-referential types it is impossible for all types to be created in an immutable state (see Typedef , for example). In this case the constructed type must return

false
until it is fully defined.

While in the partially defined state the results of other method calls on the type may return invalid results or throw exceptions. Care must be taken whenever working with a type that may be partially defined. Further, certain uses of types may be prohibited if the type is not yet defined. These cases are mentioned in the documentation as requiring fully defined types.

Once a type is fully defined it becomes immutable, meaning that it can never become partially defined again.

See Also

Reference