DOFTypegetSubtypes Method OpenDOF Object Access Library
Return a list of subtypes associated with this type.

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

C#
public virtual IList<DOFType> getSubtypes()

Return Value

Type: IListDOFType
Either a zero-length array (if the type has no subtypes) or an array of subtypes.
Remarks

Return a list of subtypes associated with this type.

Types that depend on other types as part of their definition have "subtypes". This doesn't always imply a parent/child relationship, but it may (and does in the case of arrays and structures). In order to maintain a uniform API for all types, the return value is always an array.

If there are no subtypes then a zero-length array is returned. Common situations include arrays (which will have a single subtype) and structures (which will have 1 to n subtypes).

See Also

Reference