public interface RAAPI
RAAPI
is a common abstraction layer for accessing models stored in
different repositories associated with different technical spaces.Modifier and Type | Method and Description |
---|---|
java.lang.String |
callSpecificOperation(java.lang.String operationName,
java.lang.String arguments)
Calls a repository-specific operation (e.g., or MOF/ECore-like operation, an SQL statement, or a SPARQL statement).
|
long |
createAdvancedAssociation(java.lang.String name,
boolean nAry,
boolean associationClass)
Creates an n-ary association, an association class, or an n-ary association class.
|
long |
createAssociation(long rSourceClass,
long rTargetClass,
java.lang.String sourceRoleName,
java.lang.String targetRoleName,
boolean isComposition)
Creates a bidirectional association (or two directed associations, where each is an inverse of the other).
|
long |
createAttribute(long rClass,
java.lang.String name,
long rPrimitiveType)
Creates (defines) a new attribute for the given class.
|
long |
createClass(java.lang.String name)
Creates a class with the given fully qualified name.
|
long |
createDirectedAssociation(long rSourceClass,
long rTargetClass,
java.lang.String targetRoleName,
boolean isComposition)
Creates a directed association.
|
boolean |
createGeneralization(long rSubClass,
long rSuperClass)
Creates a generalization between the two given classes.
|
boolean |
createLink(long rSourceObject,
long rTargetObject,
long rAssociationEnd)
Creates a link of the given type (specified by
rAssociationEnd ) between two objects. |
long |
createObject(long rClass)
Creates an instance of the given class.
|
boolean |
createOrderedLink(long rSourceObject,
long rTargetObject,
long rAssociationEnd,
int targetPosition)
Creates a link of the given type (specified by
rAssociationEnd ) between two objects at the given position. |
boolean |
deleteAssociation(long rAssociationEndOrAdvancedAssociation)
Deletes the given association.
|
boolean |
deleteAttribute(long rAttribute)
Deletes the given attribute.
|
boolean |
deleteAttributeValue(long rObject,
long rAttribute)
Deletes the value (all the values) of the given attribute for the given object.
|
boolean |
deleteClass(long rClass)
Deletes the class and frees the reference.
|
boolean |
deleteGeneralization(long rSubClass,
long rSuperClass)
Deletes the generalization between the given two classes.
|
boolean |
deleteLink(long rSourceObject,
long rTargetObject,
long rAssociationEnd)
Deletes a link of the given type (specified by
rTargetAssociationEnd ) between the given two objects. |
boolean |
deleteObject(long rObject)
Creates the given object.
|
long |
deserializeReference(java.lang.String r)
Obtains a reference to a serialized element from the given serialization.
|
boolean |
excludeObjectFromClass(long rObject,
long rClass)
Takes out the given object from the given (quasi-ontological) class.
|
long |
findAssociationEnd(long rSourceClass,
java.lang.String targetRoleName)
Obtains a reference to an association end (by its role name) starting at the given class.
|
long |
findAttribute(long rClass,
java.lang.String name)
Obtains a reference to an existing attribute with the given name of the given class.
|
long |
findClass(java.lang.String name)
Obtains a reference to an existing class with the given fully qualified name.
|
long |
findPrimitiveDataType(java.lang.String name)
Obtains a reference to a primitive data type with the given name.
|
void |
freeIterator(long it)
Frees the memory associated with the given iterator reference.
|
void |
freeReference(long r)
Frees the memory associated with the given reference (if necessary).
|
long |
getAttributeDomain(long rAttribute)
Obtains a class, for which the given attribute was defined.
|
java.lang.String |
getAttributeName(long rAttribute)
Returns the name of the given attribute.
|
long |
getAttributeType(long rAttribute)
Returns the (primitive) type for values of the given attribute.
|
java.lang.String |
getAttributeValue(long rObject,
long rAttribute)
Gets the value or the ordered collection of values (encoded as a string) of the given attribute for the given object.
|
java.lang.String |
getClassName(long rClass)
Returns the fully qualified name of the given class.
|
long |
getInverseAssociationEnd(long rAssociationEnd)
Obtains a reference to the inverse association end of the given association end (if association is bidirectional or a bidirectional part of an advanced association).
|
long |
getIteratorForAllAttributes(long rClass)
Obtains an iterator for all (including inherited) attributes of the given class.
|
long |
getIteratorForAllClassObjects(long rClassOrAdvancedAssociation)
Obtains an iterator for all quasi-ontological instances of the given class or advanced association.
|
long |
getIteratorForAllIngoingAssociationEnds(long rClass)
Obtains an iterator for all (including inherited) ingoing association ends of the given class.
|
long |
getIteratorForAllLinguisticInstances(long rClass)
Returns an iterator for all quasi-linguistic instances (including instances of subclasses) at Level MΩ of the given class at Level M3.
|
long |
getIteratorForAllOutgoingAssociationEnds(long rClass)
Obtains an iterator for all (including inherited) outgoing association ends of the given class.
|
long |
getIteratorForClasses()
Obtains an iterator for all classes (all quasi-ontological classes at all quasi-ontological meta-levels).
|
long |
getIteratorForDirectAttributes(long rClass)
Obtains an iterator for direct (without inherited) attributes of the given class.
|
long |
getIteratorForDirectClassObjects(long rClassOrAdvancedAssociation)
Obtains an iterator for direct quasi-ontological instances of the given class or advanced association.
|
long |
getIteratorForDirectIngoingAssociationEnds(long rClass)
Obtains an iterator for direct (without inherited) ingoing association ends of the given class.
|
long |
getIteratorForDirectLinguisticInstances(long rClass)
Returns an iterator for direct quasi-linguistic instances (not including instances of subclasses) at Level MΩ of the given class at Level M3.
|
long |
getIteratorForDirectObjectClasses(long rObjectOrAdvancedLink)
Obtains an iterator for direct quasi-ontological classes of the given object or advanced link.
|
long |
getIteratorForDirectOutgoingAssociationEnds(long rClass)
Obtains an iterator for direct (without inherited) outgoing association ends of the given class.
|
long |
getIteratorForDirectSubClasses(long rSuperClass)
Obtains an iterator for all direct subclasses of the given superclass.
|
long |
getIteratorForDirectSuperClasses(long rSubClass)
Obtains an iterator for all direct superclasses of the given subclass.
|
long |
getIteratorForLinguisticClasses()
Returns an iterator for all quasi-linguistic classes at Level M3.
|
long |
getIteratorForLinkedObjects(long rObject,
long rAssociationEnd)
Returns an iterator for objects linked to the given start object by links of the given type.
|
long |
getIteratorForObjectsByAttributeValue(long rAttribute,
java.lang.String value)
Obtains an iterator for objects, for whose the value of the given attribute equals to the given value.
|
int |
getIteratorLength(long it)
Places the iterator to the position 0 and returns the total number of elements to iterate through.
|
long |
getLinguisticClassFor(long r)
Returns a reference to the Level M3 class of the given quasi-ontological (Level MΩ) element.
|
int |
getLinkedObjectPosition(long rSourceObject,
long rTargetObject,
long rAssociationEnd)
Returns the index (numeration starts from 0) of the target object in the list of objects linked to the source object by links of the given type.
|
java.lang.String |
getPrimitiveDataTypeName(long rDataType)
Returns the name of the given primitive data type.
|
java.lang.String |
getRoleName(long rAssociationEnd)
Returns the role name of the given association end.
|
long |
getSourceClass(long rTargetAssociationEnd)
Obtains a reference to the source class of the given directed or bidirectional association (or part of an advanced association) specified by its target end.
|
long |
getTargetClass(long rTargetAssociationEnd)
Obtains a reference to the class corresponding to the given association end of some directed, bidirectional, or advanced association.
|
boolean |
includeObjectInClass(long rObject,
long rClass)
Adds the given object to the given (quasi-ontological) class.
|
boolean |
isAdvancedAssociation(long r)
Checks, whether the given reference corresponds to an advanced association.
|
boolean |
isAssociationEnd(long r)
Checks, whether the given reference corresponds to an association end.
|
boolean |
isAttribute(long r)
Checks whether the given reference is associated with an attribute.
|
boolean |
isClass(long r)
Checks whether the given reference is associated with a class.
|
boolean |
isComposition(long rTargetAssociationEnd)
Returns, whether the directed or bidirectional association (or a part of an advanced association) specified by its target association end is a composition (i.e., whether the source class objects are containers for the target class objects).
|
boolean |
isDerivedClass(long rDirectlyOrIndirectlyDerivedClass,
long rSuperClass)
Checks whether one class is a direct or indirect subclass of another.
|
boolean |
isDirectSubClass(long rSubClass,
long rSuperClass)
Checks whether the generalization relation between the two given classes holds.
|
boolean |
isKindOf(long rObject,
long rClass)
Checks whether the given object is a direct or indirect, quasi-ontological or quasi-linguistic, instance of the given class.
|
boolean |
isLinguistic(long r)
Checks, whether the given reference is associated with a Level M3 element.
|
boolean |
isPrimitiveDataType(long r)
Checks whether the given reference is associated with a primitive data type.
|
boolean |
isTypeOf(long rObject,
long rClass)
Checks whether the given object is a direct (quasi-ontological or quasi-linguistic) instance of the given class.
|
boolean |
linkExists(long rSourceObject,
long rTargetObject,
long rAssociationEnd)
Checks whether the link of the given type (specified by
rTargetAssociationEnd ) between the given two objects exists. |
boolean |
moveObject(long rObject,
long rToClass)
Moves (reclassifies) the given object into the given (quasi-ontological) class, removing it from its current class (classes).
|
long |
resolveIterator(long it,
int position)
Returns a reference to the element at the given
position (numeration starts from 0) and forwards the iterator to position+1 . |
long |
resolveIteratorFirst(long it)
Places the iterator to the position 0 and gets the element there.
|
long |
resolveIteratorNext(long it)
Moves the iterator forward and gets the element at that position.
|
java.lang.String |
serializeReference(long r)
Creates a string representation of the given reference, which survives the current session.
|
boolean |
setAttributeValue(long rObject,
long rAttribute,
java.lang.String value)
Sets the value or the ordered collection of values (encoded as a string) of the given attribute for the given object.
|
long findPrimitiveDataType(java.lang.String name)
name
- the type name. Each repository must support at least four
standard primitive data types: "Integer", "Real", "Boolean", and "String".
MountPoint::PeculiarDataType
.java.lang.String getPrimitiveDataTypeName(long rDataType)
rDataType
- a reference to a primitive data type,
for which the name has to be obtainednull
on error.findPrimitiveDataType(java.lang.String)
boolean isPrimitiveDataType(long r)
r
- a reference in questionfalse
is returned.findPrimitiveDataType(java.lang.String)
,
getPrimitiveDataTypeName(long)
long createClass(java.lang.String name)
name
- the fully qualified name of the class
(packages are delimited by double colon "::");
this fully qualified name must be uniquelong findClass(java.lang.String name)
SomePath::MountPoint::M3::SomeMetaType
getIteratorForClasses
[TODO] and getIteratorForLinguisticClasses
.name
- the fully qualified name of the class
(for quasi-linguistic classes, use prefix "M3::")java.lang.String getClassName(long rClass)
MountPointForTheCorrespondingRepository::M3::ClassName
.rClass
- a reference to the class, for which the class name has to be obtainednull
on error.boolean deleteClass(long rClass)
rClass
- a reference to the class to be deletedlong getIteratorForClasses()
getIteratorForLinguisticClasses
instead.getIteratorForLinguisticClasses()
,
on iterators,
on meta-levelsboolean createGeneralization(long rSubClass, long rSuperClass)
rSubClass
- a class that becomes a subclassrSuperClass
- a class that becomes a superclassboolean deleteGeneralization(long rSubClass, long rSuperClass)
rSubClass
- a class that was a subclassrSuperClass
- a class that was a superclasslong getIteratorForDirectSuperClasses(long rSubClass)
rSubClass
- a subclass for which to obtain direct superclasseslong getIteratorForDirectSubClasses(long rSuperClass)
rSuperClass
- a superclass for which to obtain direct subclassesboolean isClass(long r)
r
- a reference in questionfalse
is returned.boolean isDirectSubClass(long rSubClass, long rSuperClass)
rSubClass
- a reference to a potential subclassrSuperClass
- a reference to a potential superclassfalse
is returned.boolean isDerivedClass(long rDirectlyOrIndirectlyDerivedClass, long rSuperClass)
rDirectlyOrIndirectlyDerivedClass
- a reference to a potential subclass or derived classrSuperClass
- a reference to a potential (direct or indirect) superclassfalse
is returned.long createObject(long rClass)
rClass
- a reference to a class (either quasi-ontological, or quasi-linguistic)boolean deleteObject(long rObject)
rObject
- a reference to the object to be deletedboolean includeObjectInClass(long rObject, long rClass)
includeObjectInClass
is meaningless in this case.rObject
- a reference to the object to be included in the given classrClass
- a reference to the class, where to put the object (in addition to
classes, where the object already belongs)boolean excludeObjectFromClass(long rObject, long rClass)
excludeObjectInClass
as well as includeObjectInClass
are meaningless in this case.rObject
- a reference to the object to be excluded from the given classrClass
- a reference to the class, which to exclude from the
classifiers of the given objectboolean moveObject(long rObject, long rToClass)
includeObjectInClass(rObject, rToClass);
followed by calling
excludeObjectInClass(rObject, c)
for all other current classifiers c of the given object.
moveObject
is meaningless in this case.rObject
- a reference to the object to be reclassifiedrToClass
- a reference to the class, to which the object will belonglong getIteratorForAllClassObjects(long rClassOrAdvancedAssociation)
getIteratorForAllClassObjects
and getIteratorForDirectClassObjects
.
The unimplemented function will be implemented via another by TDA Kernel.
rClassOrAdvancedAssociation
- a reference to a class or an advanced associationgetIteratorForDirectClassObjects(long)
,
on iterators,
on advanced associations,
on meta-levelslong getIteratorForDirectClassObjects(long rClassOrAdvancedAssociation)
getIteratorForAllClassObjects
and getIteratorForDirectClassObjects
.
The unimplemented function will be implemented via another by TDA Kernel.
rClassOrAdvancedAssociation
- a reference to a class or an advanced associationgetIteratorForAllClassObjects(long)
,
on iterators,
on advanced associations,
on meta-levelslong getIteratorForDirectObjectClasses(long rObjectOrAdvancedLink)
getLinguisticClassFor
.rObjectOrAdvancedLink
- a reference to an object or advanced linkgetLinguisticClassFor(long)
,
on iterators,
on advanced associations,
on meta-levelsboolean isTypeOf(long rObject, long rClass)
rObject
and rClass
is/are quasi-linguistic.
If the object is at a quasi-ontological meta-level, but the class is quasi-linguistic,
then the function checks whether the object is a direct quasi-linguistic instance of the given class.rObject
- a reference to an objectrClass
- a reference to a classfalse
is returned.isKindOf(long, long)
,
on meta-levelsboolean isKindOf(long rObject, long rClass)
rObject
and rClass
is/are quasi-linguistic.
If the object is at a quasi-ontological meta-level, but the class is quasi-linguistic,
then the function checks whether the object is a quasi-linguistic instance of the given class
or one of its subclasses.rObject
- a reference to an objectrClass
- a reference to a classfalse
is returned.isTypeOf(long, long)
,
on meta-levelslong createAttribute(long rClass, java.lang.String name, long rPrimitiveType)
rClass
- a reference to an existing class, for which to define the attributename
- the name of the attribute being created; it must be unique
within all the attributes defined for this class, including
derived onesrPrimitiveType
- a reference to a primitive data type for attribute valueslong findAttribute(long rClass, java.lang.String name)
rClass
- a reference to a class, where the attribute in question belongs;
rClass
may be also one of its subclasses, since the attribute
is available for subclasses, tooname
- the name of the attributeboolean deleteAttribute(long rAttribute)
rAttribute
- a reference to the attribute to be deletedlong getIteratorForAllAttributes(long rClass)
getIteratorForAllAttributes
and getIteratorForDirectAttributes
.
The unimplemented function will be implemented via another by TDA Kernel.
rClass
- a reference to a class, whose attributes we are interested ingetIteratorForDirectAttributes(long)
,
on iterators,
on meta-levelslong getIteratorForDirectAttributes(long rClass)
getIteratorForAllAttributes
and getIteratorForDirectAttributes
.
The unimplemented function will be implemented via another by TDA Kernel.
rClass
- a reference to a class, whose attributes we are interested ingetIteratorForAllAttributes(long)
,
on iterators,
on meta-levelsjava.lang.String getAttributeName(long rAttribute)
rAttribute
- a reference to the attribute in questionnull
on error.long getAttributeDomain(long rAttribute)
rAttribute
- a reference to the attribute in questionlong getAttributeType(long rAttribute)
rAttribute
- a reference to the attribute in questionboolean isAttribute(long r)
getAttributeDomain
, getAttributeName
and findAttribute
.
r
- a reference in questionfalse
is returned.boolean setAttributeValue(long rObject, long rAttribute, java.lang.String value)
null
and not a string encoding null
,
since for those cases TDA Kernel forwards the call to deleteAttributeValue
.
rObject
- the object, for which to set the attribute value (values)rAttribute
- the attribute, for which to set the value; this attribute must be associated
either with a quasi-ontological class or the quasi-linguistic class of the given objectvalue
- the attribute value (values) encoded as a string (use "." for the decimal point)false
is returned.java.lang.String getAttributeValue(long rObject, long rAttribute)
rObject
- the object, for which to get the attribute value (values)rAttribute
- the attribute, for which to obtain the value; this attribute must be associated
either with a quasi-ontological class or the quasi-linguistic class of the given objectnull
on error.boolean deleteAttributeValue(long rObject, long rAttribute)
rObject
- the object, for which to get the attribute value (values)rAttribute
- the attribute, for which to obtain the value; this attribute must be associated
either with a quasi-ontological class or the quasi-linguistic class of the given objectlong getIteratorForObjectsByAttributeValue(long rAttribute, java.lang.String value)
rAttribute
- the attribute to checkvalue
- the value to checklong createAssociation(long rSourceClass, long rTargetClass, java.lang.String sourceRoleName, java.lang.String targetRoleName, boolean isComposition)
rSourceClass
- the class, where the association startsrTargetClass
- the class, where the association endssourceRoleName
- the name of the association end near the source classtargetRoleName
- the name of the association end near the target classisComposition
- whether the association is a composition, i.e.,
the source class objects are containers for the target class objectslong createDirectedAssociation(long rSourceClass, long rTargetClass, java.lang.String targetRoleName, boolean isComposition)
createAssociation
(a stub inverse role will be generated).
rSourceClass
- the class, where the association startsrTargetClass
- the class, where the association endstargetRoleName
- the name of the association end near the target classisComposition
- whether the association is a composition, i.e.,
the source class objects are containers for the target class objectslong createAdvancedAssociation(java.lang.String name, boolean nAry, boolean associationClass)
createAssociation
n times, where
a reference to the n-ary association has to be passed instead of one of the class references.
N-ary association links can be created by means of createObject
,
and n-ary link ends can be created by calling createLink
n times
and passing a reference to the n-ary link instead of one of the object references.
false
.
name
- the name of the advanced association (the class name in case of an association class)nAry
- whether the association is an n-ary associationassociationClass
- whether the association is an association classlong findAssociationEnd(long rSourceClass, java.lang.String targetRoleName)
getIteratorForAllOutgoingAssociationEnds
.
rSourceClass
- a class that is a source class for the association, or one of its subclassestargetRoleName
- a role name associated with the target association endboolean deleteAssociation(long rAssociationEndOrAdvancedAssociation)
rAssociationEndOrAdvancedAssociation
- a reference to an association end (if
the association is directed or bidirectional) or a reference to
an advanced associationlong getIteratorForAllOutgoingAssociationEnds(long rClass)
getIteratorForAllOutgoingAssociationEnds
and getIteratorForDirectOutgoingAssociationEnds
.
The unimplemented function will be implemented via another by TDA Kernel.
rClass
- a reference to a class, whose outgoing associations (including inherited) have to be traversedgetIteratorForDirectOutgoingAssociationEnds(long)
,
on iterators,
on meta-levelslong getIteratorForDirectOutgoingAssociationEnds(long rClass)
getIteratorForAllOutgoingAssociationEnds
and getIteratorForDirectOutgoingAssociationEnds
.
The unimplemented function will be implemented via another by TDA Kernel.
rClass
- a reference to a class, whose direct outgoing associations have to be traversedgetIteratorForAllOutgoingAssociationEnds(long)
,
on iterators,
on meta-levelslong getIteratorForAllIngoingAssociationEnds(long rClass)
getIteratorForAllIngoingAssociationEnds
and getIteratorForDirectIngoingAssociationEnds
.
The unimplemented function will be implemented via another by TDA Kernel.
rClass
- a reference to a class, whose ingoing associations (including inherited) have to be traversedgetIteratorForDirectIngoingAssociationEnds(long)
,
on iterators,
on meta-levelslong getIteratorForDirectIngoingAssociationEnds(long rClass)
getIteratorForAllIngoingAssociationEnds
and getIteratorForDirectIngoingAssociationEnds
.
The unimplemented function will be implemented via another by TDA Kernel.
rClass
- a reference to a class, whose direct ingoing associations have to be traversedgetIteratorForAllIngoingAssociationEnds(long)
,
on iterators,
on meta-levelslong getInverseAssociationEnd(long rAssociationEnd)
rAssociationEnd
- a reference to a known association end, for which the inverse end has to be obtainedlong getSourceClass(long rTargetAssociationEnd)
rTargetAssociationEnd
- an association end of some association;
this association end will be considered a target endlong getTargetClass(long rTargetAssociationEnd)
rTargetAssociationEnd
- an association end of some association;
this association end will be considered a target endjava.lang.String getRoleName(long rAssociationEnd)
rAssociationEnd
- an association end of some directed, bidirectional, or advanced associationnull
on error.boolean isComposition(long rTargetAssociationEnd)
rTargetAssociationEnd
- an association end of some association;
this association end will be considered a target endboolean isAdvancedAssociation(long r)
r
- a reference in questionfalse
is returned.boolean isAssociationEnd(long r)
getSourceClass
, getRoleName
and findAssociationEnd
.
r
- a reference in questionfalse
is returned.boolean createLink(long rSourceObject, long rTargetObject, long rAssociationEnd)
rAssociationEnd
) between two objects.
rSourceObject
- a start object of the link;
this object must be an instance of the source class for the given association endrTargetObject
- an end object of the link;
this object must be an instance of the target class for the given association endrAssociationEnd
- a target association end that specifies the link typeboolean createOrderedLink(long rSourceObject, long rTargetObject, long rAssociationEnd, int targetPosition)
rAssociationEnd
) between two objects at the given position.
The target position normally should be from 0 to n, where n is the number of currently linked objects at positions from 0 to n-1.
If the target position is outside [0..n], then the link is appended to the end.
rSourceObject
- a start object of the link;
this object must be an instance of the source class for the given association endrTargetObject
- an end object of the link;
this object must be an instance of the target class for the given association endrAssociationEnd
- a target association end that specifies the link typetargetPosition
- the position (starting from 0) of the target object in the list
of linked objects of the source object;boolean deleteLink(long rSourceObject, long rTargetObject, long rAssociationEnd)
rTargetAssociationEnd
) between the given two objects.
rSourceObject
- a start object of the link;
this object must be an instance of the source class for the given association endrTargetObject
- an end object of the link;
this object must be an instance of the target class for the given association endrAssociationEnd
- a target association end that specifies the link typeboolean linkExists(long rSourceObject, long rTargetObject, long rAssociationEnd)
rTargetAssociationEnd
) between the given two objects exists.
getIteratorForLinkedObjects
.
rSourceObject
- a start object of the link;
this object must be an instance of the source class for the given association endrTargetObject
- an end object of the link;
this object must be an instance of the target class for the given association endrAssociationEnd
- a target association end that specifies the link typefalse
is returned.long getIteratorForLinkedObjects(long rObject, long rAssociationEnd)
rObject
- a start object, for which the iterable objects are linked
this object must be an instance of the source class for the given association endrAssociationEnd
- a target association end that specifies the type of linksint getLinkedObjectPosition(long rSourceObject, long rTargetObject, long rAssociationEnd)
rSourceObject
- a source object;
this object must be an instance of the source class for the given association endrTargetObject
- a target object;
this object must be an instance of the target class for the given association endrAssociationEnd
- a target association end that specifies the type of linkslong resolveIteratorFirst(long it)
it
- an iterator referenceresolveIteratorNext(long)
,
freeIterator(long)
,
on iteratorslong resolveIteratorNext(long it)
it
- an iterator referenceresolveIteratorFirst(long)
,
freeIterator(long)
,
on iteratorsint getIteratorLength(long it)
resolveIteratorFirst
or resolveIterator
to move the iterator.
resolveIterator
function. If both getIteratorLength
and resolveIterator
are used, the temporary list is created only once.it
- an iterator referenceresolveIterator(long, int)
,
freeIterator(long)
,
on iteratorslong resolveIterator(long it, int position)
position
(numeration starts from 0) and forwards the iterator to position+1
.
getIteratorLength
function. If both getIteratorLength
and resolveIterator
are used, the temporary list is created only once.it
- an iterator referenceposition
- the position in the iterable list, where the interested element is locatedgetIteratorLength(long)
,
freeIterator(long)
,
on iteratorsvoid freeIterator(long it)
it
- an iterator referencevoid freeReference(long r)
java.lang.String serializeReference(long r)
deserializeReference
.
This is essential for storing inter-repository relations.r
- the reference to serializenull
on error.deserializeReference(java.lang.String)
long deserializeReference(java.lang.String r)
r
- the serialization of an element, for which to obtain a referenceserializeReference(long)
long getIteratorForLinguisticClasses()
long getIteratorForDirectLinguisticInstances(long rClass)
rClass
- a Level M3 classlong getIteratorForAllLinguisticInstances(long rClass)
rClass
- a Level M3 classlong getLinguisticClassFor(long r)
r
- a quasi-ontological (Level MΩ) elementboolean isLinguistic(long r)
isClass
, isAssociationEnd
, etc. to get more details about the element.r
- a reference in questionfalse
is returned.java.lang.String callSpecificOperation(java.lang.String operationName, java.lang.String arguments)
arguments
must be null
.
callSpecificOperation("SQL", "SELECT * FROM MY TABLE");
callSpecificOperation("myMethod", "[object-reference][u001E][argument1]...");
callSpecificOperation("", null);
this
pointer in Java).operationName
- a repository-specific operation namearguments
- operation-specific arguments encoded as a stringnull
on error.