new $k.RelationType()
Represents a type of relations
Extends
Methods
inverseRelationType() : $k.RelationType
Returns the inverse relation type
Returns:
Type | Description |
---|---|
$k.RelationType |
isMainDirection() : boolean
Returns true if this is the main direction for the relation type.
Returns:
Type | Description |
---|---|
boolean |
isSingleSided() : boolean
Returns true if this is a single sided relation type (i.e. only the main direction of the relation is stored in the volume).
Returns:
Type | Description |
---|---|
boolean |
isSymmetric() : boolean
Returns true if this is a symmetric relation.
Returns:
Type | Description |
---|---|
boolean |
ranges() : Array.<$k.Domain>
Returns the possible ranges of the relation, which are the domains of the inverse relation
Returns:
Type | Description |
---|---|
Array.<$k.Domain> |
relationTargetSearch(searchString, context) : $k.SemanticElement
Name | Type | Description |
---|---|---|
searchString |
string |
optional
Search string for the target element |
context |
$k.SemanticElement |
optional
Context of the relationTargetSearch |
- Version:
- Experimental feature, might be removed at any time
Returns:
Type | Description |
---|---|
$k.SemanticElement |
Intherited methods
addSupertype(type),
allInstances(),
allowsMultipleOccurrences(),
allSubtypes(),
allSupertypes(),
attribute(type),
attributes(type),
attributeValue(type, language),
attributeValueString(type, language),
callBehaviour(method, args),
canCreateExtensions(),
canCreateInstances(),
changeLog(),
core(),
createAttribute(type, value, language),
createAttributeFromString(type, valueString, language),
createRelation(type, target, inverse),
definedDomains(),
domain(),
domains(),
element(),
ensureAttributeValue(type, value, language),
ensureRelationTarget(type, target, inverse),
estimatedNumberOfInstances(),
getCounter(),
hasPossibleAttribute(type),
hasPossibleRelation(type),
icon(size, language),
iconAttribute(size, language),
idNumber(),
idString(),
increaseCounter(),
inheritedAttribute(type),
inheritedAttributeValue(type, language),
instances(),
internalName(),
isAbstract(),
isInvalid(),
isKindOf(type),
kPathEvaluate(pathString),
locatorString(locatorTypes),
modificationNumber(),
name(language),
numberOfInstances(),
possibleProperties(filter),
primaryCore(),
properties(filter),
relation(type),
relations(type),
relationTarget(type),
relationTargets(type),
remove(),
removeProperties(filter),
removeSupertype(),
render(context, keyFilter, detailFilter),
renderJSON(context, excludedKeys, detailFilter),
renderTemplate(template, entity, conversion, variables),
schemaReportOn(),
setAttributeFromString(type, valueString, language),
setAttributeValue(type, value, language),
setCanCreateExtensions(canCreate),
setCanCreateInstances(canCreate),
setCounter(counterValue),
setInternalName(name),
setName(name, language),
setRelationTarget(type, target, inverse),
subtypes(),
supertypes(),
type(),
typeDomain(),
updateMapping()