Attribute

@Entity
class Attribute(var dataID: Long? = null, var uri: String = "", var name: String = "", var dType: String = "", var node: Node? = null)

The Attribute represents the model element typically known as attribute or property. By default, only Nodes can have Attributes. An Attribute consists of identifiers and a key-datatype pair expressing the physical attribute model.

Constructors

Link copied to clipboard
constructor()
constructor(dataID: Long? = null, uri: String = "", name: String = "", dType: String = "", node: Node? = null)

Properties

Link copied to clipboard
var dataID: Long?

Technical database (JPA) identifier used for relation joins. The dataID is system specific and not exported to XML. It must not be used to identify elements in distributed use-cases. It should not be used to identify elements from outside the service. All model elements provide other suitable identifiers to be used.

Link copied to clipboard

The data type of the attribute serialized as string. TODO: right now, arbitrary types are supported. A later type checker must predefine a set of type values.

Link copied to clipboard

The name of an Attribute, also called key. Uniqueness is optional but should be enforced on the level of a single Node.

Link copied to clipboard
var node: Node?

Backlink to Model to improve traversal.

Link copied to clipboard
var uri: String

The unique naming URI of the Attribute in its current Model. The uri must not take variant/version into account which is stored separately. A modicio URI is defined as a "xs:anyURI" base with the schema extension "modicio:.*"

Functions

Link copied to clipboard