new $k.Instance()
Represents an instance.
Extends
Methods
copy() : $k.Instance
Create a copy of me
Throws:
Type | Description |
---|---|
$k.exception.ObjectRemoved | If instance got obsolete on the way here |
$k.exception.AccessDenied | If current user is not allowed to create a new instance of this instance's type |
$k.exception.RuntimeError | If anything bad happens during copy |
Returns:
Type | Description |
---|---|
$k.Instance |
copyProperties(propertyNames, target) : $k.Instance
Create copies of the named properties at the target
Name | Type | Description |
---|---|---|
propertyNames |
Array.<string> |
PropertyTypes or internal names |
target |
$k.Instance |
Target object |
Throws:
Type | Description |
---|---|
$k.exception.RuntimeError | If anything bad happens during copy |
Returns:
Type | Description |
---|---|
$k.Instance |
createExtension(type) : Array.<$k.Instance>
Create an extension of the given type
Name | Type | Description |
---|---|---|
type |
Type or internal name |
Throws:
Type | Description |
---|---|
$k.exception.SchemaError | If "type" is not a possible extension |
$k.exception.TypeError | If "type" is not a type or internal name |
$k.exception.TransactionError | If no write transaction is active |
Returns:
Type | Description |
---|---|
Array.<$k.Instance> |
domain() : $k.Domain
Returns the domain of the instance
- Since:
- 4.1.0
Returns:
Type | Description |
---|---|
$k.Domain |
extensions() : Array.<$k.Instance>
Returns the extension instances
Returns:
Type | Description |
---|---|
Array.<$k.Instance> |
Intherited methods
attribute(type),
attributes(type),
attributeValue(type, language),
attributeValueString(type, language),
callBehaviour(method, args),
changeLog(),
core(),
createAttribute(type, value, language),
createAttributeFromString(type, valueString, language),
createRelation(type, target, inverse),
element(),
ensureAttributeValue(type, value, language),
ensureRelationTarget(type, target, inverse),
hasPossibleAttribute(type),
hasPossibleRelation(type),
icon(size, language),
idNumber(),
idString(),
inheritedAttribute(type),
inheritedAttributeValue(type, language),
locatorString(locatorTypes),
modificationNumber(),
name(language),
possibleProperties(filter),
primaryCore(),
properties(filter),
relation(type),
relations(type),
relationTarget(type),
relationTargets(type),
remove(),
render(context, keyFilter, detailFilter),
renderJSON(context, excludedKeys, detailFilter),
renderTemplate(template, entity, conversion, variables),
setAttributeFromString(type, valueString, language),
setAttributeValue(type, value, language),
setName(name, language),
setRelationTarget(type, target, inverse),
type(),
updateMapping()