Element

/**
* @brief An element without classification. 
*/

Inherit from ElementDO

Primary key: oid: int

schema Element extends ElementDO {
  @primary oid: int,
  value: string,
  type: string,
  parent_oid: int
}

Element::getValue

/**
* @brief gets the value of this element.
* @return string
*/
  • Parameter self: Element
  • Return string
pub fn getValue(self: Element) -> string;

Element::getParent

/**
* @brief gets the parent element of the element
* @return CombineElement 
*/
pub fn getParent(self: Element) -> CombineElement;

Element::getType

/**
* @brief gets the type of this element.
* @return string
*/
  • Parameter self: Element
  • Return string
pub fn getType(self: Element) -> string;

Element::__all__

Data constraint method.

pub fn __all__(db: PythonDB) -> *Element;

Element::getAnAncestor

/**
* @brief gets an ancestor of the element.
* @return CombineElement 
*/
pub fn getAnAncestor(self: Element) -> *CombineElement;

Element::getParentOid

/**
* @brief gets the parent oid of this element.
* @return int
*/
  • Parameter self: Element
  • Return int
pub fn getParentOid(self: Element) -> int;