Node
Class defined in model/data/Node.js#16 inherits from
new Node()
Constructor defined in model/data/Node.js#21

Check if the node is of a given type.

Parameters
typeNameString
Returns
Boolean

true if the node has a parent with given type, false otherwise.

Get a the list of all polymorphic types.

Returns
String[]

An array of type names.

  • Get the type of a property.
  • @param {String} propertyName
  • @returns The property's type.

Convert node to JSON.

Returns
Object

JSON representation of node.

Internal implementation of Node.prototype.isInstanceOf.

Returns
Boolean