.oclIsKindOf()

Method checks if the given value corresponds with the given type or supertype given as a parameter.

Description of the method

Description: .oclIsKindOf() method checks if the given value corresponds with the given type or supertype given as a parameter.
Available for: any
Parameters: format type
Return type: boolean

 Example

Context: HeaderType1
OCL: self.Dt.OclIsKindOf(ISODate)
Description: The example rule checks if the type or supertypes of the value of <Dt> matches the ISO Date type.

 

The XML snippet below would pass this check.

<Dt>2018-05-28</Dt>

The other snippet below however would not pass this check.

<Dt>28.05.2018</Dt>

<Dt>28.05.2018</Dt>