Ignore:
Timestamp:
Aug 17, 2008, 8:07:11 PM (16 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #39
fixed Access_Group_Ref

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/models/rm/support/identification.rb

    r98 r99  
    170170
    171171        class Party_Ref < Object_Ref
    172           TYPE = ['PERSON', 'ORGANISATION', 'GROUP', 'AGENT', 'ROLE',' PARTY', 'ACTOR']
     172          TYPE = ['PERSON', 'ORGANISATION', 'GROUP', 'AGENT', 'ROLE','PARTY', 'ACTOR']
    173173          def initialize(namespace, type, id)
    174174            super(namespace, type, id)
     
    176176
    177177          def type=(type)
    178             raise ArgumentError, 'type mismatch' if !TYPE.include? type
     178            raise ArgumentError, 'type invalid' if !TYPE.include? type
    179179            @type = type
    180180          end
    181181        end
     182
     183        class Access_Group_Ref < Object_Ref
     184          def type=(type)
     185            raise ArgumentError, 'type invalid' if !(type == 'ACCESS_GROUP')
     186            @type = type
     187          end
     188        end
     189
    182190        class Hier_Object_ID < UID_Based_ID
    183191
Note: See TracChangeset for help on using the changeset viewer.