DataClass
The main data storage class.
Author
Arnau Mora
Since
20210830
Parameters
The children type.
A reference of the current type.
The name that will be displayed to the user.
The creation date of the DataClass in milliseconds.
The path of the DataClass' image on the server.
The path of the DataClass' KMZ file on the server. May be null if not applicable or non-existing.
The coordinates of the DataClass to show in a map.
Some metadata of the DataClass.
Options for displaying in the UI.
Constructors
Types
Functions
Returns a map used to display the stored data to the user. Keys should be the parameter name, and the value the value to display. Should be overridden by target class.
Gets the children element at index. May throw IndexOutOfBoundsException if children have not been loaded.
Finds an DataClass inside a list with an specific id. If it's not found, null is returned.
Returns the children of the DataClass.
Checks if the DataClass has a stored downloadUrl.
Checks if the data class has children. Note: won't load children, will just use the already loaded ones.
Checks if the data class doesn't have any children
Properties
Tells whether or not the DataClass has parent elements, or if it's root. Used in functions such as getParent to be quicker.