Method Summary | |
---|---|
Object |
asType(Type)
|
Void |
checkAllInvariants()
|
Void |
checkAllInvariants(Boolean)
|
Void |
checkInvariant(Constraint)
|
Void |
checkInvariants()
|
Void |
checkInvariants(Boolean)
|
Object |
container()
|
Resource |
containingResource()
|
Boolean |
equals(Object)
|
Object |
get(Property)
Using A :
The user has to cast the result of this method according to the type and the upper multiplicity of this property. If upper multiplicity > 1, than the effective type of the result is a Sequence the name of the given Property (i.e the type of the property instance). |
Class |
getMetaClass()
|
Integer |
hashCode()
|
Object |
invoke(OperationOrderedCollection)
|
Boolean |
isDirectInstanceOf(Type)
|
Boolean |
isInstanceOf(Type)
|
Boolean |
isKindOf(Type)
|
Boolean |
isNotEqual(Object)
|
Boolean |
isSet(Property)
|
Boolean |
isVoid()
|
Integer |
oid()
|
Void |
removeFromContainer()
|
Void |
set(PropertyObject)
|
String |
toString()
|
Void |
unset(Property)
|
Object asType[(Type)
Implementation of OCL like cast. It returns self if the object object conforms to the type given as parameter.
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;6066;6114"
@CompilerIgnore "true"
Void checkAllInvariants[()
Recursively runs checking of invariants defined for the metaclass of the Object and its supertypes Ignores derived attributes.
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;1730;1778"
@CompilerIgnore "true"
Void checkAllInvariants[(Boolean)
Recursively runs checking of invariants defined for the metaclass of the Object and its supertypes Ignores derived attributes.
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;1958;2025"
@CompilerIgnore "true"
Void checkInvariant[(Constraint)
Runs checking of a single invariant on the Object
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;2133;2202"
@CompilerIgnore "true"
Void checkInvariants[()
Runs checking of invariants defined for the metaclass of the Object Also check the multiplicity of attributes (except derived and transient attributes)
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;1242;1287"
@CompilerIgnore "true"
Void checkInvariants[(Boolean)
Runs checking of invariants defined for the metaclass of the Object Also check the multiplicity of attributes (except derived and transient attributes)
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;1486;1550"
@CompilerIgnore "true"
Object container[()
Returns the Object that contains current Object, void if the Object has no container
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;815;856"
@CompilerIgnore "true"
Resource containingResource[()
Returns the Resource currently containing (directly or indirectly) the Object or void if the object belongs to no Resource
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;6535;6611"
@CompilerIgnore "true"
Boolean equals[(Object)
semantic equality, if you wish to test for object identity you need to use the method oid ex: x.oid == y.oid by default, (ie. if not overloaded), the equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any non-null reference values x and y, this method returns true if and only if x and y refer to the same object (x.oid == y.oid has the value true). note1: the operator == is mapped to this note2: overloading this operation have some impact on the behavior on collection and hashtable that rely on it
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;2858;2913"
@CompilerIgnore "true"
Object get[(Property)
Returns the instances of the given property for this Object. Example :
class A { reference attr : String }Using A :operation getAProp() is do var a : A var s : String var the_attr : Property init self.getMetaClass.ownedAttribute.one s ?= a.get(the_attr) endThe user has to cast the result of this method according to the type and the upper multiplicity of this property. If upper multiplicity > 1, than the effective type of the result is a Sequence. Otherwise, the type corresponds to the name of the given Property (i.e the type of the property instance). @traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;4214;4269"
@CompilerIgnore "true"
Class getMetaClass[()
Returns the Class object that is the metaclass of current Object
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;641;684"
@CompilerIgnore "true"
Integer hashCode[()
code used in hashtable in order to identify an object in the hashtable keys This system is similar to the hashcode used in java. Please refer to java documentation for more information about hashcode
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;5769;5811"
@CompilerIgnore "true"
Object invoke[(OperationOrderedCollection)
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;6640;6720"
@CompilerIgnore "true"
Boolean isDirectInstanceOf[(Type)
Returns a Boolean stating whether the current Object is an instance of the given Class This is the new version of the former isKindOf
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;3256;3317"
Boolean isInstanceOf[(Type)
Returns true if the current Object is an instance of the given type or of one of its supertypes. For a non-transitive check, see isDirectInstanceOf.
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;6309;6364"
@CompilerIgnore "true"
Boolean isKindOf[(Type)
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;3425;3476"
@CompilerIgnore "true"
@Deprecated "Operation isKindOf is deprecated, use isDirectInstanceOf instead"
Boolean isNotEqual[(Object)
See kermeta::language::structure::Object.equals(Object)
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;3012;3071"
@CompilerIgnore "true"
Boolean isSet[(Property)
True if the
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;4564;4622"~property
of the object has been set
@CompilerIgnore "true"
Boolean isVoid[()
Returns a Boolean stating whether the Object is Void
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;5481;5519"
@CompilerIgnore "true"
Integer oid[()
Returns the unique Oid of the Object
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;4936;4971"
@CompilerIgnore "true"
Void removeFromContainer[()
Removes the object from its containing emfpersistence::resource and/or its containing object.
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;993;1042"
@CompilerIgnore "true"
Void set[(PropertyObject)
Sets the
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;4387;4459"element
to the~property
of the object
@CompilerIgnore "true"
String toString[()
Implements Object.toString() Returns a String of form [qn:oid] where 'qn' is the qualified name of the object type, and oid the unique ID of the object
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;5178;5217"
@CompilerIgnore "true"
Void unset[(Property)
Remove the element set as the
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/baseType.kmt;4801;4856"~property
of the object. TheisSet(~property)
method will then return False
@CompilerIgnore "true"