Changeset 233


Ignore:
Timestamp:
03/18/10 12:50:36 (15 years ago)
Author:
lgiessmann
Message:

new-datamodel: added the handling of "ReifiableConstructC" to "make-construct"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/new-datamodel/src/model/datamodel.lisp

    r232 r233  
    123123
    124124
    125 ;;TODO: check merge-constructs in add-topic-identifier, add-item-identifier,
     125;;TODO: check merge-constructs in add-topic-identifier, add-item-identifier
     126;;      (can merge the parent construct and the parent's parent construct),
    126127;;      add-psi, add-locator
    127 
    128 ;;TODO: all add-<construct> methods hve to add an version info to the
    129 ;;      owner-construct
    130128;;TODO: finalize add-reifier
    131129;;TODO: replace add-to-version-history in VersionedAssociationC with a pseudo
     
    23302328        (uri (getf args :uri))
    23312329        (xtm-id (getf args :xtm-id))
    2332         (identified-construct (getf args :identified-construct)))
     2330        (identified-construct (getf args :identified-construct))
     2331        (charvalue (getf args :charvalue))
     2332        (datatype (getf args :datatype))
     2333        (parent-construct (getf args :parent-construct))
     2334        (themes (getf args :themes))
     2335        (variants (getf args :variants))
     2336        (instance-of (getf args :instance-of))
     2337        (reifier-topic (getf args :reifier))
     2338        (item-identifiers (getf args :item-identifiers)))
    23332339    (let ((construct
    23342340           (cond
     
    23362342              (make-pointer class-symbol uri :start-revision start-revision
    23372343                            :xtm-id xtm-id
    2338                             :identified-construct identified-construct)))))
    2339 
     2344                            :identified-construct identified-construct))
     2345             ((CharacteristicC-p class-symbol)
     2346              (make-characteristic class-symbol charvalue
     2347                                   :start-revision start-revision
     2348                                   :datatype datatype :themes themes
     2349                                   :instance-of instance-of :variants variants
     2350                                   :parent-construct parent-construct)))))
     2351
     2352      (when (typep construct 'ReifiableConstructC)
     2353        (when reifier-topic
     2354          (add-reifier construct reifier-topic :revision start-revision))
     2355        (dolist (ii item-identifiers)
     2356          (add-item-identifier construct ii :revision start-revision)))
    23402357      construct)))
    23412358
Note: See TracChangeset for help on using the changeset viewer.