Type OclAny

All Subtypes:
Boolean, Byte, Date, Double, Float, Int, Integer, Long, OclObject, OclType, Real, Short, String, Text, Time

Predefined type OclAny

The type OclAny is the abstract supertype of all types in the business model, pre-defined types and enumerations. Operations defined in OclAny are available on each object in all expressions. It is not possible to override any OclAny operations in the business model.


Operation Summary
 Boolean =(OclAny rhs)
          True if this object is the same object as rhs.
 Boolean <>(OclAny rhs)
          True if this object is a different object from rhs.
OclAny oclAsType(OclType type)
          Results in this object, but of the known type type.
 Boolean oclIsKindOf(OclType type)
          True if type is one of the types of this object, or one of the supertypes (transitive) of the types of this object.
 Boolean oclIsTypeOf(OclType type)
          True if type is equal to the real type of this object.
 

Operations Detail

=

 public Boolean =(OclAny rhs)
True if this object is the same object as rhs.

<>

 public Boolean <>(OclAny rhs)
True if this object is a different object from rhs.

oclIsKindOf

 public Boolean oclIsKindOf(OclType type)
True if type is one of the types of this object, or one of the supertypes (transitive) of the types of this object. Calling myObject.oclIsKindOf(OclAny) will always lead to a true result.

oclIsTypeOf

 public Boolean oclIsTypeOf(OclType type)
True if type is equal to the real type of this object. Calling myObject.oclIsTypeOf(OclAny), or any other abstract type, will always lead to a false result.

oclAsType

 public OclAny oclAsType(OclType type)
Results in this object, but of the known type type.


Copyright 1999-2002 ObjeXion Software SA. All rights reserved.