Next: Parents and Properties, Previous: Caosdb, Up: Top [Index]
This class represents Entities (Records, RecordTypes, Properties) in the CaosDB server, much like in libcaosdb. Detailed information can be found there.
One of “RECORD
”, “RECORD_TYPE
”, “PROPERTY
”, “FILE
”.
See libcaosdb.
The exact type of the value property should match the datatype of the Entity object.
Only for “FILE
” entities: the file path on the server.
Only for “FILE
” entities: the local path to the file (for upload).
The constructor takes an optional data argument which may provide initial content. The
typical user will just use the empty constructor Entity()
and add content later. (Details
about requirements for a valid data struct array can be found in the
source
code.)
Returns : cell
A cell array of Message objects, this Entity’s errors.
Returns : cell
A cell array of Message objects, this Entity’s warnings.
Returns : cell
A cell array of Message objects, this Entity’s info messages.
Set the datatype of this Entity in a consistent manner.
Parameters
dtype_name : string
Either the atomic datatype (for scalar simple values) or the ID of the referenced entity (in the case of reference values).
is_reference : logical
True if the value is a reference, else false (the default).
is_list : logical
True if the value is list types, false if it is a scalar (the default).
Parameters parents : cell
A cell array with the parents (objects of class Parent).
Parameters properties : cell
A cell array with the properties (objects of class Property).
Returns : logical
True iff this Entity has stored any error messages).
Returns : logical
True iff this Entity has stored any warning messages).
Returns : logical
True iff this Entity has stored any info messages).
Note: This method is mostly interesting for internal use of the library, end users probably will never need it.
Convert to a struct which has all the fields that may be needed for interaction with the backend C++ functions.
If the datatype indicates a list value, the value is interpreted as such. It is an error if the value is list-like (cell string or more than one numeric element) while the datatype indicates a scalar value.
Next: Parents and Properties, Previous: Caosdb, Up: Top [Index]