@classmethod
def _enforceItemClassAndName(cls, items, classname, module_name):
    """All items must be of the appropriate type for the enumeration type.

        All item variable names must be capitalised.
        """
    for item_name, item in items:
        if not isinstance(item, cls.item_type):
            raise TypeError(
                'Items must be of the appropriate type for the %s, %s.%s.%s' %
                (cls.enum_name, module_name, classname, item_name))
        if item_name.upper() != item_name:
            raise TypeError(
                'Item instance variable names must be capitalised.  %s.%s.%s' %
                (module_name, classname, item_name))
        item.name = item_name
