Next / Previous / Contents / Shipman's homepage

6.24. class UniEntSet: One entity set

Each instance represents an entity set. Entity sets have only two attributes: a name, and an optional public identifier.
# - - - - -   c l a s s   U n i E n t S e t

class UniEntSet(object):
    '''Represents a named entity set.
      UniEntSet(uniGroup, node):
        [ (uniGroup is the containing UniGroup instance) and
          (node is a SET_N element) ->
            return a new UniEntSet instance representing node ]
      .uniGroup:  [ as passed to constructor ]
      .name:      [ NAME_A attribute ]
        [ if node had an FPI_A attribute ->
            that attribute
          else -> None ]