NpFile

/**
* @brief Represents a non-physical file, suck as an class file in NpProject.
*/

Inherit from NpFileDO

Primary key: element_hash_id: int

schema NpFile extends NpFileDO {
  @primary element_hash_id: int,
  qualified_name: string,
  name: string,
  project_hash_id: int
}

NpFile::getQualifiedName

/**
* @brief gets the qualified name of this element.
* @return string
*/
  • Parameter self: NpFile
  • Return string
pub fn getQualifiedName(self: NpFile) -> string;

NpFile::getProjectHashId

/**
* @brief gets the project hash id of this element.
* @return int
*/
  • Parameter self: NpFile
  • Return int
pub fn getProjectHashId(self: NpFile) -> int;

NpFile::getName

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

NpFile::__all__

Data constraint method.

pub fn __all__(db: JavaDB) -> *NpFile;

NpFile::getNpProject

/**
* @brief gets the np_project of this file.
* @return ElementParent
*/
pub fn getNpProject(self: NpFile) -> NpProject;