OclType
The static methods of OclAny are at the same time the instance methodsof the type OclType. OclType is the type of OclAny and the supertypeof all meta types. OclType provides the methods listed below to queryinformation about the given type.Attributes
- operation
- Association to all operations available for this type
- attribute
- Association to all properties (attributes and association ends) available for this type
- ownedOperation
- Association to all operations (re)declared for this type
- ownedAttribute
- Association to all properties (re)declared for this type
Operations
- name(): String [N]
- Deprecated; included for OCL 1.x compatibility. Please use the name attribute instead. Returns the name of self.
- supertypes(): Set(OclType) [N]
- Returns all immediate super types of self.
- allSupertypes(): Set(OclType) [N]
- Returns the transitive closure of the set of all super types of self
- subtypes(): Set(OclType) [N]
- Returns all immedidate subtypes of self
- allSubtypes(): Set(OclType) [N]
- Returns the transitive clousure of all subtypes of self.
- allInstances(): Set(TypeOf) [N]
- Returns the set of all instances of self, including all instances of subtypees.
- instances(): Set(TypeOf) [I] [N]
- Returns the set of all direct instances of type, not including instances of subtypees. This operation is specific to the Infolayer and not part of the OCL standard.
- getInstance(s: String): TypeOf [I] [N]
- Returns the instance with the given id, or OclUndefined, if there is no such instance for t and its subtypees. This operation is specific to the Infolayer and not part of the OCL standard.
- createInstance(): TypeOf [I] [S]
- This method returns a new Instance of self.
- canCreate(): Boolean [N]
- Returns true if the current user may create new instances of self.
- canQuery(s: String): Boolean [N]
- True if the current user may query self.