RAMEN Core
    Preparing search index...

    Class ModelEditor

    Applies immutable editing operations to an existing RMF model.

    Index
    • Adds an attribute; project-wide semantic conflicts are reported by ModelValidator.

      Parameters

      Returns Model

    • Removes a named attribute from a node without mutating the source model.

      Parameters

      • model: Model
      • nodeId: string
      • attributeId: string

      Returns Model

      When the local node or attribute does not exist.

    • Returns a model without the classifier, or throws when it does not exist.

      Parameters

      • model: Model
      • classifierId: string

      Returns Model

    • Updates an attribute; project-wide semantic conflicts are reported by ModelValidator.

      Parameters

      Returns Model

      When the local node or attribute does not exist.

    • Applies a partial update to a data type without mutating the source model.

      Parameters

      Returns Model

      When the local data type does not exist.

    • Applies a partial update to a node without mutating the source model.

      Parameters

      Returns Model

      When the local node does not exist.

    • Applies a partial update to a relation without mutating the source model.

      Parameters

      Returns Model

      When the local relation does not exist.