CERN -> IPT Group -> FrameMaker at CERN
Information Service User's Guide

4.4 Information type operations

Table 4.1 shows all the operations which can be applied to ISType objects.

Table 4.1   Type operations

ISType type1;

ISType type2;

Description

t1 == t2

returns true if types are fully identical, i.e. the type names and type structures are the same

t1 != t2

returns false only if types are fully identical, otherwise returns true

t1.compatibleWith( t2 )

returns true if types have the same structure, type names are not compared

t1.superTypeOf( t2 )

returns true if t2 represents a type, which inherits from t1 or is the t1 itself

t1.subTypeOf( t2 )

returns true if t1 represents a type, which inherits from t2 or is the t2 itself

!t1

returns the new ISType object, which is compatible with any type but the t1

~t1

returns the new ISType object, which is compatible with t1 as well as with any type, which is subtype of the t1

The last two operations are useful for defining criteria for information subscription See Subscribing to the IS repository and information browsing See Browsing the IS repository.


2 July 1998 - WebMaster
Copyright © CERN 1998