Next / Previous / Contents / Shipman's homepage

6.30. class UniEntity: One entity

Each instance of this class defines the use of a specific entity name for a specific code point as part of a specific entity set.

Here is the class interface.

unidata.py
# - - - - -   c l a s s   U n i E n t i t y

class UniEntity(object):
    '''Represents an entity in a given set with a given code point.

      UniEntity(uniChar, node):
        [ (uniChar is the containing UniChar instance) and
          (node is an ENTITY_N node) ->
            return a new UniEntity instance representing that node ]
      .uniChar:  [ as passed to constructor ]
      .id:       [ E.g., "Aacute" ]
      .setName:  [ E.g., "xhtml1-lat1" ]
    '''