Ignore:
Timestamp:
May 26, 2009, 7:18:08 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

fixed #59

Location:
ruby/trunk/lib/models/rm
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/models/rm/common/archetyped.rb

    r112 r128  
    1616        class Pathable
    1717          attr_accessor :parent
     18
    1819          def initialize(parent = nil)
    1920            @parent = parent
    2021          end
     22
    2123          def item_at_path(path)
    2224            raise NotImplementError, "item_at_path must be implemented"
    2325          end
     26
    2427          def items_at_path(path)
    2528            raise NotImplementError, "items_at_path must be implemented"
    2629          end
     30
    2731          def path_exists?(path)
    2832            raise NotImplementError, "path_exists? must be implemented"
    2933          end
     34
    3035          def path_of_item(item)
    3136            raise NotImplementError, "path_of_item must be implemented"
    3237          end
     38
    3339          def path_unique(path)
    3440            raise NotImplementError, "path_unique must be implemented"
     
    4046          attr_reader :archetype_node_id, :name, :links
    4147          attr_accessor :uid, :archetype_details, :feeder_audit
     48
    4249          def initialize(archetype_node_id, name, links, parent=nil, uid=nil, archetype_details=nil, feeder_audit=nil)
    4350            super(parent)
  • ruby/trunk/lib/models/rm/data_structure.rb

    r123 r128  
    33# http://www.openehr.org/uml/release-1.0.1/Browsable/_9_5_1_76d0249_1140447518205_872539_864Report.html
    44# refs #59
    5 module Data_Structures
    6   class Data_Structure
    7     def as_hierarchy
    8       raise NotImplementError, "as_hirarchy must be implemented"
    9     end
    10   end
    11 end
     5
     6module OpenEHR
     7  module RM
     8    module Data_Structures
     9      class Data_Structure < OpenEHR::RM::Common::Archetyped::Locatable
     10        def as_hierarchy
     11          raise NotImplementedError, "as_hirarchy must be implemented"
     12        end
     13      end
     14    end # of Data_Structures
     15  end # of RM
     16end # of OpenEHR
Note: See TracChangeset for help on using the changeset viewer.